qiskit_braket_provider.providers.AmazonBraketTask#

class AmazonBraketTask(task_id, backend, tasks, **metadata)[source]#

AmazonBraketTask.

AmazonBraketTask for local execution of circuits.

Parameters:
  • task_id (str) – id of the task

  • backend (BackendV2) – Local simulator

  • tasks (Union[List[LocalQuantumTask], List[AwsQuantumTask]]) – Executed tasks

  • **metadata (Optional[dict]) –

__init__(task_id, backend, tasks, **metadata)[source]#

AmazonBraketTask for local execution of circuits.

Parameters:
  • task_id (str) – id of the task

  • backend (BackendV2) – Local simulator

  • tasks (Union[List[LocalQuantumTask], List[AwsQuantumTask]]) – Executed tasks

  • **metadata (Optional[dict]) –

Methods

__init__(task_id, backend, tasks, **metadata)

AmazonBraketTask for local execution of circuits.

backend()

Return the backend where this job was executed.

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.

queue_position()

The queue position details for the quantum job.

result()

Return the results of the job.

running()

Return whether the job is actively running.

status()

Return the status of the job, among the values of JobStatus.

submit()

Submit the job to the backend for execution.

task_id()

Return a unique id identifying the task.

wait_for_final_state([timeout, wait, callback])

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

Attributes

shots

Return the number of shots.

version