Open
Description
Describe the bug
simulator_stabilizer
and simulator_extended_stabilizer
simulator
properties crash the program ungracefully with a cryptic error message.
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,)"
Steps to reproduce
from qiskit_ibm_runtime import QiskitRuntimeService
runtime_service = QiskitRuntimeService()
backend = runtime_service.get_backend("simulator_stabilizer")
# OR
# backend = runtime_service.get_backend("simulator_extended_stabilizer")
backend.simulator # This line fails
Expected behavior
I believe these backends should report True
, as they are simulators. If these methods can't/shouldn't be implemented, I would expect a NotImplementedError
to be raised.
Suggested solutions
Additional Information
- qiskit-ibm-runtime version: 0.12.2
- Python version: 3.10
- Operating system: MacOS