-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
bugSomething isn't workingSomething isn't workingmod: algorithmsRelated to the Algorithms moduleRelated to the Algorithms module
Description
Environment
- Qiskit Terra version: 0.22.0
- Python version: 3.8.15
- Operating system: Linux
What is happening?
Running the code snippet below
import numpy as np
from qiskit.algorithms.linear_solvers.numpy_linear_solver import NumPyLinearSolver
from qiskit.algorithms.linear_solvers.hhl import HHL
matrix = np.array([[1, -1/3], [-1/3, 1]])
vector = np.array([1, 0])
naive_hhl_solution = HHL().solve(matrix, vector)
which yields the following warning:
/tmp/ipykernel_68331/2608894596.py:6: DeprecationWarning: The HHL class is deprecated as of Qiskit Terra 0.22.0 and will be removed
no sooner than 3 months after the release date.
It is replaced by the tutorial at https://qiskit.org/textbook/ch-applications/hhl_tutorial.html"
naive_hhl_solution = HHL().solve(matrix, vector)
However, the tutorial it refers to in the warning message contains the same code as the one I am running.
If the HHL class is being deprecated, what is it being replaced with?
Thanks.
How can we reproduce the issue?
See code snippet above
What should happen?
No warning messages should appear
Any suggestions?
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingmod: algorithmsRelated to the Algorithms moduleRelated to the Algorithms module