qiskit.providers.ibmq.runtime.RuntimeJob.wait_for_final_state¶
-
RuntimeJob.
wait_for_final_state
(timeout=None, wait=5)[source]¶ Poll the job status until it progresses to a final state such as
DONE
orERROR
.- Parameters
timeout (
Optional
[float
]) – Seconds to wait for the job. IfNone
, wait indefinitely.wait (
float
) – Seconds between queries.
- Raises
JobTimeoutError – If the job does not reach a final state before the specified timeout.
- Return type
None