Closed HuangJunye closed 2 years ago
transpile with real systems have no issues.
from qiskit_ibm_runtime import IBMRuntimeService
from qiskit import transpile
service = IBMRuntimeService(instance='Qiskit Runtime-Real System') # change to standard plan
backend = service.backend('ibm_algiers')
grovers_circuits_transpiled = transpile(grover_circuits, backend)
ibmq_qasm_simulator
doesn't have pulse defaults. The backend_pulse_defaults()
should catch the 404 and return None
instead.
Looks like the old IQX was nicer and just return an empty dictionary instead of raising 404.
@HuangJunye I see this below error in your logs, which says that "ibmq_qasm_simulator" itself is not available.
{"errors":[{"code":"not_found","message":"device not found","more_info":"https://cloud.ibm.com/apidocs/quantum-computing#error-handling"}]
I think it is connecting to the standard plan which has access to only real devices. Try connecting with a lite plan and make sure you are using service.backends()
and you see ibmq_qasm_simulator
exists.
@jyu00 When the simulator exists in the plan the properties API does return 200 with empty response for simulators as expected.
@rathishcholarajan I see that was the reason. I can verify that the lite plan works as expected. But I think the error message should be more explicit. If the backend is not available for a certain account, shouldn't it raise a specific error for that? It's strange that the error occur not in this line:
iqx_sim = provider.get_backend('ibmq_qasm_simulator')
I don't have access to standard plan any more so I can't verify that.
Yes I will make a note to throw an explicit error when working on this enhancement https://github.com/Qiskit/qiskit-ibm-runtime/issues/200
Describe the bug
Transpile using
ibmq_qasm_simulator
works with qiskit-ibmq-provider but not qiskit-ibm-runtimeSteps to reproduce
works as expected, but the following produces erorr
Expected behavior transpile should work with
ibmq_qasm_simulator
backend from qiskit-ibm-runtime providerSuggested solutions
Additional Information