Skip to content

Commit

Permalink
Update algorithms deprecation message/reno (#10500)
Browse files Browse the repository at this point in the history
* Update reno

* Update deprecation warning

(cherry picked from commit f01b7ab)
  • Loading branch information
ElePT authored and mergify[bot] committed Jul 26, 2023
1 parent 04c8108 commit ccc4b0f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 5 additions & 2 deletions qiskit/algorithms/__init__.py
Expand Up @@ -20,8 +20,11 @@
The :mod:`qiskit.algorithms` module has been migrated to an independent package:
https://github.com/qiskit-community/qiskit-algorithms.
The current import path is deprecated and will be removed no earlier
than 3 months after the release date. You can run ``pip install qiskit_algorithms``
and import ``from qiskit_algorithms`` instead.
than 3 months after the release date. If your code uses primitives, you can run
``pip install qiskit_algorithms`` and import ``from qiskit_algorithms`` instead.
If you use opflow/quantum instance-based algorithms, please update your code to
use primitives following: https://qisk.it/algo_migration before migrating to
the new package.
It contains a collection of quantum algorithms, for use with quantum computers, to
carry out research and investigate how to solve problems in different domains on
Expand Down
Expand Up @@ -12,11 +12,13 @@ deprecations:
of new features has moved to the new package.
If you're relying on :mod:`qiskit.algorithms` you should update your
requirements to also include ``qiskit-algorithms`` and update the imports
from ``qiskit.algorithms`` to ``qiskit_algorithms``. If you have not yet
from ``qiskit.algorithms`` to ``qiskit_algorithms``. Please note that this
new package does not include already deprecated algorithms code, including
``opflow`` and ``QuantumInstance``-based algorithms. If you have not yet
migrated from ``QuantumInstance``-based to primitives-based algorithms,
you should follow the migration guidelines in https://qisk.it/algo_migration.
The decision to migrate the :mod:`~.algorithms` module to a
separate package was made to clarify the purpose Qiskit and
The decision to migrate the :mod:`~.algorithms` module to a
separate package was made to clarify the purpose Qiskit and
make a distinction between the tools and libraries built on top of it.

0 comments on commit ccc4b0f

Please sign in to comment.