Closed matteoacrossi closed 3 weeks ago
With git bisect
I found out that the regression was introduced in #12714
This change was unintentional and we will backport to fix it, but as a follow up: what are you doing that requires the QuantumRegister
? The quantum register type is very close to meaningless in Qiskit, and I'm not sure how other libraries might be using it.
(Fwiw, registers are neither necessary for a circuit nor required to contain only unique bits, so the output of the function is still a valid circuit object, it's only a bug that we deviated from the prior behaviour without meaning to.)
Environment
What is happening?
Clifford.to_circuit()
returns aQuantumCircuit
with emptyqregs
. I don't know if this is an expected behaviour, but it has changed since qiskit 1.1.2.How can we reproduce the issue?
What should happen?
I would expect the
QuantumCircuit
to contain oneQuantumRegister
with the correct size, as it was the case in qiskit 1.1.2Any suggestions?
No response