Skip to content

Example in README.md errors #5

Open

Description

@psdecabooter

When I run the example after only installing fable-circuits and its dependencies, I get the errror:

Traceback (most recent call last):
File "/home/fable_test/main.py", line 3, in
from qiskit import Aer
ImportError: cannot import name 'Aer' from 'qiskit' (/home/fable_test/.venv/lib/python3.10/site-packages/qiskit/init.py)



This seems to be because qiskit Aer has been moved to its own package "qiskit_aer". I was able to fix the error by changing the line:
from qiskit import Aer
to:
from qiskit_aer import Aer
and adding the qiskit_aer package to my project

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions