Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aer not getting imported. #2060

Closed
satyardn opened this issue Feb 16, 2024 · 2 comments
Closed

Aer not getting imported. #2060

satyardn opened this issue Feb 16, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@satyardn
Copy link

Informations

  • Qiskit Aer version: 0.13.3
  • Python version: 3.10.12
  • Operating system: Google Colab

What is the current behavior?

I am currently practicing the codes using Google Colab. It was working perfect till 13th of February and now it's throwing error even if I have installed the Aer package separately. Installed Qiskit and Aer as well but when importing Aer, it throws below error:

ImportError: cannot import name 'Aer' from 'qiskit' (/usr/local/lib/python3.10/dist-packages/qiskit/init.py)

image

Steps to reproduce the problem

Open Google Colab
Install below libraries:
!pip install qiskit
!pip install qiskit-aer

Then import Aer:
from qiskit import Aer

What is the expected behavior?

This should run without any error.

Suggested solutions

None

@satyardn satyardn added the bug Something isn't working label Feb 16, 2024
@jakelishman
Copy link
Member

Thank you for the report. This is expected behaviour of Qiskit 1.0 and noted in its release notes and deprecated in Qiskit 0.46 (our suggested upgrade path is to first upgrade to Qiskit 0.46, see the warnings that appear there so they can be fixed before finalising the upgrade to Qiskit 1.0).

The drop-in replacement for qiskit.Aer is qiskit_aer.Aer.

@jakelishman
Copy link
Member

I'll close this issue as "won't fix" now (because it's expected), but if you have other problems using Aer with Qiskit 1.0, please feel free to open more reports.

@jakelishman jakelishman closed this as not planned Won't fix, can't repro, duplicate, stale Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants