Skip to content

Commit

Permalink
Prepare 0.23.3 (#9817)
Browse files Browse the repository at this point in the history
* Bump version numbers to 0.23.3.

* Fix broken links.

* Fix docs for CommutationChecker.

* Move impl comment from docstring to comment.

* Add prelude.

* Additional doc fixes.
  • Loading branch information
kevinhartman authored Mar 21, 2023
1 parent 36807d1 commit 7dc7a1c
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 16 deletions.
2 changes: 1 addition & 1 deletion 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
@@ -1,6 +1,6 @@
[package]
name = "qiskit-terra"
version = "0.23.2"
version = "0.23.3"
edition = "2021"
rust-version = "1.56.1"

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# The short X.Y version
version = "0.23"
# The full version, including alpha/beta/rc tags
release = "0.23.2"
release = "0.23.3"

extensions = [
"sphinx.ext.napoleon",
Expand Down
2 changes: 1 addition & 1 deletion qiskit/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.23.2
0.23.3
8 changes: 8 additions & 0 deletions qiskit/circuit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,14 @@
:toctree: ../stubs/
random.random_circuit
Commutation Utilities
---------------------
.. autosummary::
:toctree: ../stubs/
CommutationChecker
"""
from .quantumcircuit import QuantumCircuit
from .classicalregister import ClassicalRegister, Clbit
Expand Down
12 changes: 6 additions & 6 deletions qiskit/circuit/commutation_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ def _identity_op(num_qubits):
)


# This code is essentially copy-pasted from commutative_analysis.py.
# This code cleverly hashes commutativity and non-commutativity results between DAG nodes and seems
# quite efficient for large Clifford circuits.
# They may be other possible efficiency improvements: using rule-based commutativity analysis,
# evicting from the cache less useful entries, etc.
class CommutationChecker:
"""This code is essentially copy-pasted from commutative_analysis.py.
This code cleverly hashes commutativity and non-commutativity results between DAG nodes and seems
quite efficient for large Clifford circuits.
They may be other possible efficiency improvements: using rule-based commutativity analysis,
evicting from the cache less useful entries, etc.
"""
"""Checks if two Operations commute."""

def __init__(self):
super().__init__()
Expand Down
3 changes: 2 additions & 1 deletion qiskit/quantum_info/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
Statevector
DensityMatrix
StabilizerState
QuantumState
Channels
========
Expand Down Expand Up @@ -128,7 +129,7 @@
from .operators.measures import process_fidelity, average_gate_fidelity, gate_error, diamond_norm
from .operators.dihedral import CNOTDihedral

from .states import Statevector, DensityMatrix, StabilizerState
from .states import Statevector, DensityMatrix, StabilizerState, QuantumState
from .states import (
partial_trace,
state_fidelity,
Expand Down
1 change: 1 addition & 0 deletions qiskit/quantum_info/states/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from .statevector import Statevector
from .stabilizerstate import StabilizerState
from .quantum_state import QuantumState
from .densitymatrix import DensityMatrix
from .utils import partial_trace, shannon_entropy
from .measures import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
fixes:
- |
Fixes a bug in the :class:`Optimize1qGatesDecomposition` transformation pass
Fixes a bug in the :class:`.Optimize1qGatesDecomposition` transformation pass
where the score for substitutions was wrongly calculated when the gate
errors are zero.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ fixes:
Clip probabilities in the :meth:`.QuantumState.probabilities` and
:meth:`.QuantumState.probabilities_dict` methods to the interval ``[0, 1]``.
This fixes roundoff errors where probabilities could e.g. be larger than 1, leading
to errors in the shot emulation of the :class:`.Sampler`.
to errors in the shot emulation of the sampler.
Fixed `#9761 <https://github.com/Qiskit/qiskit-terra/issues/9761>`__.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
fixes:
- |
Fixed the :class:`.BackendSampler` and :class:`.BackendExtimator` to run successfully
Fixed the :class:`.BackendSampler` and :class:`.BackendEstimator` to run successfully
with a custom ``bound_pass_manager``. Previously, the execution for single circuits with
a ``bound_pass_manager`` would raise a ``ValueError`` because a list was not returned
in one of the steps.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
fixes:
- |
Fixed an issue with the :class:`~.CommutationChecker` class where it would
Fixed an issue with the :class:`.CommutationChecker` class where it would
attempt to internally allocate an array for :math:`2^{n}` qubits when it
only needed an array to represent :math:`n` qubits. This could cause
an excessive amount of memory for wide gates, for example a 4 qubit
Expand Down
3 changes: 3 additions & 0 deletions releasenotes/notes/prepare-0.23.3-bf51a905756c4876.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
prelude: >
Qiskit Terra 0.23.3 is a minor bugfix release.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

setup(
name="qiskit-terra",
version="0.23.2",
version="0.23.3",
description="Software for developing quantum computing programs",
long_description=README,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 7dc7a1c

Please sign in to comment.