Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare 1.1.2 #12927

Merged
merged 4 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = ["crates/*"]
resolver = "2"

[workspace.package]
version = "1.1.1"
version = "1.1.2"
edition = "2021"
rust-version = "1.70" # Keep in sync with README.md and rust-toolchain.toml.
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# The short X.Y version
version = "1.1"
# The full version, including alpha/beta/rc tags
release = "1.1.1"
release = "1.1.2"

language = "en"

Expand Down
2 changes: 1 addition & 1 deletion qiskit/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.1
1.1.2
45 changes: 44 additions & 1 deletion qiskit/visualization/bloch.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@

import math
import os
import re
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
Expand All @@ -60,6 +61,47 @@
from .utils import matplotlib_close_if_inline


# This version pattern is taken from the pypa packaging project:
# https://github.com/pypa/packaging/blob/21.3/packaging/version.py#L223-L254
# which is dual licensed Apache 2.0 and BSD see the source for the original
# authors and other details
VERSION_PATTERN = (
"^"
+ r"""
v?
(?:
(?:(?P<epoch>[0-9]+)!)? # epoch
(?P<release>[0-9]+(?:\.[0-9]+)*) # release segment
(?P<pre> # pre-release
[-_\.]?
(?P<pre_l>(a|b|c|rc|alpha|beta|pre|preview))
[-_\.]?
(?P<pre_n>[0-9]+)?
)?
(?P<post> # post release
(?:-(?P<post_n1>[0-9]+))
|
(?:
[-_\.]?
(?P<post_l>post|rev|r)
[-_\.]?
(?P<post_n2>[0-9]+)?
)
)?
(?P<dev> # dev release
[-_\.]?
(?P<dev_l>dev)
[-_\.]?
(?P<dev_n>[0-9]+)?
)?
)
(?:\+(?P<local>[a-z0-9]+(?:[-_\.][a-z0-9]+)*))? # local version
"""
+ "$"
)
VERSION_PATTERN_REGEX = re.compile(VERSION_PATTERN, re.VERBOSE | re.IGNORECASE)


class Arrow3D(Patch3D, FancyArrowPatch):
"""Makes a fancy arrow"""

Expand Down Expand Up @@ -419,7 +461,8 @@ def render(self, title=""):
self.fig = plt.figure(figsize=self.figsize)

if not self._ext_axes:
if tuple(int(x) for x in matplotlib.__version__.split(".")) >= (3, 4, 0):
version_match = VERSION_PATTERN_REGEX.search(matplotlib.__version__)
if tuple(int(x) for x in version_match.group("release").split(".")) >= (3, 4, 0):
self.axes = Axes3D(
self.fig, azim=self.view[0], elev=self.view[1], auto_add_to_figure=False
)
Expand Down
6 changes: 3 additions & 3 deletions releasenotes/notes/fix-collect-clifford-83af26d98b8c69e8.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
fixes:
- |
Add more Clifford gates to the :class:`.CollectCliffords()` transpiler pass.
In particular, we have added the gates :class:`ECRGate()`, :class:`DCXGate()`,
:class:`iSWAPGate()`, :class:`SXGate()` and :class:`SXdgGate()` to this transpiler pass.
Added missing Clifford gates to the :class:`.CollectCliffords` transpiler pass.
In particular, we have added the gates :class:`.ECRGate`, :class:`.DCXGate`,
:class:`.iSWAPGate`, :class:`.SXGate` and :class:`.SXdgGate` to this transpiler pass.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
fixes:
- |
Fix the :class:`.SolovayKitaev` transpiler pass when loading basic
approximations from an exising ``.npy`` file. Previously, loading
approximations from an existing ``.npy`` file. Previously, loading
a stored approximation which allowed for further reductions (e.g. due
to gate cancellations) could cause a runtime failure.
Additionally, the global phase difference of the U(2) gate product
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
fixes:
- |
The constructor :class:`.GenericBackendV2` was allowing to create malformed backends because it accepted basis gates that couldn't be allocated in the backend size . That is, a backend with a single qubit should not accept a basis with two-qubit gates.
The constructor :class:`.GenericBackendV2` previously allowed malformed backends to be constructed because it accepted basis gates that couldn't be allocated given the backend size. For example, a backend with a single qubit could previously accept a basis with two-qubit gates.
3 changes: 3 additions & 0 deletions releasenotes/notes/prepare-1.1.2-d8fbe626771ab48d.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
prelude: >
Qiskit 1.1.2 is a minor bugfix release for the 1.1 series.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
fixes:
- |
Previously, :meth:`.DAGCircuit.replace_block_with_op` allowed to place an
``n``-qubit operation onto a block of ``m`` qubits, leaving the DAG in an
invalid state. This behavior has been fixed, and the attempt will raise
a :class:`.DAGCircuitError`.
Previously, :meth:`.DAGCircuit.replace_block_with_op` allowed an
``n``-qubit operation to be placed onto a block of ``m`` qubits, leaving the DAG in an
invalid state. This behavior has been fixed, and any attempt to do this will now raise
a :class:`.DAGCircuitError` as expected.