-
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.
Release notes for Terra 0.21rc1 (#8227)
* Fix typos in release notes * Remove release notes from 0.20.x patches * Update releasenotes/notes/delay-fake-backends-3f68c074e85d531f.yaml * Update add_check_from_sparse_list-97f13fde87c7bcb6.yaml Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
- Loading branch information
1 parent
a5b5f81
commit f51dd9c
Showing
54 changed files
with
112 additions
and
303 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,6 @@ | ||
--- | ||
features: | ||
- | | ||
Adds a ``@`` (``__matmul__``) binary operator to ``BaseOperator`` subclasses | ||
Added the ``@`` (``__matmul__``) binary operator to ``BaseOperator`` subclasses | ||
in the :mod:`qiskit.quantum_info` module. This is shorthand to call the | ||
classes ``dot`` method (``A @ B == A.dot(B)``). | ||
Example | ||
.. code:: python | ||
from qiskit.quantum_info import Pauli | ||
Pauli("X") @ Pauli("Y") | ||
classes' ``dot`` method (``A @ B == A.dot(B)``). |
22 changes: 10 additions & 12 deletions
22
releasenotes/notes/add-serializable-parametric-pulse-31490c4d2cc49ec6.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 |
---|---|---|
@@ -1,22 +1,20 @@ | ||
--- | ||
features: | ||
- | | ||
New pulse base class :class:`~SymbolicPulse` has been added. This is a | ||
replacement of the conventional :class:`~ParametricPulse` which will be deprecated. | ||
In new base class, pulse envelope and parameter validation functions are | ||
represented by symbolic expression objects, which are lambidfied immediately when | ||
corresponding methods are called for the first time. | ||
The new class provides a self-contained and portable pulse data since these symbolic equations | ||
Added a new pulse base class :class:`.SymbolicPulse`. This is a | ||
replacement of the conventional :class:`.ParametricPulse`, which will be deprecated. | ||
In the new base class, pulse-envelope and parameter-validation functions are | ||
represented by symbolic-expression objects. | ||
The new class provides self-contained and portable pulse data since these symbolic equations | ||
can be easily serialized through symbolic computation libraries. | ||
QPY serialization support of these pulses is planned. | ||
upgrade: | ||
- | | ||
Importing pulse class from ``qiskit.pulse.library.*`` now import :class:`~SymbolicPulse` | ||
subclass rather than :class:`~ParametricPulse` subclass. | ||
There are same set of pulse subclass in the symbolic pulse module, | ||
The pulse classes in :mod:`qiskit.pulse.library` are now subclasses of | ||
:class:`.SymbolicPulse` rather than :class:`.ParametricPulse`. The available | ||
classes remain unchanged as | ||
:class:`~qiskit.pulse.library.Gaussian`, | ||
:class:`~qiskit.pulse.library.GaussianSquare`, | ||
:class:`~qiskit.pulse.library.Drag`, and | ||
:class:`~qiskit.pulse.library.Constant`. | ||
Becasue :class:`~SymbolicPulse` supports full backward compatibility, | ||
there is no loss of functionality due to the switching of the base class. | ||
:class:`.SymbolicPulse` has full backward compatibility, and there should be | ||
no loss of functionality. |
6 changes: 3 additions & 3 deletions
6
releasenotes/notes/add-support-non-hermitian-op-aerpauliexpectation-653d8e16de4eca07.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
features: | ||
- | | ||
Added the support of non-hermitian operators for :class:`~qiskit.opflow.AerPauliExpectation`. | ||
This for instance enables using Aer's fast snapshot expectation value in algorithms such as | ||
:class:`~qiskit.algorithms.QEOM`. | ||
Added support for non-Hermitian operators in :class:`.AerPauliExpectation`. | ||
This allows the use of Aer's fast snapshot expectation computations in | ||
algorithms such as :class:`~qiskit.algorithms.QEOM`. |
8 changes: 4 additions & 4 deletions
8
releasenotes/notes/add_check_from_sparse_list-97f13fde87c7bcb6.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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
features: | ||
fixes: | ||
- | | ||
Allow checking for duplicate qubit indices in :meth:`~qiskit.quantum_info.SparsePauliOp.from_sparse_list`. | ||
The checks can be turned off by setting the new keyword argument ``do_checks`` to ``False`` | ||
(it is ``True`` per default). | ||
Duplicate qubit indices given to :meth:`.SparsePauliOp.from_sparse_list` will now | ||
correctly raise an error, instead of silently overwriting previous values. | ||
The old behavior can be accessed by passing the new keyword argument ``do_checks=False``. |
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
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 |
---|---|---|
@@ -1,13 +1,11 @@ | ||
--- | ||
features: | ||
- | | ||
Added a new method :py:meth:`.QuantumCircuit.clear` which is used to to erase all instructions | ||
from a QuantumCircuit. We clear both the data and the parameter table. | ||
Added a new method :meth:`.QuantumCircuit.clear` which is used to remove all instructions | ||
from a :class:`.QuantumCircuit`. | ||
- | | ||
Added a new method :py:meth:`QuantumCircuit.copy_empty_like` which is used to get a cleared copy of a | ||
:class:`~.QuantumCircuit` instnace. This is logically equivalent to `qc.copy().clear()` however, it is done | ||
avoiding a deepcopy of the original QuantumCircuit, and therefore it is more efficient. This functionality | ||
already implemented for :class:`~.DAGCircuit`, and retains all relevant circuit properties other than the | ||
instructions and associated parameters (e.g. registers, bits, name, metadata). Unlike the | ||
:meth:`.DAGCircuit.copy_empty_like` method, this new :class:`~.QuantumCircuit` method allows for | ||
an optional parameter to update the name of the copied circuit, mimicking ``qc.copy(name)``. | ||
Added a new method :meth:`.QuantumCircuit.copy_empty_like` which is used to get a cleared copy of a | ||
:class:`~.QuantumCircuit` instance. This is logically equivalent to ``qc.copy().clear()``, but | ||
significantly faster and more memory-efficient. This is useful when one needs a new empty | ||
circuit with all the same resources (qubits, classical bits, metadata, and so on) already | ||
added. |
This file was deleted.
Oops, something went wrong.
12 changes: 4 additions & 8 deletions
12
releasenotes/notes/delay-fake-backends-3f68c074e85d531f.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 |
---|---|---|
@@ -1,12 +1,8 @@ | ||
--- | ||
fixes: | ||
- | | ||
The :class:`~.BackendV2` based fake backends in | ||
The :class:`~.BackendV2`\ -based fake backends in | ||
the :mod:`qiskit.providers.fake_provider` module, such as | ||
``FakeMontrealV2``, previously were missing the :class:`~qiskit.circuit.Delay` operation | ||
support from their :attr:`~.BackendV2.target` attribute. This prevented | ||
compiling some :class:`~.QuantumCircuit` objects that contained | ||
:class:`~qiskit.circuit.Delay` instructions to these backends. This has been corrected | ||
by adding the :class:`~qiskit.circuit.Delay` to the :class:`~.Target` object for each | ||
fake backend to ensure that the compiler knows that :class:`~qiskit.circuit.Delay` is | ||
a valid operation on the fake backends. | ||
:class:`.FakeMontrealV2`, now support the :class:`~qiskit.circuit.Delay` operation | ||
in their :attr:`~.BackendV2.target` attributes. Previously, :class:`.QuantumCircuit` objects | ||
that contained delays could not be compiled to these backends. |
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
--- | ||
deprecations: | ||
- | | ||
The `NetworkX <https://networkx.org/>`_ converter function for the | ||
:class:`~.DAGCircuit`, :meth:`~.DAGCircuit.to_networkx` and | ||
The `NetworkX <https://networkx.org/>`__ converter functions for the | ||
:meth:`.DAGCircuit.to_networkx` and | ||
:meth:`~.DAGCircuit.from_networkx`, along with the | ||
:meth:`.DAGDependency.to_networkx` method have been deprecated and will be | ||
removed in a future release. Qiskit has been using | ||
`retworkx <https://qiskit.org/documentation/retworkx/>`__ as its graph | ||
library since the qiskit-terra 0.12.0 release and since then the networkx | ||
converter function have been a lossy process. They were originally added so | ||
that users could leverage NetworkX's algorithms library to leverage | ||
functionality not present in retworkx. Since that time retworkx has matured | ||
and offers more functionality and the :class:`~.DAGCircuit` is tightly | ||
library since the qiskit-terra 0.12.0 release, and since then the networkx | ||
converter functions have been lossy. They were originally added so | ||
that users could leverage functionality in NetworkX's algorithms library | ||
not present in retworkx. Since that time, retworkx has matured | ||
and offers more functionality, and the :class:`~.DAGCircuit` is tightly | ||
coupled to retworkx for its operation. Having these converter methods | ||
provides limited value moving forward and are therefore going to be | ||
removed in a future release. |
20 changes: 7 additions & 13 deletions
20
releasenotes/notes/feature-trotter-qrte-f7b28c4fd4b361d2.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
6 changes: 0 additions & 6 deletions
6
releasenotes/notes/fix-aux-ops-evaluator-83ce1606d1ad19b3.yaml
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
releasenotes/notes/fix-dag-drawer-no-reg-6eee9d1f6e4b9261.yaml
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
releasenotes/notes/fix-drag-pulse-validation-905f9b6353a0f2d1.yaml
This file was deleted.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
...senotes/notes/fix-eigs_bounds-function-in-TridiagonalToeplitz-class-52cfad8f72ae7341.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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fix a bug in TridiagonalToeplitz.eigs_bounds() method, which caused | ||
a returning of wrong eigenvalues bounds in some cases with negative | ||
eigenvalues. Refer to `#7939 <https://github.com/Qiskit/qiskit-terra/issues/7939>` | ||
for more details. | ||
Fixed a bug in :meth:`.TridiagonalToeplitz.eigs_bounds`, which caused | ||
incorrect eigenvalue bounds to be returned in some cases with negative | ||
eigenvalues. Refer to `#7939 <https://github.com/Qiskit/qiskit-terra/issues/7939>`__ | ||
for more details. |
8 changes: 0 additions & 8 deletions
8
releasenotes/notes/fix-fake-backend-v2-dtm-unit-392a8fe3fcc9b793.yaml
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
releasenotes/notes/fix-hard-coded-sleep-run-circuits-a1588164e61d5336.yaml
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
releasenotes/notes/fix-latex-ket-max-size-f11c3a89215a49e7.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixed a bug in which the latex state vector drawer ignores the `max_size` | ||
Fixed a bug in which the LaTeX statevector drawer ignored the ``max_size`` | ||
parameter. |
7 changes: 0 additions & 7 deletions
7
releasenotes/notes/fix-list-input-schedule-14fc48895a061735.yaml
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
releasenotes/notes/fix-marginal_counts-zero-memory-0f6710d6923c8ad7.yaml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
releasenotes/notes/fix-primitive-init-observable-pauli-e312c05d1c3bd804.yaml
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
releasenotes/notes/fix-qasm3-global-statement-order-ca8bdb35e0fb8dec.yaml
This file was deleted.
Oops, something went wrong.
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
7 changes: 0 additions & 7 deletions
7
releasenotes/notes/fix-rzx-builder-pulse-amp-ba5c876ddea17c41.yaml
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
releasenotes/notes/fix-sabreswap-clbits-428eb5f3a46063da.yaml
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
releasenotes/notes/fix-t2-configurablefakebackend-8660ab3d7a57a824.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixed the ``t2`` attribute of ``qiskit.providers.fake_provider.ConfigurableFakeBackend``, | ||
which was previously incorrectly set based on the provided ``t1``. | ||
Fixed the :attr:`.ConfigurableFakeBackend.t2` attribute, | ||
which was previously incorrectly set based on the provided ``t1`` value. |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixed an issue with :class:`~.BackendV2` based fake backend classes from the | ||
``qiskit.providers.fake_provider`` module such as ``FakeMontrealV2`` where the | ||
Fixed an issue with :class:`~.BackendV2`\ -based fake backend classes from the | ||
:mod:`qiskit.providers.fake_provider` module such as :class:`.FakeMontrealV2` where the | ||
value for the :attr:`~.BackendV2.dt` attribute (and the :attr:`.Target.dt` attribute) | ||
were not properly being converted to seconds. This would cause issues when | ||
using these fake backends with scheduling. |
8 changes: 0 additions & 8 deletions
8
releasenotes/notes/fix-transpile-backendv2-durations-dbc85688564cc271.yaml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.