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
Circuit drawer reverse_bits does not reverse registerless bits #7303
Comments
Assigned, thanks! |
I'm not very familiar with the visualization code, but is there benefit to having |
Oh, yeah. This looks problematic.
IndexError Traceback (most recent call last) ~/qiskit/qiskit-terra/qiskit/circuit/quantumcircuit.py in reverse_bits(self) ~/qiskit/qiskit-terra/qiskit/circuit/quantumcircuit.py in (.0) IndexError: list index out of range |
Environment
What is happening?
When using classical registers only with
reverse_bits
, the registers and the bits in the registers are reversed before display. However, bits without registers are reversed in terms of usage, but are not reversed when displayed.How can we reproduce the issue?
What should happen?
Registerless bits should show in descending order.
Any suggestions?
This will require the merge of #7285 before the above circuit will work.
@javabster Can you assign this to me?
The text was updated successfully, but these errors were encountered: