Circuit.q_registers
and Circuit.c_registers
are broken for circuits whose units are not organized as registers
#1160
Labels
bug
Something isn't working
For example, if a circuit contains a single qubit
Qubit("q", 3)
thenq_registers
will return[QubitRegister("q", 1)]
; butQubitRegister("q", 1)
containsQubit("q", 0)
which is not in the circuit.I suppose it should return an empty list in this case, or else raise an exception.
The text was updated successfully, but these errors were encountered: