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
MinimumEigenOptimizer doesn't support algorithms from qiskit-algorithms.
The qiskit.algorithms namespace is deprecated since qiskit-terra v0.25.0. The qiskit_algorithms namespace from qiskit-algorithms should be a drop-in replacement (for the transition period).
TypeError: MinimumEigenOptimizer supports qiskit.algorithms.minimum_eigensolvers.SamplingMinimumEigensolver, qiskit.algorithms.minimum_eigensolvers.NumPyMinimumEigensolver, and qiskit.algorithms.minimum_eigen_solvers.MinimumEigensolver. But <class 'qiskit_algorithms.minimum_eigensolvers.qaoa.QAOA'> is given.
Environment
What is happening?
MinimumEigenOptimizer
doesn't support algorithms fromqiskit-algorithms
.The
qiskit.algorithms
namespace is deprecated sinceqiskit-terra
v0.25.0. Theqiskit_algorithms
namespace fromqiskit-algorithms
should be a drop-in replacement (for the transition period).How can we reproduce the issue?
For example:
fails with:
raised at
qiskit-optimization/qiskit_optimization/algorithms/minimum_eigen_optimizer.py
Line 164 in 5e8bc0f
What should happen?
It should be possible to use legacy
qiskit.algorithms
andqiskit_algorithms
namespaces interchangeably (until the latter diverges).Any suggestions?
To ease up the transition and keep the type annotations correct, one could prefer
qiskit_algorithms
if it is present:The
TypeError
message should already now be informative enough to figure out what is happening.The text was updated successfully, but these errors were encountered: