Skip to content

Commit

Permalink
Prepare for the 0.46 release (#11697)
Browse files Browse the repository at this point in the history
* Prepare for the 0.46 release

This commit prepares the 0.46.0 release, this involves 2 steps first
changing all the version numbers to 0.46.0 from 0.45.x and secondly
updating the release notes to prepare them for publishing.

There are some larger than normal changes to the release notes made in
this PR. Because of the nature of how 0.46 was developed in parallel to
0.45.x, the merge commits used to sync changes from stable/0.45 to
stable/0.46 cause reno to be unable to determine which tag a release
note is associated with reliably. To ensure reno is able to determine
all the 0.46.0 release notes go together this commit squashes all the
applicable release notes into a single new file (along with adding a
prelude). As part of this process the release notes were edited for
consistency and accuracy. Some other changes to note are:

 - The release note about the deprecation of qobj input to
   UnitarySimulatorPy was removed as it's been subsumed by the
   deprecation of UnitarySimulatorPy
 - The release note about the removal of the deprecated
   `clifford_decompose` and `cnotdihedral_decompose` was removed and
   those functions were restored as breaking API changes were not
   allowed in this release. Similarly the qiskit.synthesis.Quaternion
   path was restored.
 - Bumped the cibuildwheel version used to build wheels to v2.16.5 which
   is needed to fix compatibility with newer powershell releases now
   that the Github actions windows images bumped the powershell version
   installed.

* Bump metapackage version too

* Use ISO8601 for date in prelude

* Add synthesis modules that were missed in previous commits

* Apply suggestions from code review

Co-authored-by: Elena Peña Tapia <[email protected]>

* Fix reno formatting

* Apply suggestions from code review

Co-authored-by: Julien Gacon <[email protected]>

* Move new release notes

* Add timeline to messages

* Fix test warning skip

---------

Co-authored-by: Elena Peña Tapia <[email protected]>
Co-authored-by: Julien Gacon <[email protected]>
Co-authored-by: Jake Lishman <[email protected]>
  • Loading branch information
4 people authored Feb 1, 2024
1 parent 6177feb commit 9aa4888
Show file tree
Hide file tree
Showing 179 changed files with 1,044 additions and 953 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: dtolnay/[email protected]
if: runner.os == 'macOS'
- name: Build wheels
uses: pypa/[email protected].2
uses: pypa/[email protected].5
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
Expand All @@ -45,7 +45,7 @@ jobs:
python-version: '3.10'
- uses: dtolnay/rust-toolchain@stable
- name: Build wheels
uses: pypa/[email protected].2
uses: pypa/[email protected].5
env:
CIBW_BEFORE_ALL: rustup target add aarch64-apple-darwin
CIBW_ARCHS_MACOS: arm64 universal2
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
with:
platforms: all
- name: Build wheels
uses: pypa/[email protected].2
uses: pypa/[email protected].5
env:
CIBW_ARCHS_LINUX: s390x
CIBW_TEST_SKIP: "cp*"
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
with:
platforms: all
- name: Build wheels
uses: pypa/[email protected].2
uses: pypa/[email protected].5
env:
CIBW_ARCHS_LINUX: ppc64le
CIBW_TEST_SKIP: "cp*"
Expand Down Expand Up @@ -160,7 +160,7 @@ jobs:
with:
platforms: all
- name: Build wheels
uses: pypa/[email protected].2
uses: pypa/[email protected].5
env:
CIBW_ARCHS_LINUX: aarch64
- uses: actions/upload-artifact@v3
Expand Down
4 changes: 2 additions & 2 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 @@ -2,7 +2,7 @@
members = ["crates/*"]

[workspace.package]
version = "0.45.3"
version = "0.46.0"
edition = "2021"
rust-version = "1.64" # Keep in sync with README.md and rust-toolchain.toml.
license = "Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
author = "Qiskit Development Team"

# The short X.Y version
version = "0.45"
version = "0.46"
# The full version, including alpha/beta/rc tags
release = "0.45.3"
release = "0.46.0"

language = "en"

Expand Down
1 change: 0 additions & 1 deletion docs/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ This page contains the release notes for Qiskit, starting from Qiskit 0.45, the

.. release-notes::
:earliest-version: 0.45.0
:branch: stable/0.45
2 changes: 1 addition & 1 deletion qiskit/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.45.3
0.46.0
2 changes: 1 addition & 1 deletion qiskit/algorithms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@
"``qiskit.algorithms`` has been migrated to an independent package: "
"https://github.com/qiskit-community/qiskit-algorithms. "
"The ``qiskit.algorithms`` import path is deprecated as of qiskit-terra 0.25.0 and "
"will be removed no earlier than 3 months after the release date. "
"will be removed in Qiskit 1.0. "
"Please run ``pip install qiskit_algorithms`` and use ``import qiskit_algorithms`` instead.",
category=DeprecationWarning,
stacklevel=2,
Expand Down
2 changes: 1 addition & 1 deletion qiskit/circuit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def __getattr__(name):
module_name = _DEPRECATED_NAMES[name]
warnings.warn(
f"Accessing '{name}' from '{__name__}' is deprecated since Qiskit Terra 0.22 "
f"and will be removed in 0.23. Import from '{module_name}' instead. "
f"and will be removed in Qiskit 1.0. Import from '{module_name}' instead. "
"This will require installing 'tweedledum' as an optional dependency from Terra 0.23.",
DeprecationWarning,
stacklevel=2,
Expand Down
2 changes: 2 additions & 0 deletions qiskit/circuit/bit.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def __init__(self, register=None, index=None):
"all the containing registers within a circuit and the index of the bit within the "
"circuit."
),
removal_timeline="in the Qiskit 1.0 release",
)
def register(self): # pylint: disable=bad-docstring-quotes
"""Get the register of an old-style bit.
Expand All @@ -92,6 +93,7 @@ def register(self): # pylint: disable=bad-docstring-quotes
"all the containing registers within a circuit and the index of the bit within the "
"circuit."
),
removal_timeline="in the Qiskit 1.0 release",
)
def index(self): # pylint: disable=bad-docstring-quotes
"""Get the index of an old-style bit in the register that owns it.
Expand Down
1 change: 1 addition & 0 deletions qiskit/circuit/classicalregister.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class ClassicalRegister(Register):
),
since="0.23.0",
package_name="qiskit-terra",
removal_timeline="in the Qiskit 1.0 release",
)
def qasm(self):
"""Return OPENQASM string for this register."""
Expand Down
1 change: 1 addition & 0 deletions qiskit/circuit/instruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ def _qasmif(self, string):
),
since="0.25.0",
package_name="qiskit-terra",
removal_timeline="in the Qiskit 1.0 release",
)
def qasm(self):
"""Return a default OpenQASM string for the instruction.
Expand Down
1 change: 1 addition & 0 deletions qiskit/circuit/library/hamiltonian_gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def _define(self):
@deprecate_func(
since="0.25.0",
package_name="qiskit-terra",
removal_timeline="in the Qiskit 1.0 release",
)
def qasm(self):
"""Raise an error, as QASM is not defined for the HamiltonianGate."""
Expand Down
6 changes: 5 additions & 1 deletion qiskit/circuit/library/standard_gates/x.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,11 @@ def _define(self):

self.definition = qc

@deprecate_func(since="0.25.0", package_name="qiskit-terra")
@deprecate_func(
since="0.25.0",
package_name="qiskit-terra",
removal_timeline="in the Qiskit 1.0 release",
)
def qasm(self):
# Gross hack to override the Qiskit name with the name this gate has in Terra's version of
# 'qelib1.inc'. In general, the larger exporter mechanism should know about this to do the
Expand Down
41 changes: 34 additions & 7 deletions qiskit/circuit/quantumcircuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,10 @@ def layout(self) -> Optional[TranspileLayout]:
@classmethod
@property
@deprecate_func(
since="0.45.0", additional_msg="No alternative will be provided.", is_property=True
since="0.45.0",
additional_msg="No alternative will be provided.",
is_property=True,
removal_timeline="in the Qiskit 1.0 release",
)
def header(cls) -> str:
"""The OpenQASM 2.0 header statement."""
Expand All @@ -356,7 +359,10 @@ def header(cls) -> str:
@classmethod
@property
@deprecate_func(
since="0.45.0", additional_msg="No alternative will be provided.", is_property=True
since="0.45.0",
additional_msg="No alternative will be provided.",
is_property=True,
removal_timeline="in the Qiskit 1.0.0 release",
)
def extension_lib(cls) -> str:
"""The standard OpenQASM 2 import statement."""
Expand Down Expand Up @@ -2807,7 +2813,11 @@ def _unroll_param_dict(
out[parameter] = value
return out

@deprecate_func(additional_msg=("Use assign_parameters() instead"), since="0.45.0")
@deprecate_func(
additional_msg=("Use assign_parameters() instead"),
since="0.45.0",
removal_timeline="in the Qiskit 1.0.0 release",
)
def bind_parameters(
self, values: Union[Mapping[Parameter, float], Sequence[float]]
) -> "QuantumCircuit":
Expand Down Expand Up @@ -2935,6 +2945,7 @@ def ch(
@deprecate_func(
since="0.45.0",
additional_msg="Use QuantumCircuit.id as direct replacement.",
removal_timeline="in the Qiskit 1.0.0 release",
)
def i(self, qubit: QubitSpecifier) -> InstructionSet:
"""Apply :class:`~qiskit.circuit.library.IGate`.
Expand Down Expand Up @@ -3536,6 +3547,7 @@ def cswap(
@deprecate_func(
since="0.45.0",
additional_msg="Use QuantumCircuit.cswap as direct replacement.",
removal_timeline="in the Qiskit 1.0.0 release",
)
def fredkin(
self,
Expand Down Expand Up @@ -3757,7 +3769,11 @@ def cx(
CXGate(label=label, ctrl_state=ctrl_state), [control_qubit, target_qubit], []
)

@deprecate_func(since="0.45.0", additional_msg="Use QuantumCircuit.cx as direct replacement.")
@deprecate_func(
since="0.45.0",
additional_msg="Use QuantumCircuit.cx as direct replacement.",
removal_timeline="in the Qiskit 1.0.0 release",
)
def cnot(
self,
control_qubit: QubitSpecifier,
Expand Down Expand Up @@ -3831,7 +3847,11 @@ def ccx(
[],
)

@deprecate_func(since="0.45.0", additional_msg="Use QuantumCircuit.ccx as direct replacement.")
@deprecate_func(
since="0.45.0",
additional_msg="Use QuantumCircuit.ccx as direct replacement.",
removal_timeline="in the Qiskit 1.0.0 release",
)
def toffoli(
self,
control_qubit1: QubitSpecifier,
Expand Down Expand Up @@ -3933,7 +3953,11 @@ def mcx(

return self.append(gate, control_qubits[:] + [target_qubit] + ancilla_qubits[:], [])

@deprecate_func(since="0.45.0", additional_msg="Use QuantumCircuit.mcx as direct replacement.")
@deprecate_func(
since="0.45.0",
additional_msg="Use QuantumCircuit.mcx as direct replacement.",
removal_timeline="in the Qiskit 1.0.0 release",
)
def mct(
self,
control_qubits: Sequence[QubitSpecifier],
Expand Down Expand Up @@ -4662,7 +4686,9 @@ def ucrz(
return self.append(UCRZGate(angle_list), [q_target] + q_controls, [])

@deprecate_func(
since="0.45.0", additional_msg="Instead, use the QuantumCircuit.unitary method."
since="0.45.0",
additional_msg="Instead, use the QuantumCircuit.unitary method.",
removal_timeline="in the Qiskit 1.0.0 release",
)
def squ(
self,
Expand Down Expand Up @@ -4718,6 +4744,7 @@ def squ(
additional_msg="The Snapshot instruction has been superseded by Qiskit Aer's save "
"instructions, see "
"https://qiskit.org/ecosystem/aer/apidocs/aer_library.html#saving-simulator-data.",
removal_timeline="in the Qiskit 1.0.0 release",
)
def snapshot(self, label, snapshot_type="statevector", qubits=None, params=None):
"""Take a statevector snapshot of the internal simulator representation.
Expand Down
1 change: 1 addition & 0 deletions qiskit/circuit/quantumregister.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class QuantumRegister(Register):
),
since="0.23.0",
package_name="qiskit-terra",
removal_timeline="in the Qiskit 1.0 release",
)
def qasm(self):
"""Return OPENQASM string for this register."""
Expand Down
2 changes: 1 addition & 1 deletion qiskit/compiler/transpiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def callback_func(**kwargs):
if translation_method == "unroller":
warnings.warn(
"The 'unroller' translation_method plugin is deprecated as of Qiskit 0.45.0 and "
"will be removed in a future release. Instead you should use the default "
"will be removed in Qiskit 1.0. Instead you should use the default "
"'translator' method or another plugin.",
DeprecationWarning,
stacklevel=2,
Expand Down
4 changes: 2 additions & 2 deletions qiskit/execute_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def _log_submission_time(start_time, end_time):
@deprecate_func(
additional_msg="This function combines ``transpile`` and ``backend.run``, which is covered "
"by ``Sampler`` :mod:`~qiskit.primitives`. Alternatively, you can also run :func:`.transpile` "
"followed by ``backend.run()``. The ``execute`` function is going to be removed "
"in 1.0.",
"followed by ``backend.run()``.",
since="0.46.0",
removal_timeline="in the Qiskit 1.0 release",
)
def execute(
experiments,
Expand Down
5 changes: 4 additions & 1 deletion qiskit/extensions/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
class ExtensionError(QiskitError):
"""Base class for errors raised by extensions module."""

@deprecate_func(since="0.45.0", pending=True)
@deprecate_func(
since="0.46.0",
removal_timeline="in the Qiskit 1.0 release",
)
def __init__(self, *message):
"""Set the error message."""
super().__init__(*message)
Expand Down
1 change: 1 addition & 0 deletions qiskit/extensions/quantum_initializer/squ.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class SingleQubitUnitary(Gate):
"""

@deprecate_func(
removal_timeline="in the Qiskit 1.0 release",
since="0.45.0",
additional_msg="Instead, you can use qiskit.circuit.library.UnitaryGate.",
)
Expand Down
1 change: 1 addition & 0 deletions qiskit/extensions/simulator/snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class Snapshot(Instruction):
_directive = True

@deprecate_func(
removal_timeline="in the Qiskit 1.0 release",
since="0.45.0",
additional_msg="The Snapshot instruction has been superseded by Qiskit Aer's save "
"instructions, see "
Expand Down
2 changes: 1 addition & 1 deletion qiskit/opflow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@

warnings.warn(
"The ``qiskit.opflow`` module is deprecated as of qiskit-terra 0.24.0. "
"It will be removed no earlier than 3 months after the release date. "
"It will be removed in Qiskit 1.0. "
"For code migration guidelines, visit https://qisk.it/opflow_migration.",
category=DeprecationWarning,
stacklevel=2,
Expand Down
1 change: 1 addition & 0 deletions qiskit/opflow/converters/abelian_grouper.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class AbelianGrouper(ConverterBase):
"""

@deprecate_func(
removal_timeline="in the Qiskit 1.0 release",
since="0.24.0",
package_name="qiskit-terra",
additional_msg="For code migration guidelines, visit https://qisk.it/opflow_migration.",
Expand Down
1 change: 1 addition & 0 deletions qiskit/opflow/converters/circuit_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class CircuitSampler(ConverterBase):
"""

@deprecate_func(
removal_timeline="in the Qiskit 1.0 release",
since="0.24.0",
package_name="qiskit-terra",
additional_msg="For code migration guidelines, visit https://qisk.it/opflow_migration.",
Expand Down
1 change: 1 addition & 0 deletions qiskit/opflow/converters/converter_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class ConverterBase(ABC):
matrices)."""

@deprecate_func(
removal_timeline="in the Qiskit 1.0 release",
since="0.24.0",
package_name="qiskit-terra",
additional_msg="For code migration guidelines, visit https://qisk.it/opflow_migration.",
Expand Down
1 change: 1 addition & 0 deletions qiskit/opflow/converters/dict_to_circuit_sum.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class DictToCircuitSum(ConverterBase):
"""

@deprecate_func(
removal_timeline="in the Qiskit 1.0 release",
since="0.24.0",
package_name="qiskit-terra",
additional_msg="For code migration guidelines, visit https://qisk.it/opflow_migration.",
Expand Down
1 change: 1 addition & 0 deletions qiskit/opflow/converters/pauli_basis_change.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class PauliBasisChange(ConverterBase):
"""

@deprecate_func(
removal_timeline="in the Qiskit 1.0 release",
since="0.24.0",
package_name="qiskit-terra",
additional_msg="For code migration guidelines, visit https://qisk.it/opflow_migration.",
Expand Down
1 change: 1 addition & 0 deletions qiskit/opflow/converters/two_qubit_reduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class TwoQubitReduction(ConverterBase):
"""

@deprecate_func(
removal_timeline="in the Qiskit 1.0 release",
since="0.24.0",
package_name="qiskit-terra",
additional_msg="For code migration guidelines, visit https://qisk.it/opflow_migration.",
Expand Down
1 change: 1 addition & 0 deletions qiskit/opflow/evolutions/evolution_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class EvolutionBase(ConverterBase, ABC):
"""

@deprecate_func(
removal_timeline="in the Qiskit 1.0 release",
since="0.24.0",
package_name="qiskit-terra",
additional_msg="For code migration guidelines, visit https://qisk.it/opflow_migration.",
Expand Down
Loading

0 comments on commit 9aa4888

Please sign in to comment.