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

AerSimulator.coupling_map is not properly generated #1988

Closed
t-imamichi opened this issue Nov 6, 2023 · 0 comments
Closed

AerSimulator.coupling_map is not properly generated #1988

t-imamichi opened this issue Nov 6, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@t-imamichi
Copy link
Member

t-imamichi commented Nov 6, 2023

Informations

  • Qiskit Aer version: 0.13.0
  • Python version: 3.10.13
  • Operating system: macOS 14.1

What is the current behavior?

AerSimulator becomes BackendV2 but AerSimulator.coupling_map does not seem properly generated.

Steps to reproduce the problem

from qiskit_aer import AerSimulator

backend = AerSimulator(coupling_map=[[0,1]])
print('backend.coupling_map:', backend.coupling_map, type(backend.coupling_map))
print('backend.configuration().coupling_map:', backend.configuration().coupling_map)

output

backend.coupling_map: None <class 'NoneType'>  # expected `CouplingMap`
backend.configuration().coupling_map: [[0, 1]]

What is the expected behavior?

AerSimulator.coupling_map returns the coupling_map instead of None.

Suggested solutions

AerSimulator.set_options allows users modify coupling map on-demand. It might be good to overload BackendV2.coupling_map to generate a coupling map dynamically.

@t-imamichi t-imamichi added the bug Something isn't working label Nov 6, 2023
@doichanj doichanj self-assigned this Nov 7, 2023
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