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
The circuit drawer does not display certain circuits correctly when the idle_wires option is set to False. For example, when a barrier is added, the drawer assumes there is no gates after the barrier, so it does not display those qubits (see below). This happens with all drawers (not just mpl).
No problem. I think the relevant PR and issues to your issue are difficult to find. It took me a while to remember the PR though I was involved in the investigation. I appreciate your report. Don't hesitate to submit issues.
Environment
What is happening?
The circuit drawer does not display certain circuits correctly when the
idle_wires
option is set toFalse
. For example, when a barrier is added, the drawer assumes there is no gates after the barrier, so it does not display those qubits (see below). This happens with all drawers (not justmpl
).How can we reproduce the issue?
Drawer behaves as expected when
idle_wires=True
:Output:

But ignores
q0
whenidle_wires=False
:Output:

It also has a strange behavior in the presence of 2-qubit gates:
Output:

What should happen?
Drawer should only ignore qubits/cbits with no instructions associated with them.
Any suggestions?
No response
The text was updated successfully, but these errors were encountered: