- class AerJob(backend, job_id, fn, qobj=None, circuits=None, parameter_binds=None, run_options=None, executor=None)¶
AerJob class for Qiskit Aer Simulators.
Initializes the asynchronous job.
backend (AerBackend) – the backend used to run the job.
job_id (str) – a unique id in the context of the backend used to run the job.
fn (function) – a callable function to execute qobj on backend. This should usually be a bound
AerBackend._run()method, with the signature (qobj: QasmQobj, job_id: str) -> Result.
qobj (QasmQobj) – qobj to execute
circuits (list of QuantumCircuit) – circuits to execute. If qobj is set, this argument is ignored.
parameter_binds (list) – parameters for circuits. If qobj is set, this argument is ignored.
run_options (dict) – run_options to execute. If qobj is set, this argument is ignored.
executor (ThreadPoolExecutor or dask.distributed.client) – The executor to be used to submit the job.
JobError – if no qobj and no circuits.
Return the instance of the backend used for this job.
Attempt to cancel the job.
Return whether the job has been cancelled.
Return the list of QuantumCircuit submitted for this job.
Return whether the job has successfully run.
Return the executor for this job
Return whether the job is in a final job state such as
Return a unique id identifying the job.
Return the Qobj submitted for this job.
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