-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[AerUnitaryBackend] Call transpile()
before run()
#142
Comments
reproducer: #!/usr/bin/env python3
from pytket.circuit import Circuit, CircBox, QControlBox
from pytket.extensions.qiskit import AerUnitaryBackend, AerStateBackend
backend = AerUnitaryBackend()
# backend = AerStateBackend() # using AerStateBackend does not raise an error
n_ancillas = 5 # using n_ancillas <=4 doees not raise an error
n_spins = 1
circ = Circuit(n_ancillas + n_spins)
trgt = Circuit(n_spins)
trgt.X(0)
# trgt.Y(0) # using Y instead of X does not raise an error
circ.add_qcontrolbox(
QControlBox(CircBox(trgt), n_ancillas), list(range(n_ancillas + n_spins))
)
compiled_circ = backend.get_compiled_circuit(circ, optimisation_level = 0)
# using optimisation_level >= 1 does not raise an error
u = backend.run_circuit(compiled_circ) |
doug-q
added a commit
that referenced
this issue
Aug 29, 2023
doug-q
added a commit
that referenced
this issue
Aug 31, 2023
doug-q
added a commit
that referenced
this issue
Sep 6, 2023
doug-q
added a commit
that referenced
this issue
Sep 6, 2023
doug-q
added a commit
that referenced
this issue
Sep 6, 2023
doug-q
added a commit
that referenced
this issue
Sep 7, 2023
doug-q
added a commit
that referenced
this issue
Sep 7, 2023
doug-q
added a commit
that referenced
this issue
Sep 7, 2023
doug-q
added a commit
that referenced
this issue
Sep 20, 2023
AerUnitaryBackend: call transpile before run (#142)
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Seems necessary to handle some gates that act on large numbers of qubits, such as C5X: see Qiskit/qiskit-aer#1855 .
The text was updated successfully, but these errors were encountered: