@@ -520,7 +520,7 @@ Transpiler Features
520
520
521
521
- A new method :meth:`~qiskit.dagcircuit.DAGCircuit.find_bit` has
522
522
been added to the :class:`~qiskit.dagcircuit.DAGCircuit` class,
523
- which returns the bit locations of the given :class:`.Qubit` or
523
+ which returns the bit locations of the given :class:`~.circuit .Qubit` or
524
524
:class:`.Clbit` as a tuple of the positional index of the bit within
525
525
the circuit and a list of tuples which locate the bit in the circuit's
526
526
registers.
@@ -1597,7 +1597,7 @@ Bug Fixes
1597
1597
.. releasenotes/notes/fix-bit-copy-4b2f7349683f616a.yaml @ b'163d1bd7835d58eaf8842c594b3696fb99c8442f'
1598
1598
1599
1599
- Fixed an issue with copying circuits with new-style :class:`.Clbit`\ s and
1600
- :class:`.Qubit`\ s (bits without registers) where references to these bits
1600
+ :class:`~.circuit .Qubit`\ s (bits without registers) where references to these bits
1601
1601
from the containing circuit could be broken, causing issues with
1602
1602
serialization and circuit visualization.
1603
1603
Fixed `#10409 <https://github.com/Qiskit/qiskit-terra/issues/10409>`__
@@ -4326,8 +4326,8 @@ Bug Fixes
4326
4326
4327
4327
.. releasenotes/notes/fix-deprecated-bit-qpy-roundtrip-9a23a795aa677c71.yaml @ b'3dbbb32e762850db265c7bb40787a36351aad917'
4328
4328
4329
- - The deprecated :class:`. Qubit` and :class:`.Clbit` properties :attr:`~.Qubit.register` and
4330
- :attr:`~.Qubit.index` will now be correctly round-tripped by QPY (:mod:`qiskit.qpy`) in all
4329
+ - The deprecated :class:`~.circuit. Qubit` and :class:`.Clbit` properties :attr:`~.circuit .Qubit.register` and
4330
+ :attr:`~.circuit. Qubit.index` will now be correctly round-tripped by QPY (:mod:`qiskit.qpy`) in all
4331
4331
valid usages of :class:`.QuantumRegister` and :class:`.ClassicalRegister`. In earlier releases
4332
4332
in the Terra 0.23 series, this information would be lost. In versions before 0.23.0, this
4333
4333
information was partially reconstructed but could be incorrect or produce invalid circuits for
@@ -7031,7 +7031,7 @@ Bug Fixes
7031
7031
7032
7032
- QPY deserialisation will no longer add extra :class:`.Clbit` instances to the
7033
7033
circuit if there are both loose :class:`.Clbit`\ s in the circuit and more
7034
- :class:`.Qubit`\ s than :class:`.Clbit`\ s.
7034
+ :class:`~.circuit .Qubit`\ s than :class:`.Clbit`\ s.
7035
7035
7036
7036
.. releasenotes/notes/fix-qpy-loose-bits-5283dc4ad3823ce3.yaml @ b'e0befd769fc54e9f50cdc4b355983b9d1eda6f31'
7037
7037
@@ -9062,7 +9062,7 @@ Bug Fixes
9062
9062
.. releasenotes/notes/0.22/denselayout-loose-bits-3e66011432bc6232.yaml @ b'618770367f7a5a3a22fd43ea9fcfb7f17393eb6a'
9063
9063
9064
9064
- Fixed an issue in the :class:`~.DenseLayout` transpiler pass where any
9065
- loose :class:`~.Qubit` objects (i.e. not part of a :class:`~.QuantumRegister`)
9065
+ loose :class:`~.circuit. Qubit` objects (i.e. not part of a :class:`~.QuantumRegister`)
9066
9066
that were part of a :class:`~.QuantumCircuit` would not be included in the
9067
9067
output :class:`~.Layout` that was generated by the pass.
9068
9068
@@ -9071,7 +9071,7 @@ Bug Fixes
9071
9071
- The :meth:`.Operator.from_circuit` constructor method has been updated
9072
9072
so that it can handle the layout output from :func:`~.transpile` and
9073
9073
correctly reverse the qubit permutation caused by layout in all cases.
9074
- Previously, if your transpiled circuit used loose :class:`~.Qubit` objects,
9074
+ Previously, if your transpiled circuit used loose :class:`~.circuit. Qubit` objects,
9075
9075
multiple :class:`~.QuantumRegister` objects, or a single
9076
9076
:class:`~.QuantumRegister` with a name other than ``"q"`` the constructor
9077
9077
would have failed to create an :class:`~.Operator` from the circuit.
@@ -10274,7 +10274,7 @@ Upgrade Notes
10274
10274
10275
10275
- The data type of each element in :attr:`.QuantumCircuit.data` has changed.
10276
10276
It used to be a simple 3-tuple of an :class:`~.circuit.Instruction`, a list
10277
- of :class:`.Qubit`\ s, and a list of :class:`.Clbit`\ s, whereas it is now
10277
+ of :class:`~.circuit .Qubit`\ s, and a list of :class:`.Clbit`\ s, whereas it is now
10278
10278
an instance of :class:`.CircuitInstruction`.
10279
10279
10280
10280
The attributes of this new class are :attr:`~.CircuitInstruction.operation`,
@@ -10651,7 +10651,7 @@ Bug Fixes
10651
10651
.. releasenotes/notes/0.21/fix-reverse_bits-with-registerless-bits-6d17597b99640fb0.yaml @ b'0f377f7a2cdbd7eaa46e8e2b5de974c8c22b9612'
10652
10652
10653
10653
- Fixed :meth:`.QuantumCircuit.reverse_bits` with circuits containing registerless
10654
- :class:`.Qubit` and :class:`.Clbit`. For example, the following will now work::
10654
+ :class:`~.circuit .Qubit` and :class:`.Clbit`. For example, the following will now work::
10655
10655
10656
10656
from qiskit.circuit import QuantumCircuit, Qubit, Clbit
10657
10657
@@ -10954,7 +10954,7 @@ Bug Fixes
10954
10954
- Fixed an issue with the visualization function :func:`~.dag_drawer` and
10955
10955
method :meth:`.DAGCircuit.draw` where previously the drawer would fail
10956
10956
when attempting to generate a visualization for a :class:`~.DAGCircuit`
10957
- object that contained a :class:`~.Qubit` or :class:`~.Clbit` which wasn't
10957
+ object that contained a :class:`~.circuit. Qubit` or :class:`~.Clbit` which wasn't
10958
10958
part of a :class:`~QuantumRegister` or :class:`~ClassicalRegister`.
10959
10959
Fixed `#7915 <https://github.com/Qiskit/qiskit-terra/issues/7915>`__.
10960
10960
@@ -12350,7 +12350,7 @@ Upgrade Notes
12350
12350
12351
12351
.. releasenotes/notes/0.20/bit-slots-17d6649872da0440.yaml @ b'a2d13f55aad6c670f71a4613516b8891e02ece63'
12352
12352
12353
- - The classes :class:`.Qubit`, :class:`.Clbit` and :class:`.AncillaQubit` now
12353
+ - The classes :class:`~.circuit .Qubit`, :class:`.Clbit` and :class:`.AncillaQubit` now
12354
12354
have the ``__slots__`` attribute. This is to reduce their memory usage. As a
12355
12355
side effect, they can no longer have arbitrary data attached as attributes
12356
12356
to them. This is very unlikely to have any effect on downstream code other
@@ -13180,7 +13180,7 @@ Bug Fixes
13180
13180
- Fixed QPY serialization of :class:`.QuantumCircuit` containing subsets of
13181
13181
bits from a :class:`.QuantumRegister` or :class:`.ClassicalRegister`.
13182
13182
Previously if you tried to serialize a circuit like this it would
13183
- incorrectly treat these bits as standalone :class:`.Qubit` or
13183
+ incorrectly treat these bits as standalone :class:`~.circuit .Qubit` or
13184
13184
:class:`.Clbit` without having a register set. For example, if you try to
13185
13185
serialize a circuit like::
13186
13186
0 commit comments