IQMJob#
Module: iqm.qiskit_iqm.iqm_job
- 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
Attempt to cancel the job.
Returns the error message if job has failed, otherwise returns None.
Return the position of the job in the server queue.
Retrieve job result within defined timeout.
Get the current job status.
Not implemented.
- cancel() bool#
Attempt to cancel the job.
- Returns:
True if the job was cancelled successfully, False otherwise
- Return type:
- result(*, timeout: float = 10800.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:
Inheritance
