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

Error with import qiskit_aer #2126

Open
j125330 opened this issue May 7, 2024 · 0 comments
Open

Error with import qiskit_aer #2126

j125330 opened this issue May 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@j125330
Copy link

j125330 commented May 7, 2024

Informations

  • Qiskit Aer version: 0.14.0.1
  • Python version: 3.9.6
  • Operating system: macOS Sonoma 14.4.1

What is the current behavior?

import qiskit_aer raises an exception:

Traceback (most recent call last):
  File ".../src/simple_program.py", line 2, in <module>
    import qiskit_aer
  File ".../venv/lib/python3.9/site-packages/qiskit_aer/__init__.py", line 69, in <module>
    from qiskit_aer.aerprovider import AerProvider
...
File ".../venv/lib/python3.9/site-packages/qiskit/transpiler/passes/basis/basis_translator.py", line 565, in _basis_search
    rustworkx.digraph_dijkstra_search(graph, [dummy], vis.edge_cost, vis)
  File ".../venv/lib/python3.9/site-packages/qiskit/transpiler/passes/basis/basis_translator.py", line 509, in edge_cost
    for instruction in edge_data.rule.qc:
AttributeError: 'Equivalence' object has no attribute 'qc'

Steps to reproduce the problem

I can reproduce it in my IntelliJ-Environment, with the following short program:

import qiskit_aer

print(f'Version qiskit_aer = {qiskit_aer.__version__}')

What is the expected behavior?

No error :-)

Suggested solutions

:-)

@j125330 j125330 added the bug Something isn't working label May 7, 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

1 participant