qiskit-ibm-runtime icon indicating copy to clipboard operation
qiskit-ibm-runtime copied to clipboard

simulator_stabilizer backend .local & .simulator attributes raise TranspilerError

Open ryanhill1 opened this issue 9 months ago • 0 comments

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 avatar May 01 '24 18:05 ryanhill1