Skip to content

Commit 39b0cb8

Browse files
authored
Prepare 0.25.1 release (#10644)
* Prepare 0.25.1 release This commit prepares the 0.25.1 release, this consists of bumping the version number to 0.25.` in all the appropriate files. It also adds a prelude release note to provide a brief introduction to the release. When this commit merges it should be tagged as the 0.25.1 release. Of particular note for this release, this is the first time we'll be releasing the qiskit package from the qiskit-terra repo and also the first time we're publishing the documentation from this repo too. * Fix repository_owner condition docs_deploy gha job (#10635) This commit fixes an issue in the job definition for the new docs deployment job added in #10610. The new jobs are conditioned to only execute from the Qiskit/qiskit-terra repo. However that line is being flagged as a syntax error in github. This seems to be due to the double quotes used for `"Qiskit"`. A similar condition exists on the pre-existing github actions jobs but they use a single quote instead of a double and they function correctly. This commit updates the condition to used single quotes to match the working syntax in other jobs. (cherry picked from commit d25f905)
1 parent 8f4bc5e commit 39b0cb8

6 files changed

Lines changed: 102 additions & 14 deletions

File tree

.github/workflows/docs_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on:
2323

2424
jobs:
2525
build:
26-
if: github.repository_owner == "Qiskit"
26+
if: github.repository_owner == 'Qiskit'
2727
name: Build
2828
runs-on: ubuntu-latest
2929

docs/conf.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
author = "Qiskit Development Team"
2525

2626
# The short X.Y version
27-
version = "0.25"
27+
version = "0.44"
2828
# The full version, including alpha/beta/rc tags
29-
release = "0.45.0"
29+
release = "0.44.1"
3030

3131
# The language for content autogenerated by Sphinx or the default for gettext content translation.
3232
language = "en"
@@ -37,12 +37,6 @@
3737

3838
rst_prolog = f".. |version| replace:: {version}"
3939

40-
# For 'qiskit_sphinx_theme' tells it we're based at 'https://qiskit.org/<docs_url_prefix>'.
41-
# Should not include the subdirectory for the stable version.
42-
docs_url_prefix = "documentation"
43-
44-
rst_prolog = f".. |version| replace:: {version}"
45-
4640
extensions = [
4741
"sphinx.ext.napoleon",
4842
"sphinx.ext.autodoc",

docs/release_notes.rst

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,96 @@ Qiskit Metapackage Version qiskit-terra qiskit-aer qiskit-ignis qiskit-ibmq-
124124
For the ``0.7.0``, ``0.7.1``, and ``0.7.2`` meta-package releases the
125125
meta-package versioning strategy was not formalized yet.
126126

127+
#############
128+
Qiskit 0.44.1
129+
#############
130+
131+
.. _Release Notes_0.25.1:
132+
133+
Terra 0.25.1
134+
============
135+
136+
.. _Release Notes_0.25.1_Prelude:
137+
138+
Prelude
139+
-------
140+
141+
Qiskit Terra 0.25.1 is a bugfix release, addressing some issues identified since the 0.25.1 release.
142+
143+
.. _Release Notes_0.25.1_Bug Fixes:
144+
145+
Bug Fixes
146+
---------
147+
148+
.. releasenotes/notes/fix-qpy-nested-custom-controlled-2a23dfe828bc46c8.yaml @ b'3ba0b74b89d206b99d09fdec2b833f13394b4a36'
149+
150+
- Fixed a bug in QPY serialization (:mod:`qiskit.qpy`) where multiple controlled custom gates in
151+
a circuit could result in an invalid QPY file that could not be parsed. Fixed `#9746
152+
<https://github.com/Qiskit/qiskit-terra/issues/9746>`__.
153+
154+
.. releasenotes/notes/fix_9363-445db8fde1244e57.yaml @ b'c1ee9744e1be10ca2e78958fb91308777a668b44'
155+
156+
- Fixed `#9363 <https://github.com/Qiskit/qiskit-terra/issues/9363>`__.
157+
by labeling the non-registerless synthesis in the order that Tweedledum
158+
returns. For example, compare this example before and after the fix::
159+
160+
from qiskit.circuit import QuantumCircuit
161+
from qiskit.circuit.classicalfunction import BooleanExpression
162+
163+
boolean_exp = BooleanExpression.from_dimacs_file("simple_v3_c2.cnf")
164+
circuit = QuantumCircuit(boolean_exp.num_qubits)
165+
circuit.append(boolean_exp, range(boolean_exp.num_qubits))
166+
circuit.draw("text")
167+
168+
from qiskit.circuit.classicalfunction import classical_function
169+
from qiskit.circuit.classicalfunction.types import Int1
170+
171+
@classical_function
172+
def grover_oracle(a: Int1, b: Int1, c: Int1) -> Int1:
173+
return (a and b and not c)
174+
175+
quantum_circuit = grover_oracle.synth(registerless=False)
176+
print(quantum_circuit.draw())
177+
178+
Which would print
179+
180+
.. parsed-literal::
181+
182+
Before After
183+
184+
c: ──■── a: ──■──
185+
│ │
186+
b: ──■── b: ──■──
187+
│ │
188+
a: ──o── c: ──o──
189+
┌─┴─┐ ┌─┴─┐
190+
return: ┤ X ├ return: ┤ X ├
191+
└───┘ └───┘
192+
193+
.. releasenotes/notes/paulivecplot-normalization-5dd3cf3393c75afb.yaml @ b'91ca2c408b4c4f1d02060c859dbca2f6d6a8bfe8'
194+
195+
- Fixed :func:`plot_state_paulivec`, which previously damped the state coefficients by a factor of
196+
:math:`2^n`, where :math:`n` is the number of qubits. Now the bar graph correctly displays
197+
the coefficients as :math:`\mathrm{Tr}(\sigma\rho)`, where :math:`\rho` is the state to
198+
be plotted and :math:`\sigma` iterates over all possible tensor products of single-qubit Paulis.
199+
200+
.. releasenotes/notes/qasm2-float-decimal-76b44281d9249f7a.yaml @ b'f42e881cff435fffb83c65eb442924e2aec17aab'
201+
202+
- Angles in the OpenQASM 2 exporter (:func:`.QuantumCircuit.qasm`) will now always include a
203+
decimal point, for example in the case of ``1.e-5``. This is required by a strict interpretation of the
204+
floating-point-literal specification in OpenQASM 2. Qiskit's OpenQASM 2 parser
205+
(:func:`.qasm2.load` and :func:`~.qasm2.loads`) is more permissive by default, and will allow
206+
``1e-5`` without the decimal point unless in ``strict`` mode.
207+
208+
.. releasenotes/notes/sparse-pauli-op-constraint-pauli-setter-52f6f89627d1937c.yaml @ b'48a7b821e00fd61f94a0ac878cb3a7b41eb4a8dc'
209+
210+
- The setter for :attr:`.SparsePauliOp.paulis` will now correctly reject attempts to set the
211+
attribute with incorrectly shaped data, rather than silently allowing an invalid object to be
212+
created. See `#10384 <https://github.com/Qiskit/qiskit-terra/issues/10384>`__.
213+
214+
- Fixed a performance regression in the :class:`~.SabreLayout` and :class:`~.SabreSwap` transpiler passes.
215+
Fixed `#10650 <https://github.com/Qiskit/qiskit-terra/issues/10650>`__
216+
127217
#############
128218
Qiskit 0.44.0
129219
#############

qiskit/VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.25.0
1+
0.25.1

qiskit_pkg/setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# This file is the setup.py file for the qiskit package. Because python
1616
# packaging doesn't offer a mechanism to have qiskit supersede qiskit-terra
1717
# and cleanly upgrade from one to the other, there needs to be a separate
18-
# package shim to ensure no matter how people installed qiskit < 0.45.0 the
18+
# package shim to ensure no matter how people installed qiskit < 0.44.1 the
1919
# upgrade works.
2020

2121
import os
@@ -26,11 +26,11 @@
2626
with open(README_PATH) as readme_file:
2727
README = readme_file.read()
2828

29-
requirements = ["qiskit-terra==0.45.0"]
29+
requirements = ["qiskit-terra==0.25.1"]
3030

3131
setup(
3232
name="qiskit",
33-
version="0.45.0",
33+
version="0.44.1",
3434
description="Software for developing quantum computing programs",
3535
long_description=README,
3636
long_description_content_type="text/markdown",

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,13 @@
5353
"z3-solver>=4.7",
5454
]
5555
csp_requirements = ["python-constraint>=1.4"]
56+
bip_requirements = ["cplex", "docplex"]
57+
toqm_requirements = ["qiskit-toqm>=0.1.0"]
5658

5759

5860
setup(
5961
name="qiskit-terra",
60-
version="0.25.0",
62+
version="0.25.1",
6163
description="Software for developing quantum computing programs",
6264
long_description=README,
6365
long_description_content_type="text/markdown",
@@ -88,8 +90,10 @@
8890
extras_require={
8991
"qasm3-import": qasm3_import_extras,
9092
"visualization": visualization_extras,
93+
"bip-mapper": bip_requirements,
9194
"crosstalk-pass": z3_requirements,
9295
"csp-layout-pass": csp_requirements,
96+
"toqm": toqm_requirements,
9397
"all": visualization_extras + z3_requirements + csp_requirements + qasm3_import_extras,
9498
},
9599
project_urls={

0 commit comments

Comments
 (0)