qiskit_braket_provider.providers.BraketQuantumTask¶
- class BraketQuantumTask(task_id, backend, tasks, **metadata)[source]¶
BraketQuantumTask.
BraketQuantumTask for execution of circuits on Amazon Braket or locally.
- Parameters:
task_id (
str) – Semicolon-separated IDs of the underlying tasksbackend (
BackendV2) – BraketBackend that ran the circuittasks (
list[LocalQuantumTask] |list[AwsQuantumTask] |AwsQuantumTask) – Executed tasks**metadata – Additional metadata
- __init__(task_id, backend, tasks, **metadata)[source]¶
BraketQuantumTask for execution of circuits on Amazon Braket or locally.
- Parameters:
task_id (
str) – Semicolon-separated IDs of the underlying tasksbackend (
BackendV2) – BraketBackend that ran the circuittasks (
list[LocalQuantumTask] |list[AwsQuantumTask] |AwsQuantumTask) – Executed tasks**metadata – Additional metadata
Methods
__init__(task_id, backend, tasks, **metadata)BraketQuantumTask for execution of circuits on Amazon Braket or locally.
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
DONEorERROR.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([use_cached_value])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
DONEorERROR.Attributes
shotsReturn the number of shots.
version