-
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
qc.draw('text', idle_wires=False) results in ValueError : min() arg is an empty sequence #13128
Comments
It has been fixed by the main branch already. But the fix is not ported to the latest release 1.2.1, unfortunately.
|
With @mrossinek we had quite the bug hunt for this:
After some surgical insertions of |
@kifumi -san for your awareness! |
Environment
What is happening?
For a parametrised quantum circuit
qc.draw('text', idle_wires=False)
results inValueError: min() arg is an empty sequence
This issue only comes in Qiskit version: 1.2.0 and the same code works fine in Qiskit version: 1.1.0.
Additionally
qc.draw('mpl', idle_wires=False)
prints the quantum circuit but the number of qubits gets reduced. We haven't trinspiled the circuit yet and didn't mention anything about qubit reuse.This is the full traceback!
How can we reproduce the issue?
What should happen?
The user should be able to print the quantum circuit without getting the ValueError and the circuit with 'mpl' should not reduce the number of qubits.
Any suggestions?
No response
The text was updated successfully, but these errors were encountered: