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

Add support for Runtime backends #50

Closed
kevinsung opened this issue Nov 15, 2022 · 2 comments · May be fixed by #51
Closed

Add support for Runtime backends #50

kevinsung opened this issue Nov 15, 2022 · 2 comments · May be fixed by #51

Comments

@kevinsung
Copy link

Runtime backends have a different API than IBMQ backends. Example:

import mapomatic
from qiskit import QuantumCircuit
from qiskit_ibm_runtime import QiskitRuntimeService

qc = QuantumCircuit(5)
qc.h(0)
qc.cx(0, 1)
qc.measure_all()

service = QiskitRuntimeService()
backend = service.backend("ibm_auckland")
layout = mapomatic.best_overall_layout(qc, [backend])
Traceback (most recent call last):
  File "/home/kjs/projects/scratch/mapomatic-update.py", line 12, in <module>
    layout = mapomatic.best_overall_layout(qc, [backend])
  File "/home/kjs/projects/mapomatic/mapomatic/layouts.py", line 203, in best_overall_layout
    best_out.append((layout, backend.name(), error))
TypeError: 'str' object is not callable
@nonhermitian
Copy link
Collaborator

Yes, this is an unfortunate breaking change in Runtime

nonhermitian added a commit that referenced this issue Aug 29, 2023
Fix for #50 , updated layouts.py
@nonhermitian
Copy link
Collaborator

Should be closed in #62

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants