qbraid.providers.aws.BraketQuantumTask
- class BraketQuantumTask(job_id, **kwargs)[source]
Wrapper class for Amazon Braket
QuantumTask
objects.Create a BraketQuantumTask.
Methods
__init__
(job_id, **kwargs)Create a BraketQuantumTask.
cancel
()Cancel the quantum task.
get_cost
()Return the cost of the job.
metadata
()Return the metadata regarding the job.
queue_position
()Returns queue position from Braket QuantumTask.
result
()Return the results of the job.
retrieve
(job_id, **kwargs)Create a QuantumJob object from a job_id.
status
()Return the status of the job / task , among the values of
JobStatus
.status_final
(status)Returns True if job is in final state.
wait_for_final_state
([timeout, poll_interval])Poll the job status until it progresses to a final state.
Attributes
client
Return the quantum client object.
device
Returns the qbraid QuantumDevice object associated with this job.
id
Return a unique id identifying the job.
provider
Return the quantum client object.
vendor
Get job vendor.
vendor_job_id
Returns the ID assigned by the device vendor