Skip to content

Commit 2796151

Browse files
eliarbelbeckykdmtreinishjakelishman
authored
Prepare 2.1.0 release (#14565)
* Version update and first pass at the release notes * Update releasenotes/notes/2.1/Added-random-circuit-from-graph-95c22eeabdea89d0.yaml Co-authored-by: Rebecca Dimock <[email protected]> * Apply comments from Becky's review * Fix broken links and other formatting issues * Apply fixes after proofreading * Update feature notes This commit goes through the new feature release notes and updates and expands on them for clarity. * Update other notes * Update deprecation notes * Update upgrade notes * Update C API target note * Add prelude * Refine circuit library release note Remove the mention of a migration guide * Address review comments * Remove duplicate sphinx directives * Reword PauliLindbladMap note * Fixup PauliLindbladMap wording * Update releasenotes/notes/2.1/prepare-2.1.0-409d24ecbe277062.yaml Co-authored-by: Matthew Treinish <[email protected]> * Remove duplicate release notes from 2.0.x * Resolve Pauli cross-reference in a release note * Update fix notes --------- Co-authored-by: Rebecca Dimock <[email protected]> Co-authored-by: Matthew Treinish <[email protected]> Co-authored-by: Jake Lishman <[email protected]>
1 parent ae0a334 commit 2796151

File tree

75 files changed

+377
-415
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+377
-415
lines changed

Cargo.lock

Lines changed: 9 additions & 9 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 = "2.1.0-rc1"
6+
version = "2.1.0"
77
edition = "2021"
88
rust-version = "1.79" # Keep in sync with README.md, rust-toolchain.toml, and tools/install_rust_msrv.sh
99
license = "Apache-2.0"

docs/cdoc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _C_API:
2+
13
===========================
24
Qiskit C API (``qiskit.h``)
35
===========================

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 = "2.1"
3434
# The full version, including alpha/beta/rc tags
35-
release = "2.1.0rc1"
35+
release = "2.1.0"
3636

3737
language = "en"
3838

docs/release_notes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ Qiskit |version| release notes
1010
`:earliest-version:` should be set to the rc1 release for the current minor release series. For example, the stable/1.1 branch should set it to 1.1.0rc1. If on `main`, set to the prior minor version's rc1, like `1.0.0rc1`.
1111

1212
.. release-notes::
13-
:earliest-version: 1.1.0rc1
13+
:earliest-version: 2.1.0rc1

qiskit/VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.1.0rc1
1+
2.1.0

qiskit/circuit/library/arithmetic/piecewise_chebyshev.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ class PiecewiseChebyshevGate(Gate):
377377
from qiskit import QuantumCircuit
378378
from qiskit.circuit.library.arithmetic import PiecewiseChebyshevGate
379379
380-
f_x, num_state_qubits, degree, breakpoints = lambda x: np.arcsin(1 / x), 2, 2, [2, 4]
380+
f_x, num_state_qubits, degree, breakpoints = lambda x: np.sin(1 / x), 2, 2, [2, 4]
381381
pw_approximation = PiecewiseChebyshevGate(f_x, num_state_qubits, degree, breakpoints)
382382
383383
qc = QuantumCircuit(pw_approximation.num_qubits)

qiskit/transpiler/passes/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
Split2QUnitaries
9292
RemoveIdentityEquivalent
9393
ContractIdleWiresInControlFlow
94+
OptimizeCliffordT
9495
9596
Scheduling
9697
=============

qiskit/transpiler/passes/synthesis/plugin.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,10 @@ def run(self, high_level_object, coupling_map=None, target=None, qubits=None, **
361361
:no-inherited-members:
362362
:no-special-members:
363363
364+
.. automodule:: qiskit.transpiler.passes.synthesis.clifford_unitary_synth_plugin
365+
:no-inherited-members:
366+
:no-special-members:
367+
364368
365369
High Level Synthesis
366370
--------------------

releasenotes/notes/2.1/Added-random-circuit-from-graph-95c22eeabdea89d0.yaml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,35 @@
11
---
22
features_circuits:
33
- |
4-
Added a function :func:`~qiskit.circuit.random.utils.random_circuit_from_graph` that generates a random circuit that
5-
induces the same interaction graph as the interaction graph specified by `interaction_graph`.
4+
Added a function :func:`~qiskit.circuit.random.random_circuit_from_graph` that generates a random circuit that
5+
induces the same interaction graph as the one specified by `interaction_graph`.
66
7-
The probability of randomly drawing an edge from the interaction graph as a two-qubit gate can be set by the
8-
user in the weight attribute of an edge in the input interaction graph. If the user does not set the probability,
9-
each edge is drawn uniformly, i.e. each two-qubit gate represented by an edge in the interaction graph has the
10-
same probability of getting added to the random circuit. If only a subset of edge probabilities are set,
11-
`ValueError` will be raised.
7+
The probability of randomly drawing an edge from the interaction graph as a two-qubit gate can be set by the
8+
user in an edge's weight attribute in the input interaction graph. If the user does not set the probability,
9+
each edge is drawn uniformly. That is, each two-qubit gate represented by an edge in the interaction graph has the
10+
same probability of getting added to the random circuit. If only a subset of edge probabilities are set,
11+
``ValueError`` will be raised.
1212
13-
This is an example where 'cp_map' is a list of edges with some arbitrary weights.
13+
In this example, ``cp_map`` is a list of edges with arbitrary weights.
1414
1515
.. plot::
1616
:include-source:
17-
17+
1818
from qiskit.circuit.random.utils import random_circuit_from_graph
1919
import rustworkx as rx
2020
pydi_graph = rx.PyDiGraph()
2121
n_q = 5
2222
cp_map = [(0, 1, 0.18), (1, 2, 0.15), (2, 3, 0.15), (3, 4, 0.22)]
23-
pydi_graph.add_nodes_from(range(n_q))
24-
pydi_graph.add_edges_from(cp_map)
23+
pydi_graph.extend_from_weighted_edge_list(cp_map)
2524
# cp_map can be passed in directly as interaction_graph
2625
qc = random_circuit_from_graph(interaction_graph = pydi_graph,
27-
min_2q_gate_per_edge = 1,
28-
max_operands = 2,
29-
measure = True,
30-
conditional = True,
31-
reset = True,
32-
seed = 0,
33-
insert_1q_oper = True,
26+
min_2q_gate_per_edge = 1,
27+
max_operands = 2,
28+
measure = True,
29+
conditional = True,
30+
reset = True,
31+
seed = 0,
32+
insert_1q_oper = True,
3433
prob_conditional = 0.21,
3534
prob_reset = 0.1)
3635
qc.draw(output='mpl')

0 commit comments

Comments
 (0)