Skip to content

Commit e3e6b01

Browse files
1ucian0mtreinish
andauthored
Prepare 1.4.1 (#13957)
* Prepare 1.4.1 * prelude * cargo build * unify version notation, some broken links, and fix circuit output * missing reno #13890 * exclude aer 0.16.4 * neither 0.16.3 * Apply suggestions from code review Co-authored-by: Matthew Treinish <mtreinish@kortar.org> * link --------- Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
1 parent ff15ce4 commit e3e6b01

7 files changed

Lines changed: 64 additions & 41 deletions

File tree

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

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

55
[workspace.package]
6-
version = "1.4.0"
6+
version = "1.4.1"
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
# The short X.Y version
3333
version = "1.4"
3434
# The full version, including alpha/beta/rc tags
35-
release = "1.4.0"
35+
release = "1.4.1"
3636

3737
language = "en"
3838

qiskit/VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.0
1+
1.4.1

releasenotes/notes/1.4/prepare-1.4.0-aee22d10333374c8.yaml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
prelude: |
3-
The Qiskit v1.4.0 release is the final minor version release for the v1.x series.
3+
The Qiskit v1.4 release is the final minor version release for the v1.x series.
44
This release contains minimal features, and primarily adds new
55
deprecation warnings for API changes coming
6-
in the future major version release v2.0.0. It is fully compatible with the
6+
in the future major version release v2.0. It is fully compatible with the
77
Qiskit v1.3.x releases. It is strongly recommended that you upgrade from
8-
v1.3.x to v1.4.0 so that you're able to see the warnings about which
9-
interfaces will change with Qiskit 2.0.0.
8+
v1.3.x to v1.4 so that you're able to see the warnings about which
9+
interfaces will change with Qiskit v2.0.
1010
The v1.4.x release series will continue to be supported and receive
1111
bugfixes for 6 months and security fixes for 1 year after this
1212
release. The fixes will take place via patch releases.
@@ -32,16 +32,16 @@ fixes:
3232
deprecations_circuits:
3333
- |
3434
Subclassing :class:`.Register` or :class:`.Bit`, or any subclass of them
35-
(for example, :class:`.QuantumRegister` or :class:`~.circuit.Qubit`) is deprecated as of Qiskit v1.4.0.
35+
(for example, :class:`.QuantumRegister` or :class:`~.circuit.Qubit`) is deprecated as of Qiskit v1.4.
3636
Subclassing these types was never explicitly supported by Qiskit, and its meaning was never defined.
37-
In Qiskit v2.0.0, the subclassing may become impossible due to technical limitations,
37+
In Qiskit v2.0, the subclassing may become impossible due to technical limitations,
3838
and will certainly not be stored in a circuit. This is due to the move of the data model
3939
to the Rust space to improve performance.
4040
- |
4141
The ``dag`` optional parameter in the constructor of :class:`DAGNode`
4242
subclasses (namely :class:`DAGOpNode`),
43-
which has been unused and ignored since Qiskit v1.2.0, is now deprecated as of
44-
Qiskit v1.4.0 and will be removed in Qiskit v2.0.0.
43+
which has been unused and ignored since Qiskit v1.2, is now deprecated as of
44+
Qiskit v1.4 and will be removed in Qiskit v2.0.
4545
- |
4646
The Multiple-Control-Multiple-Target (MCMT) class in
4747
:class:`~qiskit.circuit.library.generalized_gates.MCMT` is now deprecated
@@ -52,14 +52,14 @@ deprecations_circuits:
5252
The :mod:`qiskit.circuit.classicalfunction` module, and with it the
5353
:class:`.ClassicalFunction` class and its related :func:`.classical_function`
5454
and :class:`.BooleanExpression` utilities, have been deprecated as of
55-
Qiskit v1.4.0 and will be removed in Qiskit v2.0.0.
55+
Qiskit v1.4 and will be removed in Qiskit v2.0.
5656
5757
This change is performed to avoid a
5858
dependency on the external library ``tweedledum``, which is no longer
5959
compatible with all of Qiskit's supported platforms and Python versions.
6060
For a similar functionality please use the :class:`.PhaseOracle` which
6161
is going to have an implementation that doesn't use ``tweedledum``, and
62-
the ``BitFlipOracle`` which will be added in Qiskit v2.0.0.
62+
the ``BitFlipOracle`` which will be added in Qiskit v2.0.
6363
6464
Until ``BitFlipOracle`` is added, a phase-flip oracle can be converted
6565
to a bit-flip oracle by conditioning it on the result qubit, and applying
@@ -96,22 +96,22 @@ deprecations_circuits:
9696
x_2: ─────┤2 ├─────
9797
│ │
9898
x_3: ─────┤3 ├─────
99-
┌───┐└───────┬───────┘┌───┐
100-
y: ┤ H ├────────■────────┤ H ├
101-
└───┘ └───┘
99+
┌───┐└───────┬───────┘┌───┐
100+
y: ┤ H ├────────■────────┤ H ├
101+
└───┘ └───┘
102102
103103
deprecations_providers:
104104
- |
105105
The :class:`.BackendV2Converter` class and :func:`.convert_to_target` functions
106-
have been deprecated in Qiskit v1.4.0 following the deprecation of :class:`.BackendV1`.
107-
:func:`.convert_to_target` is used to build a :class:`.Target` instance
106+
have been deprecated in Qiskit v1.4 following the deprecation of :class:`.BackendV1`.
107+
The :func:`.convert_to_target` function is used to build a :class:`.Target` instance
108108
from a series of objects from the deprecated :class:`.BackendV1` workflow:
109109
:class:`.BackendConfiguration`, :class:`.BackendProperties` and :class:`.PulseDefaults`.
110110
:class:`.BackendV2Converter` is used for converting :class:`.BackendV1`
111111
to :class:`.BackendV2`, and cannot be maintained once :class:`.BackendV1` is removed.
112112
- |
113113
The :meth:`.BasicSimulator.run_experiment` method has been deprecated
114-
and will be removed in Qiskit v2.0.0.
114+
and will be removed in Qiskit v2.0.
115115
The method takes a :class:`.QasmQobjExperiment` as input argument,
116116
which has been deprecated together
117117
with the :class:`.Qobj` class and other related functionality.
@@ -122,9 +122,9 @@ deprecations_synthesis:
122122
- |
123123
The signature of the argument ``atomic_evolution`` in the constructor of the classes
124124
:class:`.LieTrotter`, :class:`.ProductFormula`, and
125-
:class:`.SuzukiTrotter` was modified in Qiskit v1.2.0 to improve the visualization
125+
:class:`.SuzukiTrotter` was modified in Qiskit v1.2 to improve the visualization
126126
of the output circuit. The older signature has now been deprecated in favor of the
127-
new alternative. From Qiskit 2.0.0, only the new alternative will be valid.
127+
new alternative. From Qiskit v2.0, only the new alternative will be valid.
128128
129129
To migrate, please modify the callable from
130130
``Callable[[Pauli | SparsePauliOp, float], QuantumCircuit]`` to
@@ -134,7 +134,7 @@ deprecations_transpiler:
134134
- |
135135
The :attr:`.DAGOpNode.sort_key`, :attr:`.DAGOutNode.sort_key`, and
136136
:attr:`.DAGInNode.sort_key` attributes have been deprecated and will be
137-
removed in the Qiskit v2.0.0 release. These attributes were originally used
137+
removed in the Qiskit v2.0 release. These attributes were originally used
138138
as a lexicographical key for topological sorting nodes in a
139139
:class:`.DAGCircuit`. However, the key is no longer used for this
140140
as the sorting is done internally in Rust code now. If you're using this
@@ -151,7 +151,7 @@ deprecations_transpiler:
151151
which will generate a string like the sort key does.
152152
- |
153153
The following uses of the :class:`.BackendProperties` object in the transpilation pipeline
154-
have been deprecated as of Qiskit v1.4.0 and will be removed in Qiskit v2.0.0:
154+
have been deprecated as of Qiskit v1.4 and will be removed in Qiskit v2.0:
155155
156156
* ``backend_prop`` input argument in :class:`.DenseLayout`
157157
* ``properties`` input argument in :class:`.VF2Layout`
@@ -162,8 +162,8 @@ deprecations_transpiler:
162162
* ``backend_properties`` in :func:`.generate_routing_passmanager`
163163
* ``backend_properties`` in :func:`.generate_translation_passmanager`
164164
165-
The :class:`.BackendProperties` class has been deprecated since Qiskit v1.2.0, together with
166-
other elements from the :class:`.BackendV1` workflow, and will be removed in Qiskit v2.0.0.
165+
The :class:`.BackendProperties` class has been deprecated since Qiskit v1.2, together with
166+
other elements from the :class:`.BackendV1` workflow, and will be removed in Qiskit v2.0.
167167
The alternative path for communicating hardware information to the transpilation argument is the
168168
:class:`.Target` class, which can be set using the ``target`` input argument.
169169
Specific instruction properties such as gate errors or durations can be added to a :class:`.Target` upon
@@ -175,31 +175,31 @@ deprecations_transpiler:
175175
passing in a target, which was the recommended use.
176176
177177
- |
178-
The Pulse deprecation in Qiskit v1.3.0, included calibration builder passes
178+
The Pulse deprecation in Qiskit v1.3, included calibration builder passes
179179
such as :class:`.RXCalibrationBuilder`. The
180180
:class:`.NormalizeRXAngle` pass is a requirement of :class:`.RXCalibrationBuilder`;
181-
hence, it is being deprecated in Qiskit v1.4.0. The :func:`.rzx_templates`
181+
hence, it is being deprecated in Qiskit v1.4. The :func:`.rzx_templates`
182182
function in the calibration module is also being deprecated as it is not used in our codebase.
183183
184184
deprecations_visualization:
185185
- |
186186
The parameters ``show_idle`` and ``show_barrier`` in the timeline drawers are
187-
deprecated as of Qiskit v1.4.0. The alternatives are, respectively, the
188-
``idle_wires`` and ``plot_barriers`` parameters, introduced in Qiskit v1.1.0,
187+
deprecated as of Qiskit v1.4. The alternatives are, respectively, the
188+
``idle_wires`` and ``plot_barriers`` parameters, introduced in Qiskit v1.1,
189189
which are fully equivalent.
190-
The legacy parameter names will be removed in Qiskit v2.0.0.
190+
The legacy parameter names will be removed in Qiskit v2.0.
191191
- |
192-
In Qiskit v1.4.0, the timeline drawer :func:`~qiskit.visualization.timeline.interface.draw` function
192+
In Qiskit v1.4, the timeline drawer :func:`~qiskit.visualization.timeline_drawer` function
193193
will issue a deprecation warning if a ``target`` is not specified to get the duration
194-
of instructions. From Qiskit v2.0.0 on, ``target`` will be required and
195-
:func:`~qiskit.visualization.timeline.interface.draw` will fail if it is not specified.
194+
of instructions. From Qiskit v2.0 on, ``target`` will be required and
195+
:func:`~qiskit.visualization.timeline_drawer` will fail if it is not specified.
196196
197197
other:
198198
- |
199199
Passing ``property_set`` as an arbitrary keyword argument to the :meth:`~.BasePassManager.run`
200-
method of a subclass of :class:`.BasePassManager` will change behavior in Qiskit v2.0.0. It is
200+
method of a subclass of :class:`.BasePassManager` will change behavior in Qiskit v2.0. It is
201201
currently forwarded to the internal representation converting functions of the pass manager, as
202-
is any arbitrary keyword argument to that method. Starting from Qiskit v2.0.0, the option will
202+
is any arbitrary keyword argument to that method. Starting from Qiskit v2.0, the option will
203203
instead be used to set the seed of the :class:`.PropertySet` for the pipeline run, and the
204204
argument will not be passed to the conversion functions.
205205
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
prelude: >
3+
Qiskit 1.4.1 is a small patch release, fixing some bugs found in the 1.4 extended support series.
4+
fixes:
5+
- |
6+
Fixed an issue with QPY 13 when serializing or deserializing a :class:`ParameterExpression` object that was defined
7+
by calling :meth:`.ParameterExpression.subs` to substitute a :class:`Parameter` with a
8+
:class:`.ParameterExpression`. For example::
9+
10+
from qiskit.circuit import Parameter
11+
12+
a = Parameter("A")
13+
b = Parameter("B")
14+
expr = a + b
15+
c = Parameter("C")
16+
new_expr = c ** 3.14
17+
final_expr.subs({b: new_expr})
18+
19+
In previous releases if you went to serialize a :class:`.QuantumCircuit` that contained an expression like
20+
this with :func:`.qpy.dump` it would have raised an ``AttributeError`` with an error message
21+
`'ParameterExpression' object has no attribute 'name'` when using QPY 13 (the default). This has been
22+
fixed so that the exception is no longer raised and you can serialize and deserialize a payload containing
23+
these nested :class:`.ParameterExpression` objects. See `#13879 <https://github.com/Qiskit/qiskit/issues/13879>`__.

requirements-optional.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pylatexenc>=1.4
1818
seaborn>=0.9.0
1919

2020
# Functionality and accelerators.
21-
qiskit-aer
21+
qiskit-aer!=0.16.4,!=0.16.3
2222
qiskit-qasm3-import>=0.5.0
2323
python-constraint>=1.4
2424
cvxpy

0 commit comments

Comments
 (0)