-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Composing circuit with a switch statement causes a bug in the QASM3 exporter #10108
Comments
I have verified that using |
this may be obvious, but I just realized that this only addresses the issue with |
The surface-level problem in If I were to patch As a temporary work-around at least, the base of the composition ( from qiskit.circuit import QuantumCircuit, Qubit, Clbit
base = QuantumCircuit([Qubit() for _ in [None]*n_qubits], [Clbit() for _ in [None]*n_clbits]) (see #6496 for an issue that's proposing that these semantics should be the default for |
Environment
What is happening?
When composing a circuit with another circuit containing a switch statement and then exporting to OpenQASM 3. I receive an error
This may be related to #9746.
How can we reproduce the issue?
Run
What should happen?
QASM3 should be exported.
Any suggestions?
No response
The text was updated successfully, but these errors were encountered: