-
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.
* Prepare 0.22.0 release This commit prepares the 0.22.0 release, this involves 2 steps first changing all the version numbers to 0.22.0 from 0.22.0rc1 and secondly migrating the release notes to a standalone directory for 0.22.0 (this was already done on main as part of #8850 but not on the stable branch). * Start updating release note * Finish first pass over feature release notes * Fix typo * Update upgrade and deprecation notes * Remove release notes for already release bug fixes * Update bugfix release notes * Fix typo * Apply suggestions from code review Co-authored-by: Julien Gacon <[email protected]> * Move and update new release notes * Fix up typos in release notes Co-authored-by: Julien Gacon <[email protected]> Co-authored-by: Jake Lishman <[email protected]>
- Loading branch information
1 parent
b75df3a
commit 6187703
Showing
164 changed files
with
726 additions
and
782 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.22.0rc2 | ||
0.22.0 |
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
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
15 changes: 0 additions & 15 deletions
15
releasenotes/notes/0.21/add-sparsepauliop-methods-00a7e6cc7055e1d0.yaml
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
releasenotes/notes/0.21/fix-marginal_counts-on-pulse-backend.yaml
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
releasenotes/notes/0.21/remove-hard-time-limit-vf2-be83830ecc71f72c.yaml
This file was deleted.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
...tes/notes/adapt-vqe-0f71234cb6ec92f8.yaml → ...otes/0.22/adapt-vqe-0f71234cb6ec92f8.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
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
19 changes: 19 additions & 0 deletions
19
releasenotes/notes/0.22/add-barrier-label-8e677979cb37461e.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,19 @@ | ||
--- | ||
features: | ||
- | | ||
Added a ``label`` parameter to the :class:`.Barrier` class's constructor | ||
and the :meth:`~.QuantumCircuit.barrier` method which allows a user to | ||
assign a label to an instance of the :class:`~.Barrier` directive. For | ||
visualizations generated with :func:`~.circuit_drawer` or | ||
:meth:`.QuantumCircuit.draw` this label will be printed at the top of the | ||
``barrier``. | ||
.. jupyter-execute:: | ||
from qiskit import QuantumCircuit | ||
circuit = QuantumCircuit(2) | ||
circuit.h(0) | ||
circuit.h(1) | ||
circuit.barrier(label="After H") | ||
circuit.draw('mpl') |
6 changes: 6 additions & 0 deletions
6
releasenotes/notes/0.22/add-ccz-cs-and-csdg-gates-4ad05e323f1dec4d.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,6 @@ | ||
--- | ||
features: | ||
- | | ||
Add new gates :class:`.CCZGate`, :class:`.CSGate`, and :class:`.CSdgGate` | ||
to the standard gates in the Circuit Library | ||
(:mod:`qiskit.circuit.library`). |
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
34 changes: 34 additions & 0 deletions
34
releasenotes/notes/0.22/add-gradients-with-primitives-561cf9cf75a7ccb8.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,34 @@ | ||
--- | ||
features: | ||
- | | ||
Added a new module :mod:`qiskit.algorithms.gradients` that contains | ||
classes which are used to compute gradients using the primitive | ||
interfaces defined in :mod:`qiskit.primitives`. There are 4 types of | ||
gradient classes: Finite Difference, Parameter Shift, Linear | ||
Combination of Unitary, and SPSA with implementations that either use | ||
an instance of the :class:`~.BaseEstimator` interface: | ||
* :class:`~.ParamShiftEstimatorGradient` | ||
* :class:`~.LinCombEstimatorGradient` | ||
* :class:`~.FiniteDiffEstimatorGradient` | ||
* :class:`~.SPSAEstimatorGradient` | ||
or an instance of the :class:`~.BaseSampler` interface: | ||
* :class:`~.ParamShiftSamplerGradient` | ||
* :class:`~.LinCombSamplerGradient` | ||
* :class:`~.FiniteDiffSamplerGradient` | ||
* :class:`~.SPSASamplerGradient` | ||
The estimator-based gradients compute the gradient of expectation | ||
values, while the sampler-based gradients return gradients of the | ||
measurement outcomes (also referred to as "probability gradients"). | ||
For example: | ||
.. code-block:: python | ||
estimator = Estimator(...) | ||
gradient = ParamShiftEstimatorGradient(estimator) | ||
job = gradient.run(circuits, observables, parameters) | ||
gradients = job.result().gradients |
24 changes: 24 additions & 0 deletions
24
releasenotes/notes/0.22/add-grover-primitives-10f81efdba93703d.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,24 @@ | ||
--- | ||
features: | ||
- | | ||
The :class:`~.Grover` class has a new keyword argument, ``sampler`` which is | ||
used to run the algorithm using an instance of the :class:`~.BaseSampler` | ||
interface to calculate the results. This new argument supersedes the | ||
the ``quantum_instance`` argument and accordingly, ``quantum_instance`` | ||
is pending deprecation and will be deprecated and subsequently removed in | ||
future releases. | ||
Example: | ||
.. code-block:: python | ||
from qiskit import QuantumCircuit | ||
from qiskit.primitives import Sampler | ||
from qiskit.algorithms import Grover, AmplificationProblem | ||
sampler = Sampler() | ||
oracle = QuantumCircuit(2) | ||
oracle.cz(0, 1) | ||
problem = AmplificationProblem(oracle, is_good_state=["11"]) | ||
grover = Grover(sampler=sampler) | ||
result = grover.amplify(problem) |
20 changes: 20 additions & 0 deletions
20
releasenotes/notes/0.22/add-pulse-drawer-option-936b6d943de9a270.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,20 @@ | ||
--- | ||
features: | ||
- | | ||
A new option, ``"formatter.control.fill_waveform"`` has been added to | ||
the pulse drawer (:func:`.pulse_v2.draw` and :meth:`.Schedule.draw`) | ||
style sheets. This option can be used to remove the face color of pulses | ||
in the output visualization which allows for drawing pulses only with | ||
lines. | ||
For example: | ||
.. code-block:: python | ||
from qiskit.visualization.pulse_v2 import IQXStandard | ||
my_style = IQXStandard( | ||
**{"formatter.control.fill_waveform": False, "formatter.line_width.fill_waveform": 2} | ||
) | ||
my_sched.draw(style=my_style) |
25 changes: 25 additions & 0 deletions
25
releasenotes/notes/0.22/add-reset-simplification-pass-82377d80dd0081fd.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,25 @@ | ||
--- | ||
features: | ||
- | | ||
Added a new transpiler pass, :class:`~.ResetAfterMeasureSimplification`, | ||
which is used to replace a :class:`~.Reset` operation after a | ||
:class:`~.Measure` with a conditional :class:`~.XGate`. This pass can | ||
be used on backends where a :class:`~.Reset` operation is performed by | ||
doing a measurement and then a conditional X gate so that this will | ||
remove the duplicate implicit :class:`~.Measure` from the :class:`~.Reset` | ||
operation. For example: | ||
.. jupyter-execute:: | ||
from qiskit import QuantumCircuit | ||
from qiskit.transpiler.passes import ResetAfterMeasureSimplification | ||
qc = QuantumCircuit(1) | ||
qc.measure_all() | ||
qc.reset(0) | ||
qc.draw('mpl') | ||
.. jupyter-execute:: | ||
result = ResetAfterMeasureSimplification()(qc) | ||
result.draw('mpl') |
17 changes: 17 additions & 0 deletions
17
releasenotes/notes/0.22/add-reverse-linear-entanglement-nlocal-38581e4ffb7a7c68.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,17 @@ | ||
--- | ||
features: | ||
- | | ||
Added a new supported value, ``"reverse_linear"`` for the ``entanglement`` keyword argument | ||
to the constructor for the :class:`~.NLocal` circuit class. For :class:`~.TwoLocal` circuits | ||
(which are subclassess of :class:`~.NLocal`), if ``entanglement_blocks="cx"`` then | ||
using ``entanglement="reverse_linear"`` provides an equivalent n-qubit circuit as | ||
``entanglement="full"`` but with only :math:`n-1` :class:`~.CXGate` gates, instead of | ||
:math:`\frac{n(n-1)}{2}`. | ||
upgrade: | ||
- | | ||
The default value for the ``entanglement`` keyword argument on the constructor for the | ||
:class:`~.RealAmplitudes` and :class:`~.EfficientSU2` classes has changed from ``"full"`` to | ||
``"reverse_linear"``. This change was made because the output circuit is equivalent but | ||
uses only :math:`n-1` instead of :math:`\frac{n(n-1)}{2}` :class:`~.CXGate` gates. If you | ||
desire the previous default you can explicity set ``entanglement="full"`` when calling either | ||
constructor. |
5 changes: 5 additions & 0 deletions
5
releasenotes/notes/0.22/add-sampler-error-check-38426fb186db44d4.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,5 @@ | ||
--- | ||
upgrade: | ||
- | | ||
Added a validation check to :meth:`.BaseSampler.run`. | ||
It raises an error if there is no classical bit. |
Oops, something went wrong.