-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The data represented by these classes will move to Rust space in Qiskit 2.0, and the remaining Python objects will be thin wrappers around the Rust-space objects. Rust space will not support additional bits beyond the existing triple `Qubit/AncillaQubit/Clbit`, and so Python-space will be unable to represent anything beyond this in the circuit data model. It's not clear what, if any, meaning was intended by subclassing these objects already, and Qiskit did not consider them subclass safe. We don't expect that anybody will have been doing this, so the impact should be minimal.
- Loading branch information
1 parent
7c72edd
commit f0f90ac
Showing
5 changed files
with
60 additions
and
5 deletions.
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
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
9 changes: 9 additions & 0 deletions
9
releasenotes/notes/deprecate-subclass-register-0ee4ab0b71c4bb4f.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,9 @@ | ||
--- | ||
deprecations_circuits: | ||
- | | ||
It is now deprecated to subclass :class:`.Register` or :class:`.Bit`, or any subclass of them | ||
(for example, :class:`.QuantumRegister` or :class:`~.circuit.Qubit`). Subclassing these types | ||
was never explicitly supported by Qiskit, and it is not clear precisely what the meaning would | ||
be. In Qiskit 2.0, the subclassing may become impossible due to technical limitations, and will | ||
certainly not be stored in a circuit. This is because of the move of the data model to Rust | ||
space to improve performance. |
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
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