Prelude
This release compiles a series of important updates to the package, including:
- dropped support for Python 3.8 and added support for Python 3.13
- added support for PrimitivesV2
- addressed deprecations from the 1.x cycle
These changes allow for qiskit-algorithms to now support Qiskit 2.x while maintaining support for the 1.x cycle.
Following up on the deprecation of BlueprintsCircuit in the 2.1 version of Qiskit, most tests have been updated to use the replacements functions instead. These circuits are still supported by qiskit-algorithms, though their use is now deprecated, and their support will be removed when the oldest supported Qiskit version is 3.0. The AmplificationProblem and Grover classes now support being passed Gate objects to support the use of PhaseOracleGate in addition to PhaseOracle. The AdaptVQE class now supports a new way to specify its ansatz, following up on the deprecation of EvolvedOperatorAnsatz.
Following up on the deprecation of V1 primitives in Qiskit 1.X and their subsequent removal in Qiskit 2.X, this release of qiskit-algorithms drops their support in favor of the V2 primitives. You can read about how to modify your imports in your code in the Qiskit migration guide to the V2 primitives. Since V2 primitives may require users to transpile their circuit, it is now possible for the users to provide the classes that define their own QuantumCircuit with a Transpiler along with some options. A Transpiler is any object having a run method that can take as input a QuantumCircuit or a list thereof and additional options and returns the transpiled version of its input(s) according to the provided options.
New Contributors
- @edoaltamura made their first contribution in #155
- @1ucian0 made their first contribution in #180
- @tnemoz made their first contribution in #205
- @GuillermoAbadLopez made their first contribution in #209
- @julenl made their first contribution in #218
- @cpossel made their first contribution in #228
- @dependabot[bot] made their first contribution in #235
Full Changelog: 0.3.0...0.4.0