You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Environment
What is happening?
Running the code snippet below
which yields the following warning:
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
The text was updated successfully, but these errors were encountered: