Skip to content

Commit 7254fb4

Browse files
Prepare 1.3.2 (#13678)
* update version to 1.3.2 * adjusting release notes * adding release notes Co-authored-by: Shelly Garion <shelly@il.ibm.com> * Addressing Julien's and Abby's comments; fixing broken links --------- Co-authored-by: Shelly Garion <shelly@il.ibm.com>
1 parent a623960 commit 7254fb4

15 files changed

+66
-53
lines changed

Cargo.lock

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = ["crates/*"]
33
resolver = "2"
44

55
[workspace.package]
6-
version = "1.3.1"
6+
version = "1.3.2"
77
edition = "2021"
88
rust-version = "1.70" # Keep in sync with README.md and rust-toolchain.toml.
99
license = "Apache-2.0"

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
# The short X.Y version
3333
version = "1.3"
3434
# The full version, including alpha/beta/rc tags
35-
release = "1.3.1"
35+
release = "1.3.2"
3636

3737
language = "en"
3838

qiskit/VERSION.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.1
1+
1.3.2
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
---
22
fixes:
33
- |
4-
Commutation relations of :class:`~.circuit.Instruction`\ s with float-only ``params``
5-
were eagerly cached by the :class:`.CommutationChecker`, using the ``params`` as key to
6-
query the relation. This could lead to faulty results, if the instruction's definition
7-
depended on additional information that just the :attr:`~.circuit.Instruction.params`
8-
attribute, such as e.g. the case for :class:`.PauliEvolutionGate`.
9-
This behavior is now fixed, and the commutation checker only conservatively caches
10-
commutations for Qiskit-native standard gates. This can incur a performance cost if you were
11-
relying on your custom gates being cached, however, we cannot guarantee safe caching for
12-
custom gates, as they might rely on information beyond :attr:`~.circuit.Instruction.params`.
4+
Previously, the :class:`.CommutationChecker` eagerly cached the commutation relations of
5+
:class:`~.circuit.Instruction`\ s with float-only ``params`` as key to query the relation.
6+
This could lead to incorrect results if the instruction's definition
7+
depended on additional information beyond just the :attr:`~.circuit.Instruction.params`
8+
attribute, as, for example, in the case of :class:`.PauliEvolutionGate`.
9+
This behavior is now fixed, and the commutation checker eagerly caches
10+
commutations only for Qiskit-native standard gates.
11+
For custom gates, this change might incur a performance cost; however, guarantees correct
12+
results by avoiding unsafe caching.
1313
- |
14-
Fixed a bug in the :class:`.CommmutationChecker`, where checking commutation of instruction
15-
with non-numeric values in the :attr:`~.circuit.Instruction.params` attribute (such as the
16-
:class:`.PauliGate`) could raise an error.
14+
Fixed a bug in the :class:`.CommutationChecker`, where checking commutation relations of
15+
an instruction
16+
with non-numeric values in the :attr:`~.circuit.Instruction.params` attribute (as in the
17+
case of :class:`.PauliGate`) could raise an error.
1718
Fixed `#13570 <https://github.com/Qiskit/qiskit/issues/13570>`__.
1819
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
fixes:
33
- |
4-
The :class:`.CommutationChecker` did not handle commutations of the :class:`.CRXGate`,
5-
:class:`.CRYGate` and :class:`.CRZGate` correctly for angles
6-
:math:`\pi(4k + 2)` for :math:`k \in \mathbb Z`.
7-
In these cases, the controlled rotations were falsely assumed to commute with any gate.
8-
Now these gates correctly commute with any gate if the rotation angle is a multiple of
9-
:math:`4\pi`.
4+
The :class:`.CommutationChecker` did not correctly handle commutations of the
5+
:class:`.CRXGate`, :class:`.CRYGate` and :class:`.CRZGate` for rotation angles
6+
of the form :math:`(4k + 2)\pi`, with :math:`k \in \mathbb Z`.
7+
In these cases, these gates were incorrectly assumed to commute with any gate.
8+
This behavior is now fixed, and these gates correctly commute with any gate only when the rotation
9+
angle is a multiple of :math:`4\pi`.
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
fixes:
22
- |
3-
Fixed a bug that caused the circuit library functions :func:`.efficient_su2`,
4-
:func:`.real_amplitudes`, :func:`.excitation_preserving` and :func:`.pauli_two_design`
5-
to error out when constructed for ``num_qubits==1``. For a single qubit these
6-
circuits will not contain any 2-qubit gates.
3+
Fixed a bug that caused the following circuit library functions to produce errors
4+
when called with ``num_qubits=1``:
5+
:func:`~qiskit.circuit.library.efficient_su2`,
6+
:func:`~qiskit.circuit.library.real_amplitudes`,
7+
:func:`~qiskit.circuit.library.excitation_preserving` and
8+
:func:`~qiskit.circuit.library.pauli_two_design`
9+
(for a single qubit, these circuits do not contain any 2-qubit gates).
10+
Fixed `#13480 <https://github.com/Qiskit/qiskit/issues/13480>`__.
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
---
22
fixes:
33
- |
4-
Fixed a bug where any instruction called ``"mcmt"`` would be passed into the high-level
5-
synthesis routine for a :class:`.MCMTGate`, which causes a failure or invalid result.
6-
In particular, this could happen accidentally when handling the :class:`.MCMT` _circuit_,
7-
named ``"mcmt"``, and implicitly converting it into an instruction e.g. when appending
8-
it to a circuit.
4+
Fixed a bug where any instruction named ``"mcmt"`` was incorrectly passed to the
5+
high-level synthesis routine for a :class:`.MCMTGate`, leading to a failure or an
6+
invalid result. This issue could happen, for example, when handling the :class:`.MCMT`
7+
*circuit*, named ``"mcmt"``, and implicitly converting it into an instruction
8+
(e.g., when appending it to another circuit).
99
Fixed `#13563 <https://github.com/Qiskit/qiskit/issues/13563>`__.
10+
1011
upgrade_synthesis:
1112
- |
12-
The plugins for :class:`.LinearFunction` no longer raise an error if another object
13-
than :class:`.LinearFunction` is passed into the ``run`` method. Instead, ``None`` is
14-
returned, which is consistent with the other plugins. If you relied on this error being raised,
15-
you can manually perform an instance-check.
13+
The high-level synthesis plugins for :class:`.LinearFunction` no longer raise an
14+
error when an object other than :class:`.LinearFunction` is passed into the ``run``
15+
method. Instead, they now return ``None``, which is consistent with other plugins.
16+
If you relied on this error being raised, you can manually perform an instance-check.
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
---
22
fixes:
33
- |
4-
The :class:`.PauliEvolutionGate`, if used with a product formula synthesis (this is the default),
4+
Fixed a bug where the default product formula synthesis for :class:`.PauliEvolutionGate`
55
did not correctly handle all-identity terms in the operator. The all-identity term
6-
should introduce a global phase equal to ``-evolution_time``, but was off by a factor of 2
7-
and could break for parameterized times. This behavior is now fixed.
6+
should introduce a global phase equal to ``-evolution_time``, but was off by a factor
7+
of 2 and could break for parameterized times.
88
Fixed `#13625 <https://github.com/Qiskit/qiskit/issues/13625>`__.
9+
Fixed `#13675 <https://github.com/Qiskit/qiskit/issues/13675>`__.
10+
Fixed `#13644 <https://github.com/Qiskit/qiskit/issues/13644>`__.
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
22
fixes:
33
- |
4-
Fixed an inconsistency in the circuit generated by a Pauli evolution synthesis
5-
with :class:`.SuzukiTrotter` or :class:`.LieTrotter` (the default) method.
4+
Fixed an inconsistency in the circuit generated by Pauli evolution synthesis
5+
using :class:`.SuzukiTrotter` or :class:`.LieTrotter` (the default) method.
66
For parameterized evolution times, the resulting circuits contained parameters
7-
with a spurious, zero complex part, which affected the output of
8-
:meth:`.ParameterExpression.sympify`. The output now correctly is only real.
7+
with a spurious zero complex part, which affected the output of
8+
:meth:`.ParameterExpression.sympify`. The output now correctly contains only real
9+
values.
910
Fixed `#13642 <https://github.com/Qiskit/qiskit/pull/13642>`__.

releasenotes/notes/fix-paulilist-length1-phase-688d0e3a64ec9a9f.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
fixes:
33
- |
44
Fixed a bug that caused :meth:`.PauliList.insert` with ``qubit=True`` to produce a `phase`
5-
attribute with the wrong shape when the original object was length 1.
5+
attribute with the wrong shape when the original object was of length 1.
66
Fixed `#13623 <https://github.com/Qiskit/qiskit/issues/13623>`__.
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
fixes:
33
- |
4-
Fix a bug in :class:`.qasm3.Exporter` that caused the exporter to crash when
5-
handling a unitary gate due to incorrect processing of its ``params`` field.
4+
Fixed a bug in :class:`.qasm3.Exporter` that caused the exporter to crash when
5+
handling a unitary gate due to an incorrect processing of its ``params`` field.
6+
Fixed `#13362 <https://github.com/Qiskit/qiskit/issues/13362>`__.

releasenotes/notes/fix-target-instr-supported-900a1caa76e30655.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
fixes:
33
- |
44
Fixed a bug in the :meth:`.Target.instruction_supported` method where
5-
targets with ``self.num_qubits==None`` would always return ``false``
6-
independently of the supported basis set.
5+
targets with ``self.num_qubits==None`` would always return ``False``
6+
independently of the supported basis set.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
prelude: >
3+
Qiskit 1.3.2 is a minor bugfix release for the 1.3 series.
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
fixes:
22
- |
3-
Fixed a bug where a initializing :class:`.SparsePauliOp` with a large
3+
Fixed a bug where initializing :class:`.SparsePauliOp` with a large
44
number of Pauli-``Y`` terms (typically :math:`\geq 100`) and no explicit
55
``coeffs`` would result in a coefficient close to 1 but with a floating point
66
error. The coefficient is now correctly 1 per default.
7-
Fixed `#13522 <https://github.com/Qiskit/qiskit/issues/13522>`__.
7+
Fixed `#13522 <https://github.com/Qiskit/qiskit/issues/13522>`__.

0 commit comments

Comments
 (0)