qbraid.runtime.aws.BraketQuantumTask
- class BraketQuantumTask(task_id, task=None, **kwargs)[source]
Wrapper class for Amazon Braket
QuantumTaskobjects.Create a BraketQuantumTask.
Methods
__init__(task_id[, task])Create a BraketQuantumTask.
cancel()Cancel the quantum task.
get_cost()Return the cost of the job.
is_terminal_state()Returns True if job is in final state.
metadata()Return the metadata regarding the job.
queue_position()Returns queue position from Braket QuantumTask.
result()Return the results of the job.
status()Returns status from Braket QuantumTask object metadata.
wait_for_final_state([timeout, poll_interval])Poll the job status until it progresses to a final state.
Attributes
deviceReturns the qbraid QuantumDevice object associated with this job.
idReturn a unique id identifying the job.