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

Upgrade backend to BackendV2 #44

Open
jselig-rigetti opened this issue Jan 2, 2024 · 0 comments
Open

Upgrade backend to BackendV2 #44

jselig-rigetti opened this issue Jan 2, 2024 · 0 comments

Comments

@jselig-rigetti
Copy link
Contributor

jselig-rigetti commented Jan 2, 2024

Without this change, the following error occurs when using a live backend with the example from the README:

qiskit.transpiler.exceptions.TranspilerError: 'Number of qubits greater than device.'

This is due to https://github.com/Qiskit/qiskit/blob/main/qiskit/compiler/transpiler.py#L485 not using the direct backend.coupling_map as it would if RigettiQCSBackend were based on BackendV2

A workaround for now is to call execute explicitly with the coupling_map argument like the following, as described in #43

job = execute(circuit, backend, shots=10, coupling_map=backend.coupling_map)
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

No branches or pull requests

1 participant