Tamil
மொழிகள்
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

AerJob

class AerJob(backend, job_id, fn, qobj, executor=None)[source]

Bases: JobV1

AerJob class for Qiskit Aer Simulators.

Initializes the asynchronous job.

Parameters
  • 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

  • executor (ThreadPoolExecutor or dask.distributed.client) -- The executor to be used to submit the job.

Methods

backend

Return the instance of the backend used for this job.

cancel

Attempt to cancel the job.

cancelled

Return whether the job has been cancelled.

done

Return whether the job has successfully run.

executor

Return the executor for this job

in_final_state

Return whether the job is in a final job state such as DONE or ERROR.

job_id

Return a unique id identifying the job.

qobj

Return the Qobj submitted for this job.

result

Get job result.

running

Return whether the job is actively running.

status

Gets the status of the job by querying the Python's future

submit

Submit the job to the backend for execution.

wait_for_final_state

Poll the job status until it progresses to a final state such as DONE or ERROR.

Attributes

version = 1