Closed AbeerVaishnav13 closed 3 years ago
I can work on this. It may affect all 3 circuit drawers. Thanks for finding it.
I can work on this. It may affect all 3 circuit drawers. Thanks for finding it.
Hi @enavarro51 , thanks for taking this up! I checked the "text" circuit drawer and the output of that looked fine to me. However, I didn't check the "latex" option. But anyway you can try both of them out yourself also once :)
Information
The
qc.draw()
function does not draw the quantum circuit properly if we change the order of classical registers while initializing theQuantumCircuit()
instance if there is a measurement in the circuit that is conditioned on the output of some other classical register.What is the current behavior (and how to reproduce the problem)?
Notice that in the above code, we initialize the quantum circuit as:
However, if we exchange the classical registers while initializing, like so:
we get this, which is the correct circuit...
What is the expected behavior?
The circuit in the first image should have the arrows going to the classical register
c_b
and the dots going toc_a
, but here both of them go toc_a
.