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

BasicAerJob

class BasicAerJob(backend, job_id, result)[source]

Bases: JobV1

BasicAerJob class.

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.

  • kwargs -- Any key value metadata to associate with this 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.

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.

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