qbraid.providers.QuantumJob
- class QuantumJob(job_id, vendor_job_id=None, device=None, vendor_job_obj=None, status=None)[source]
Abstract interface for job-like classes.
Methods
__init__
(job_id[, vendor_job_id, device, ...])cancel
()Attempt to cancel the job.
metadata
()Return the metadata regarding the job.
result
()Return the results of the job.
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, wait])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.
vendor_job_id
Returns the ID assigned by the device vendor