From 1de2fa982dd2a0816ff4da0aec359e5a6c809a4b Mon Sep 17 00:00:00 2001 From: Julien Gacon Date: Wed, 4 Sep 2024 18:25:07 +0200 Subject: [PATCH 1/4] Prepare 1.2.1 release --- Cargo.lock | 10 +++++----- Cargo.toml | 2 +- docs/conf.py | 2 +- qiskit/VERSION.txt | 2 +- ...tandard-parametric-controlled-1a495f6f7ce89397.yaml | 0 ...s-decomposer-non-std-kak-gate-edc69ffb5d9ef302.yaml | 7 +++++++ .../fix-InstructionDurations-b47a9770b424d7a0.yaml | 2 +- .../1.2/fix-negative-seed-pm-2813a62a020da115.yaml | 6 ++++++ ...plit-2q-unitaries-custom-gate-d10f7670a35548f4.yaml | 6 ++++++ .../fix-stateprep-normalize-a8057c339ba619bd.yaml | 0 ...initialize_gates_to_uncompute-d0dba6a642d07f30.yaml | 5 +++++ .../notes/1.2/prepare-1.2.1-511ae054e7db7e41.yaml | 3 +++ ...s-decomposer-non-std-kak-gate-edc69ffb5d9ef302.yaml | 5 ----- .../notes/fix-negative-seed-pm-2813a62a020da115.yaml | 4 ---- ...plit-2q-unitaries-custom-gate-d10f7670a35548f4.yaml | 6 ------ ...initialize_gates_to_uncompute-d0dba6a642d07f30.yaml | 4 ---- 16 files changed, 36 insertions(+), 28 deletions(-) rename releasenotes/notes/{ => 1.2}/extract-standard-parametric-controlled-1a495f6f7ce89397.yaml (100%) create mode 100644 releasenotes/notes/1.2/fix-2q-basis-decomposer-non-std-kak-gate-edc69ffb5d9ef302.yaml rename releasenotes/notes/{ => 1.2}/fix-InstructionDurations-b47a9770b424d7a0.yaml (97%) create mode 100644 releasenotes/notes/1.2/fix-negative-seed-pm-2813a62a020da115.yaml create mode 100644 releasenotes/notes/1.2/fix-split-2q-unitaries-custom-gate-d10f7670a35548f4.yaml rename releasenotes/notes/{ => 1.2}/fix-stateprep-normalize-a8057c339ba619bd.yaml (100%) create mode 100644 releasenotes/notes/1.2/fix_initialize_gates_to_uncompute-d0dba6a642d07f30.yaml create mode 100644 releasenotes/notes/1.2/prepare-1.2.1-511ae054e7db7e41.yaml delete mode 100644 releasenotes/notes/fix-2q-basis-decomposer-non-std-kak-gate-edc69ffb5d9ef302.yaml delete mode 100644 releasenotes/notes/fix-negative-seed-pm-2813a62a020da115.yaml delete mode 100644 releasenotes/notes/fix-split-2q-unitaries-custom-gate-d10f7670a35548f4.yaml delete mode 100644 releasenotes/notes/fix_initialize_gates_to_uncompute-d0dba6a642d07f30.yaml diff --git a/Cargo.lock b/Cargo.lock index 83292b6a650f..4ea5f80d2efd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1161,7 +1161,7 @@ dependencies = [ [[package]] name = "qiskit-accelerate" -version = "1.2.0" +version = "1.2.1" dependencies = [ "ahash 0.8.11", "approx", @@ -1189,7 +1189,7 @@ dependencies = [ [[package]] name = "qiskit-circuit" -version = "1.2.0" +version = "1.2.1" dependencies = [ "bytemuck", "hashbrown 0.14.5", @@ -1203,7 +1203,7 @@ dependencies = [ [[package]] name = "qiskit-pyext" -version = "1.2.0" +version = "1.2.1" dependencies = [ "pyo3", "qiskit-accelerate", @@ -1214,7 +1214,7 @@ dependencies = [ [[package]] name = "qiskit-qasm2" -version = "1.2.0" +version = "1.2.1" dependencies = [ "hashbrown 0.14.5", "num-bigint", @@ -1224,7 +1224,7 @@ dependencies = [ [[package]] name = "qiskit-qasm3" -version = "1.2.0" +version = "1.2.1" dependencies = [ "hashbrown 0.14.5", "indexmap", diff --git a/Cargo.toml b/Cargo.toml index 0abe3a3c7c6f..81d550d63503 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = ["crates/*"] resolver = "2" [workspace.package] -version = "1.2.0" +version = "1.2.1" edition = "2021" rust-version = "1.70" # Keep in sync with README.md and rust-toolchain.toml. license = "Apache-2.0" diff --git a/docs/conf.py b/docs/conf.py index f6bf2faa9a18..a8ccd600852d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -32,7 +32,7 @@ # The short X.Y version version = "1.2" # The full version, including alpha/beta/rc tags -release = "1.2.0" +release = "1.2.1" language = "en" diff --git a/qiskit/VERSION.txt b/qiskit/VERSION.txt index 26aaba0e8663..6085e946503a 100644 --- a/qiskit/VERSION.txt +++ b/qiskit/VERSION.txt @@ -1 +1 @@ -1.2.0 +1.2.1 diff --git a/releasenotes/notes/extract-standard-parametric-controlled-1a495f6f7ce89397.yaml b/releasenotes/notes/1.2/extract-standard-parametric-controlled-1a495f6f7ce89397.yaml similarity index 100% rename from releasenotes/notes/extract-standard-parametric-controlled-1a495f6f7ce89397.yaml rename to releasenotes/notes/1.2/extract-standard-parametric-controlled-1a495f6f7ce89397.yaml diff --git a/releasenotes/notes/1.2/fix-2q-basis-decomposer-non-std-kak-gate-edc69ffb5d9ef302.yaml b/releasenotes/notes/1.2/fix-2q-basis-decomposer-non-std-kak-gate-edc69ffb5d9ef302.yaml new file mode 100644 index 000000000000..9e14d71e6e60 --- /dev/null +++ b/releasenotes/notes/1.2/fix-2q-basis-decomposer-non-std-kak-gate-edc69ffb5d9ef302.yaml @@ -0,0 +1,7 @@ +--- +fixes: + - | + Fixed a bug in :class:`.TwoQubitBasisDecomposer` where the Rust-based code + would panic if the given KAK gate was not a default version of the standard gates. + (for example, using ``CXGate(ctrl_state=0)``). + Fixed `#12998 `__. \ No newline at end of file diff --git a/releasenotes/notes/fix-InstructionDurations-b47a9770b424d7a0.yaml b/releasenotes/notes/1.2/fix-InstructionDurations-b47a9770b424d7a0.yaml similarity index 97% rename from releasenotes/notes/fix-InstructionDurations-b47a9770b424d7a0.yaml rename to releasenotes/notes/1.2/fix-InstructionDurations-b47a9770b424d7a0.yaml index ce8b789462de..c13570891a89 100644 --- a/releasenotes/notes/fix-InstructionDurations-b47a9770b424d7a0.yaml +++ b/releasenotes/notes/1.2/fix-InstructionDurations-b47a9770b424d7a0.yaml @@ -2,4 +2,4 @@ fixes: - | Fixed a bug where :meth:`.InstructionDurations.from_backend` did not work for :class:`.BackendV2` backends. - Fixed `#12760 `. \ No newline at end of file + Fixed `#12760 `__. \ No newline at end of file diff --git a/releasenotes/notes/1.2/fix-negative-seed-pm-2813a62a020da115.yaml b/releasenotes/notes/1.2/fix-negative-seed-pm-2813a62a020da115.yaml new file mode 100644 index 000000000000..d1cb164fd8a7 --- /dev/null +++ b/releasenotes/notes/1.2/fix-negative-seed-pm-2813a62a020da115.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + :func:`.generate_preset_pass_manager` now correctly raises an exception, + if ``seed_transpiler`` is set to an invalid value (i.e., it is not a non-negative integer). + Fixed `#12938 `__. diff --git a/releasenotes/notes/1.2/fix-split-2q-unitaries-custom-gate-d10f7670a35548f4.yaml b/releasenotes/notes/1.2/fix-split-2q-unitaries-custom-gate-d10f7670a35548f4.yaml new file mode 100644 index 000000000000..2dbd27c987c6 --- /dev/null +++ b/releasenotes/notes/1.2/fix-split-2q-unitaries-custom-gate-d10f7670a35548f4.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixed a bug in :class:`.Split2QUnitaries` where it would fail to run on circuits + with custom :class:`.Gate` objects that did not implement ``__array__``. + See `#12970 `__. \ No newline at end of file diff --git a/releasenotes/notes/fix-stateprep-normalize-a8057c339ba619bd.yaml b/releasenotes/notes/1.2/fix-stateprep-normalize-a8057c339ba619bd.yaml similarity index 100% rename from releasenotes/notes/fix-stateprep-normalize-a8057c339ba619bd.yaml rename to releasenotes/notes/1.2/fix-stateprep-normalize-a8057c339ba619bd.yaml diff --git a/releasenotes/notes/1.2/fix_initialize_gates_to_uncompute-d0dba6a642d07f30.yaml b/releasenotes/notes/1.2/fix_initialize_gates_to_uncompute-d0dba6a642d07f30.yaml new file mode 100644 index 000000000000..4076388364d6 --- /dev/null +++ b/releasenotes/notes/1.2/fix_initialize_gates_to_uncompute-d0dba6a642d07f30.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixed a bug that caused the method :meth:`.Initialize.gates_to_uncompute` fail. + Fixed `#12969 `__. diff --git a/releasenotes/notes/1.2/prepare-1.2.1-511ae054e7db7e41.yaml b/releasenotes/notes/1.2/prepare-1.2.1-511ae054e7db7e41.yaml new file mode 100644 index 000000000000..648c3207d5d5 --- /dev/null +++ b/releasenotes/notes/1.2/prepare-1.2.1-511ae054e7db7e41.yaml @@ -0,0 +1,3 @@ +--- +prelude: > + Qiskit 1.2.1 is a minor bugfix release for the 1.2 series. diff --git a/releasenotes/notes/fix-2q-basis-decomposer-non-std-kak-gate-edc69ffb5d9ef302.yaml b/releasenotes/notes/fix-2q-basis-decomposer-non-std-kak-gate-edc69ffb5d9ef302.yaml deleted file mode 100644 index 903b9ceac2a2..000000000000 --- a/releasenotes/notes/fix-2q-basis-decomposer-non-std-kak-gate-edc69ffb5d9ef302.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -fixes: - - | - Fixed a bug in :class:`.TwoQubitBasisDecomposer` where the Rust-based code - would panic if the given KAK gate wasn't a Rust-space :class:`StandardGate`. \ No newline at end of file diff --git a/releasenotes/notes/fix-negative-seed-pm-2813a62a020da115.yaml b/releasenotes/notes/fix-negative-seed-pm-2813a62a020da115.yaml deleted file mode 100644 index 352f068537e8..000000000000 --- a/releasenotes/notes/fix-negative-seed-pm-2813a62a020da115.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -fixes: - - | - Fixed the behavior of :meth:`.generate_preset_pass_manager` to raise a `ValueError` exception if not provided with a non-negative integer `seed_transpiler` argument. diff --git a/releasenotes/notes/fix-split-2q-unitaries-custom-gate-d10f7670a35548f4.yaml b/releasenotes/notes/fix-split-2q-unitaries-custom-gate-d10f7670a35548f4.yaml deleted file mode 100644 index 331156cf6012..000000000000 --- a/releasenotes/notes/fix-split-2q-unitaries-custom-gate-d10f7670a35548f4.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -fixes: - - | - Fixed a bug in :class:`.Split2QUnitaries` where it would fail to run on circuits - with custom gates that didn't implement :meth:`__array__`. - See `#12984 `__. \ No newline at end of file diff --git a/releasenotes/notes/fix_initialize_gates_to_uncompute-d0dba6a642d07f30.yaml b/releasenotes/notes/fix_initialize_gates_to_uncompute-d0dba6a642d07f30.yaml deleted file mode 100644 index 3c24569455e2..000000000000 --- a/releasenotes/notes/fix_initialize_gates_to_uncompute-d0dba6a642d07f30.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -fixes: - - | - Fix a bug that caused the method :meth:`Initialize.gates_to_uncompute()` fail. From 3705ae6756977756f0b58e853fbc9db4934434a6 Mon Sep 17 00:00:00 2001 From: Julien Gacon Date: Thu, 5 Sep 2024 14:40:10 +0200 Subject: [PATCH 2/4] update renos --- .../notes/{ => 1.2}/adjust-neato-settings-3adcc0ae9e245ce9.yaml | 2 +- .../notes/{ => 1.2}/fix-hoare-opt-56d1ca6a07f07a2d.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) rename releasenotes/notes/{ => 1.2}/adjust-neato-settings-3adcc0ae9e245ce9.yaml (79%) rename releasenotes/notes/{ => 1.2}/fix-hoare-opt-56d1ca6a07f07a2d.yaml (71%) diff --git a/releasenotes/notes/adjust-neato-settings-3adcc0ae9e245ce9.yaml b/releasenotes/notes/1.2/adjust-neato-settings-3adcc0ae9e245ce9.yaml similarity index 79% rename from releasenotes/notes/adjust-neato-settings-3adcc0ae9e245ce9.yaml rename to releasenotes/notes/1.2/adjust-neato-settings-3adcc0ae9e245ce9.yaml index 9dec5debb2ef..be977f98dcdd 100644 --- a/releasenotes/notes/adjust-neato-settings-3adcc0ae9e245ce9.yaml +++ b/releasenotes/notes/1.2/adjust-neato-settings-3adcc0ae9e245ce9.yaml @@ -1,6 +1,6 @@ --- fixes: - | - Fixes an issue with the visualizations of some backends/coupling maps that showed as folded on their own. The + Fixed an issue with the visualizations of some backends/coupling maps that showed as folded on their own. The `default ``neato`` setting `_ works well in most cases. However, ``prism`` overlap returns a more regular layout for other scenarios. diff --git a/releasenotes/notes/fix-hoare-opt-56d1ca6a07f07a2d.yaml b/releasenotes/notes/1.2/fix-hoare-opt-56d1ca6a07f07a2d.yaml similarity index 71% rename from releasenotes/notes/fix-hoare-opt-56d1ca6a07f07a2d.yaml rename to releasenotes/notes/1.2/fix-hoare-opt-56d1ca6a07f07a2d.yaml index 7548dcc99564..00bf6c7a19f7 100644 --- a/releasenotes/notes/fix-hoare-opt-56d1ca6a07f07a2d.yaml +++ b/releasenotes/notes/1.2/fix-hoare-opt-56d1ca6a07f07a2d.yaml @@ -3,3 +3,4 @@ fixes: - | Fixed a bug in :class:`.HoareOptimizer` where a controlled gate was simplified by removing its controls but the new gate was not handled correctly. + Fixed `#13079 `__. From 0965414ebac246c49ef0d33b6d3e10e0857730a9 Mon Sep 17 00:00:00 2001 From: Julien Gacon Date: Thu, 12 Sep 2024 08:58:27 +0200 Subject: [PATCH 3/4] move remaining renos --- releasenotes/notes/{ => 1.2}/fix-cu-rust-6464b6893ecca1b3.yaml | 2 +- .../{ => 1.2}/fix-sabre-releasevalve-7f9af9bfc0482e04.yaml | 2 +- .../notes/{ => 1.2}/fix-synth-qregs-7662681c0ff02511.yaml | 3 ++- .../notes/{ => 1.2}/restrict-split2q-d51d840cc7a7a482.yaml | 0 4 files changed, 4 insertions(+), 3 deletions(-) rename releasenotes/notes/{ => 1.2}/fix-cu-rust-6464b6893ecca1b3.yaml (79%) rename releasenotes/notes/{ => 1.2}/fix-sabre-releasevalve-7f9af9bfc0482e04.yaml (76%) rename releasenotes/notes/{ => 1.2}/fix-synth-qregs-7662681c0ff02511.yaml (63%) rename releasenotes/notes/{ => 1.2}/restrict-split2q-d51d840cc7a7a482.yaml (100%) diff --git a/releasenotes/notes/fix-cu-rust-6464b6893ecca1b3.yaml b/releasenotes/notes/1.2/fix-cu-rust-6464b6893ecca1b3.yaml similarity index 79% rename from releasenotes/notes/fix-cu-rust-6464b6893ecca1b3.yaml rename to releasenotes/notes/1.2/fix-cu-rust-6464b6893ecca1b3.yaml index 406d6052a1df..1ad10fe6dfc4 100644 --- a/releasenotes/notes/fix-cu-rust-6464b6893ecca1b3.yaml +++ b/releasenotes/notes/1.2/fix-cu-rust-6464b6893ecca1b3.yaml @@ -2,7 +2,7 @@ fixes: - | Fixed the definition of the :class:`.CUGate` matrix in Rust-space. - While this was not noticable while handling the :class:`.CUGate` purely on + While this was not noticable when handling the :class:`.CUGate` purely on the Python side, this had knock-on effects when transpiler passes were using the Rust representation, such as could happen in :class:`.Consolidate2qBlocks`. Fixed `#13118 `__. diff --git a/releasenotes/notes/fix-sabre-releasevalve-7f9af9bfc0482e04.yaml b/releasenotes/notes/1.2/fix-sabre-releasevalve-7f9af9bfc0482e04.yaml similarity index 76% rename from releasenotes/notes/fix-sabre-releasevalve-7f9af9bfc0482e04.yaml rename to releasenotes/notes/1.2/fix-sabre-releasevalve-7f9af9bfc0482e04.yaml index 17432259be29..45f50580014f 100644 --- a/releasenotes/notes/fix-sabre-releasevalve-7f9af9bfc0482e04.yaml +++ b/releasenotes/notes/1.2/fix-sabre-releasevalve-7f9af9bfc0482e04.yaml @@ -1,7 +1,7 @@ --- fixes: - | - Fixed an edge case in :class:`.SabreLayout`, where in rare cases on large + Fixed an edge case in :class:`.SabreLayout`, where, in rare cases on large devices and challenging circuits, the routing would fail. This was due to the release valve making more than one two-qubit gate routable, where only one was expected. Fixed `#13081 `__. \ No newline at end of file diff --git a/releasenotes/notes/fix-synth-qregs-7662681c0ff02511.yaml b/releasenotes/notes/1.2/fix-synth-qregs-7662681c0ff02511.yaml similarity index 63% rename from releasenotes/notes/fix-synth-qregs-7662681c0ff02511.yaml rename to releasenotes/notes/1.2/fix-synth-qregs-7662681c0ff02511.yaml index d838032ffaf9..519e9f2d18b3 100644 --- a/releasenotes/notes/fix-synth-qregs-7662681c0ff02511.yaml +++ b/releasenotes/notes/1.2/fix-synth-qregs-7662681c0ff02511.yaml @@ -3,5 +3,6 @@ fixes: - | Fixed a bug where various synthesis methods created circuits without quantum or classical registers. This also affected functions that internally used the synthesis - methods, such as :meth:`.Clifford.to_circuit`. + methods, such as :meth:`.Clifford.to_circuit`. While the circuits were valid, this could + cause issues when comparing circuits with registers. Fixed `#13041 `__. diff --git a/releasenotes/notes/restrict-split2q-d51d840cc7a7a482.yaml b/releasenotes/notes/1.2/restrict-split2q-d51d840cc7a7a482.yaml similarity index 100% rename from releasenotes/notes/restrict-split2q-d51d840cc7a7a482.yaml rename to releasenotes/notes/1.2/restrict-split2q-d51d840cc7a7a482.yaml From d292d4cabae64185af824acaa56c29278d384531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elena=20Pe=C3=B1a=20Tapia?= <57907331+ElePT@users.noreply.github.com> Date: Thu, 12 Sep 2024 09:47:02 +0200 Subject: [PATCH 4/4] Update releasenotes/notes/1.2/fix-2q-basis-decomposer-non-std-kak-gate-edc69ffb5d9ef302.yaml --- ...-2q-basis-decomposer-non-std-kak-gate-edc69ffb5d9ef302.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/releasenotes/notes/1.2/fix-2q-basis-decomposer-non-std-kak-gate-edc69ffb5d9ef302.yaml b/releasenotes/notes/1.2/fix-2q-basis-decomposer-non-std-kak-gate-edc69ffb5d9ef302.yaml index 9e14d71e6e60..13c2ddaad710 100644 --- a/releasenotes/notes/1.2/fix-2q-basis-decomposer-non-std-kak-gate-edc69ffb5d9ef302.yaml +++ b/releasenotes/notes/1.2/fix-2q-basis-decomposer-non-std-kak-gate-edc69ffb5d9ef302.yaml @@ -2,6 +2,5 @@ fixes: - | Fixed a bug in :class:`.TwoQubitBasisDecomposer` where the Rust-based code - would panic if the given KAK gate was not a default version of the standard gates. - (for example, using ``CXGate(ctrl_state=0)``). + would panic if the given KAK gate was not a default version of the standard gates (for example, using ``CXGate(ctrl_state=0)``). Fixed `#12998 `__. \ No newline at end of file