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

simulator_stabilizer backend .local & .simulator attributes raise TranspilerError #1648

Open
ryanhill1 opened this issue May 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ryanhill1
Copy link

Describe the bug

Calling backend.local and backend.simulator for simulator_stabilizer and simulator_extended_stabilizer raises TranspilerError.

Steps to reproduce

>>> from qiskit_ibm_runtime import QiskitRuntimeService
>>> service = QiskitRuntimeService(token="MYTOKEN", channel="ibm_quantum")
>>> backend = service.backend("simulator_stabilizer") # or "simulator_extended_stabilizer"
>>> backend.local # or backend.simulator, same error
...
...
  File "/path/to/lib/python3.9/site-packages/qiskit/transpiler/target.py", line 424, in add_instruction
    raise TranspilerError(
qiskit.transpiler.exceptions.TranspilerError: "The number of qubits for Instruction(name='cx', num_qubits=2, num_clbits=0, params=[]) does not match the number of qubits in the properties dictionary: (0,)"

Expected behavior

>>> backend.local
False
>>> backend.simulator
True

Suggested solutions

Not sure

Additional Information

  • qiskit-ibm-runtime version: 0.23.0
  • Python version: 3.9
  • Operating system: Ubuntu 20.04.4 LTS (Focal Fossa)
@ryanhill1 ryanhill1 added the bug Something isn't working label May 1, 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