From 1f5e3cb2a6363e9a5eee7ec560b1fde3a4bbf900 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Wed, 5 May 2021 10:31:23 -0400 Subject: [PATCH] Prepare 0.17.2 release (#6354) * Prepare 0.17.2 release This commit prepares for the 0.17.2 release by bumping the version strings to reflect the new version and updating the release notes. This is just a bugfix release that fixes bugs since the 0.17.1 release. * Update release notes --- docs/conf.py | 2 +- qiskit/VERSION.txt | 2 +- ...target-basis-translation-12a9fa02c9ceef25.yaml | 7 +++++-- .../bugfix-spsa-callback-24f7200814f16895.yaml | 6 +++--- .../fix-expval-pauli-qargs-183843993ca83f71.yaml | 10 ++++++---- .../notes/fix-pauli-evolve-c6653853962885cd.yaml | 7 +++++-- ...efn-equality-and-to-dict-96d1a1ae98bcdb52.yaml | 10 ++++++---- ...tate-probabilities-qargs-f5f2a29dc07e69cd.yaml | 11 ++++++----- ...apered-pauli-with-params-6df0fcfe4197feac.yaml | 11 +++++++---- .../notes/prep-0.17.2-20da26503826bf27.yaml | 15 +++++++++++++++ setup.py | 2 +- 11 files changed, 56 insertions(+), 27 deletions(-) create mode 100644 releasenotes/notes/prep-0.17.2-20da26503826bf27.yaml diff --git a/docs/conf.py b/docs/conf.py index 2482a7126bf0..bb5962018116 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -44,7 +44,7 @@ # The short X.Y version version = '' # The full version, including alpha/beta/rc tags -release = '0.17.1' +release = '0.17.2' # -- General configuration --------------------------------------------------- diff --git a/qiskit/VERSION.txt b/qiskit/VERSION.txt index 7cca7711a0dd..c3d16c1646bd 100644 --- a/qiskit/VERSION.txt +++ b/qiskit/VERSION.txt @@ -1 +1 @@ -0.17.1 +0.17.2 diff --git a/releasenotes/notes/bugfix-skip-target-basis-translation-12a9fa02c9ceef25.yaml b/releasenotes/notes/bugfix-skip-target-basis-translation-12a9fa02c9ceef25.yaml index c139b7919036..6c5b01870589 100644 --- a/releasenotes/notes/bugfix-skip-target-basis-translation-12a9fa02c9ceef25.yaml +++ b/releasenotes/notes/bugfix-skip-target-basis-translation-12a9fa02c9ceef25.yaml @@ -1,5 +1,8 @@ --- fixes: - | - Fixed an issue with :class:`~qiskit.transpiler.passes.BasisTranslator` where in some - cases it would translate gates already in the target basis. + Fixed an issue with the :class:`~qiskit.transpiler.passes.BasisTranslator` + transpiler pass which in some cases would translate gates already in the + target basis. This would potentially result in both longer execution time + and less optimal results. + Fixed `#6085 `__ diff --git a/releasenotes/notes/bugfix-spsa-callback-24f7200814f16895.yaml b/releasenotes/notes/bugfix-spsa-callback-24f7200814f16895.yaml index 70befe7d1d39..d61fad90065b 100644 --- a/releasenotes/notes/bugfix-spsa-callback-24f7200814f16895.yaml +++ b/releasenotes/notes/bugfix-spsa-callback-24f7200814f16895.yaml @@ -1,6 +1,6 @@ --- fixes: - | - Fixed an issue in :class:`~qiskit.algorithms.optimisers.SPSA` where - providing a callback function caused an error. Also updated callback - function parameter documentation to match code. + Fixed an issue in the :class:`~qiskit.algorithms.optimisers.SPSA` when + the optimizer was initialized with a callback function via the ``callback`` + kwarg would potentially cause an error to be raised. diff --git a/releasenotes/notes/fix-expval-pauli-qargs-183843993ca83f71.yaml b/releasenotes/notes/fix-expval-pauli-qargs-183843993ca83f71.yaml index e33186509bc7..406afefde1ae 100644 --- a/releasenotes/notes/fix-expval-pauli-qargs-183843993ca83f71.yaml +++ b/releasenotes/notes/fix-expval-pauli-qargs-183843993ca83f71.yaml @@ -1,8 +1,10 @@ --- fixes: - | - Fixes bug in :meth:`qiskit.quantum_info.Statevector.expectation_value` - and :meth:`qiskit.quantum_info.DensityMatrix.expectation_value` where - the ``qargs`` kwarg was ignored if the operator was a + Fixed an issue in the + :meth:`qiskit.quantum_info.Statevector.expectation_value` + and :meth:`qiskit.quantum_info.DensityMatrix.expectation_value`methods + where the ``qargs`` kwarg was ignored if the operator was a :class:`~qiskit.quantum_info.Pauli` or - :class:`~qiskit.quantum_info.SparsePauliOp` operator. + :class:`~qiskit.quantum_info.SparsePauliOp` operator object. + Fixed `#6303 `__ diff --git a/releasenotes/notes/fix-pauli-evolve-c6653853962885cd.yaml b/releasenotes/notes/fix-pauli-evolve-c6653853962885cd.yaml index d85a6859fcb6..7c1c979087ec 100644 --- a/releasenotes/notes/fix-pauli-evolve-c6653853962885cd.yaml +++ b/releasenotes/notes/fix-pauli-evolve-c6653853962885cd.yaml @@ -1,5 +1,8 @@ --- fixes: - | - Fixes a bug in :meth:`qiskit.quantum_info.Pauli.evolve` which could - result in the incorrect Pauli when evolving by a CZ, CY, or Swap gate. + Fixed an issue in the :meth:`qiskit.quantum_info.Pauli.evolve` method + which could have resulted in the incorrect Pauli being returned when + evolving by a :class:`~qiskit.circuit.library.CZGate`, + :class:`~qiskit.circuit.library.CYGate`, or a + :class:`~qiskit.circuit.library.SwapGate` gate. diff --git a/releasenotes/notes/fix-sparse-statefn-equality-and-to-dict-96d1a1ae98bcdb52.yaml b/releasenotes/notes/fix-sparse-statefn-equality-and-to-dict-96d1a1ae98bcdb52.yaml index cf0dc377af34..57d24ff434a8 100644 --- a/releasenotes/notes/fix-sparse-statefn-equality-and-to-dict-96d1a1ae98bcdb52.yaml +++ b/releasenotes/notes/fix-sparse-statefn-equality-and-to-dict-96d1a1ae98bcdb52.yaml @@ -1,8 +1,10 @@ --- fixes: - | - Fix the :meth:`qiskit.opflow.SparseVectorStateFn.to_dict_fn` method, which - previously had at most one entry for the all zero state due to an index error. + Fixed an issue in the :meth:`qiskit.opflow.SparseVectorStateFn.to_dict_fn` + method, which previously had at most one entry for the all zero state due + to an index error. - | - Fix the :meth:`qiskit.opflow.SparseVectorStateFn.equals` method to return - `True` or `False` instead of a sparse vector comparison of the single elements. + Fixed an issue in the :meth:`qiskit.opflow.SparseVectorStateFn.equals` + method so that is properly returning ``True`` or ``False`` instead of a + sparse vector comparison of the single elements. diff --git a/releasenotes/notes/fix-state-probabilities-qargs-f5f2a29dc07e69cd.yaml b/releasenotes/notes/fix-state-probabilities-qargs-f5f2a29dc07e69cd.yaml index a3c96e438e77..3ad493b9f26d 100644 --- a/releasenotes/notes/fix-state-probabilities-qargs-f5f2a29dc07e69cd.yaml +++ b/releasenotes/notes/fix-state-probabilities-qargs-f5f2a29dc07e69cd.yaml @@ -1,11 +1,12 @@ --- fixes: - | - Fixes a bug in :class:`~qiskit.quantum_info.Statevector` and + Fixes an issue in the :class:`~qiskit.quantum_info.Statevector` and :class:`~qiskit.quantum_info.DensityMatrix` probability methods - :meth:`~qiskit.quantum_info.Statevector.probabilities`, - :meth:`~qiskit.quantum_info.Statevector.probabilities_dict`, - :meth:`~qiskit.quantum_info.DensityMatrix.probabilities`, - :meth:`~qiskit.quantum_info.DensityMatrix.probabilities_dict` + :meth:`qiskit.quantum_info.Statevector.probabilities`, + :meth:`qiskit.quantum_info.Statevector.probabilities_dict`, + :meth:`qiskit.quantum_info.DensityMatrix.probabilities`, + :meth:`qiskit.quantum_info.DensityMatrix.probabilities_dict` where the returned probabilities could have incorrect ordering for certain values of the ``qargs`` kwarg. + Fixed `#6320 `__ diff --git a/releasenotes/notes/fix-tapered-pauli-with-params-6df0fcfe4197feac.yaml b/releasenotes/notes/fix-tapered-pauli-with-params-6df0fcfe4197feac.yaml index e8b22e342d55..677bbc56c790 100644 --- a/releasenotes/notes/fix-tapered-pauli-with-params-6df0fcfe4197feac.yaml +++ b/releasenotes/notes/fix-tapered-pauli-with-params-6df0fcfe4197feac.yaml @@ -1,7 +1,10 @@ --- fixes: - | - Fixes the bug where :class:`~qiskit.opflow.TaperedPauliSumOp` - did not support the multiplication by - :class:`~qiskit.circuit.ParameterExpression` and - :meth:`~qiskit.opflow.TaperedPauliSumOp.assign_parameters`. + Fixed an issue where the :class:`~qiskit.opflow.TaperedPauliSumOp` class + did not support the multiplication with + :class:`~qiskit.circuit.ParameterExpression` object and also did not have + a necessary :meth:`~qiskit.opflow.TaperedPauliSumOp.assign_parameters` + method for working with :class:`~qiskit.circuit.ParameterExpression` + objects. + Fixed `#6127 `__ diff --git a/releasenotes/notes/prep-0.17.2-20da26503826bf27.yaml b/releasenotes/notes/prep-0.17.2-20da26503826bf27.yaml new file mode 100644 index 000000000000..f527e679b735 --- /dev/null +++ b/releasenotes/notes/prep-0.17.2-20da26503826bf27.yaml @@ -0,0 +1,15 @@ +--- +prelude: > + This is a bugfix release that fixes several issues from the 0.17.1 release. + Most importantly this release fixes compatibility for the + :class:`~qiskit.utils.QuantumInstance` class when running on backends + that are based on the :class:`~qiskit.providers.BackendV1` abstract class. + This fixes all the algorithms and applications built on + :mod:`qiskit.algorithms` or :mod:`qiskit.opflow` when running on newer + backends. +fixes: + - | + Fixed compatibility for the :class:`~qiskit.utils.QuantumInstance` class + when running on backends that are based on the + :class:`~qiskit.providers.BackendV1` abstract class. + Fixed `#6280 `__ diff --git a/setup.py b/setup.py index 754a9fa69538..22d2eb66248c 100755 --- a/setup.py +++ b/setup.py @@ -69,7 +69,7 @@ setup( name="qiskit-terra", - version="0.17.1", + version="0.17.2", description="Software for developing quantum computing programs", long_description=README, long_description_content_type='text/markdown',