Skip to content

Commit

Permalink
Add missing release note
Browse files Browse the repository at this point in the history
  • Loading branch information
mtreinish committed Mar 30, 2022
1 parent 0656d1b commit d4e0fd4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions releasenotes/notes/qubit-properties-target-6b1fb155a46cb942.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
features:
- |
Added a new attribute, :attr:`~.Target.qubit_properties` to the
:class:`~.Target` class. This attribute contains a list of
:class:`~.QubitProperties` objects for each qubit in the target.
For example::
target.qubit_properties[2]
will contain the :class:`~.QubitProperties` for qubit number 2 in the
target.
For :class:`~.BackendV2` authors, if you were previously defining
:class:`~.QubitProperties` directly on your :class:`~.BackendV2`
implementation by overriding :meth:`.BackendV2.qubit_properties` this
will still work fine. However, if you do move the definition to the
underlying :class:`~.Target` object and remove the specialized
:meth:`.BackendV2.qubit_properties` implementation which will enable
using qubit properties in the transpiler and also maintain API compatibility
with your previous implementation

0 comments on commit d4e0fd4

Please sign in to comment.