AerJob¶
- class AerJob(backend, job_id, fn, qobj, *args)[source]¶
AerJob class.
- _executor¶
executor to handle asynchronous jobs
- Type
futures.Executor
Initializes the asynchronous job.
- Parameters
backend – the backend used to run the job.
job_id – a unique id in the context of the backend used to run the job.
Methods
Return the instance of the backend used for this job.
Attempt to cancel the job.
Return whether the job has been cancelled.
Return whether the job has successfully run.
Return whether the job is in a final job state.
Return a unique id identifying the job.
Return the Qobj submitted for this job.
AerJob.result
([timeout])Get job result.
Return whether the job is actively running.
Gets the status of the job by querying the Python’s future
Submit the job to the backend for execution.
AerJob.wait_for_final_state
([timeout, wait, …])Poll the job status until it progresses to a final state such as
DONE
orERROR
.