You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you sure this was with Qiskit 1.1.0? I can't reproduce a bug like that, but there is a known bug in Qiskit 1.2.0 and 1.2.1 that most likely has this effect (see #13128 and #13146, which are fixed by #13149).
No worries - in that case this is a duplicated of #13146, and it's just in the process of being fixed by #13149, which will be released in Qiskit 1.2.2, probably later this week. I'll close this as a duplicate for now, but feel free to open more issues if there are more problems.
Environment
What is happening?
circuit.draw() is incorrectly drawing circuit with barriers in them.
How can we reproduce the issue?
Returns the right visualization
qc = QuantumCircuit(2)
qc.h(0)
qc.cx(0, 1)
qc.draw(fold=-1, output='mpl', idle_wires=False)
Returns a wrong visualization
qc = QuantumCircuit(2)
qc.h(0)
qc.barrier()
qc.cx(0, 1)
qc.draw(fold=-1, output='mpl', idle_wires=False)
What should happen?
The expected behavior is to include both qubits in the circuit and show the CX gate.
Any suggestions?
No response
The text was updated successfully, but these errors were encountered: