-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QuantumCircuit.extend updates cached bits (#5039)
* extend updates the cached qubits * add reno
- Loading branch information
Showing
3 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
releasenotes/notes/extend-updates-cached-qubits-2dbafe010bd5a946.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
fixes: | ||
- | | ||
Extending circuits with differing registers updated the ``qregs`` and | ||
``cregs`` properties accordingly, but not the ``qubits`` and ``clbits`` | ||
lists. As these are no longer generated from the registers but are cached | ||
lists, this lead to a discrepancy of registers and bits. This has been | ||
fixed and the ``extend`` method explicitly updates the cached bit lists. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters