module 'qiskit' has no attribute 'Aer'

240 Views Asked by At

I'm using Google Colab to run my Python code. One month back, it worked fine. But now the same code through an error. I used !pip install qiskit qiskit-aer. The error is <module 'qiskit' has no attribute 'Aer'>

Can anyone help me to solve this error? enter image description here

I solution to the error

1

There are 1 best solutions below

0
Yael Ben-Haim On

Qiskit 1.0 changed from from qiskit import Aer to from qiskit_aer import Aer. See the Qiskit 1.0 release notes, there may be additional adjustments that you have to update your code.