Infleqtion / client-superstaq

https://superstaq.readthedocs.io
Apache License 2.0
84 stars 19 forks source link

Job submissions with qss to IBM QPU end in Internal Server Error #1033

Closed vietphamngoc closed 3 weeks ago

vietphamngoc commented 4 weeks ago

What is happening?

When submitting circuits to an IBM backend, an ISE is returned. However the circuit is submitted and run on the backend as it appears on the IBM Quantum dashboard.

How can we reproduce the issue?

provider = qss.SuperstaqProvider(ibmq_token=<API_KEY>, ibmq_channel="ibm_quantum")
backend = provider.get_backend('ibmq_kyoto_qpu')
qc = qiskit.QuantumCircuit(2)
qc.h(0)
qc.cx(0, 1)
qc.measure_all()
compiler_output = backend.compile(qc)
circ = compiler_output.circuit
job = backend.run(circ, shots=1000)
job.result()

This results in: image

What should happen?

This code should return the results of the submitted job.

Environment

Any additional context?

I tried changing the values for timeout and wait in job.result() but still got the error.

vtomole commented 4 weeks ago

IBM is returning a job status that we don't handle.

 assert status in [
            "INITIALIZING",
            "VALIDATING",
            "QUEUED",
            "RUNNING",
            "DONE",
            "CANCELLED",
            "ERROR",
        ]

Adding it should fix this.

vietphamngoc commented 3 weeks ago

Thanks!