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
cvxpy is needed for noise transformations but is not installed when installing Aer with the Qiskit meta-package. It is in the requirements-dev, but not in the setup.
Steps to reproduce the problem
What is the expected behavior?
Suggested solutions
The text was updated successfully, but these errors were encountered:
It was always intended as an optional dependenc since it is only used by one not frequently used function. That is is why the import is handled only when that function is called. I'm not sure what the best way to handle these are. Should we add a warning for that function, something like:
deffunction_that_uses_cvxpy():
try:
importcvxpyexcept<whateverexceptionformodulenotfoundis>:
logger.warn("<this function> requires CVXPy. Please install with `pip install cvxpy`")
throwNoiseError("CVXPy package not installed.")
Informations
What is the current behavior?
cvxpy
is needed for noise transformations but is not installed when installing Aer with the Qiskit meta-package. It is in the requirements-dev, but not in the setup.Steps to reproduce the problem
What is the expected behavior?
Suggested solutions
The text was updated successfully, but these errors were encountered: