QuantumCircuit.draw
fails on a condition with a registerless Clbit
#7248
Labels
bug
Something isn't working
Information
What is the current behavior?
The circuit drawers (certainly the text one, prob fail if there is a condition on a
Clbit
that is not in any registers.Steps to reproduce the problem
This happens with
output="mpl"
andoutput="latex"
as well.What is the expected behavior?
No error.
Suggested solutions
This is related to a previous issue (#6475), which included a few PRs to the drawers (#6261, #6248, #6259) to add single-bit classical conditioning, but perhaps this was only considering the case of single-qubit conditioning, whereas this is one step further: registerless single-qubit conditioning.
The text was updated successfully, but these errors were encountered: