iqm.qiskit_iqm.iqm_job.IQMJob#
- class iqm.qiskit_iqm.iqm_job.IQMJob(backend: IQMBackend, job: CircuitJob, **kwargs)#
Bases:
JobV1Implementation of Qiskit’s job interface to handle circuit execution on an IQM Server.
- Parameters:
backend (IQMBackend) – Backend instance initiating this job.
job (CircuitJob) – Circuit execution job generated by IQM Server.
kwargs – Arguments to be passed to the initializer of the parent class.
Attributes
Methods
_iqm_format_measurement_results(...[, ...])Convert the measurement results from a circuit into the Qiskit format.
_iqm_format_results(iqm_results_batch, ...)Convert the measurement results for a batch of circuits into the Qiskit format.
cancel()Attempt to cancel the job.
Returns the error message if job has failed, otherwise returns None.
queue_position([refresh])Return the position of the job in the server queue.
result(*[, timeout, cancel_after_timeout])Retrieve job result within defined timeout.
status()Return the status of the job, among the values of
JobStatus.submit()Submit the job to the backend for execution.
- submit()#
Submit the job to the backend for execution.
- cancel() bool#
Attempt to cancel the job.
- Returns:
True if the job was cancelled successfully, False otherwise
- Return type:
- result(*, timeout: float = 900.0, cancel_after_timeout: bool = False) Result#
Retrieve job result within defined timeout.
- Parameters:
- Returns:
Result if job finished within
timeout.- Raises:
APITimeoutError – Waiting for results exceeded timeout.
- Return type: