qbraid.runtime.aws.BraketQuantumTask

class BraketQuantumTask(task_id, task=None, **kwargs)[source]

Wrapper class for Amazon Braket QuantumTask objects.

Create a BraketQuantumTask.

__init__(task_id, task=None, **kwargs)[source]

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

device

Returns the qbraid QuantumDevice object associated with this job.

id

Return a unique id identifying the job.