qbraid.runtime.pasqal.PasqalJob
- class PasqalJob(job_id, client=None, device=None, **kwargs)[source]
Pasqal Cloud Services job class.
Each
PasqalJobis keyed by the underlying Pasqal batch id, which is the unit Pasqal Cloud schedules and reports on. For single- sequence submissions, the batch contains a single job, andresult()returns its counter result; for multi-sequence submissions, results from the batch’s ordered jobs are aggregated.Initialize the Pasqal job.
- Parameters:
job_id (
str) – The Pasqal Cloud batch id this job tracks.client (
Union[PasqalCloudClient,SDK,None]) – Authenticatedpasqal_cloudclient. If omitted, the client is taken fromdevice.client; one of the two must be provided.device (
PasqalDevice|None) – ThePasqalDevicethe job was submitted to.**kwargs (
Any) – Forwarded toQuantumJob.
- Raises:
PasqalJobError – If neither
clientnor a usabledevice.clientis available.
- __init__(job_id, client=None, device=None, **kwargs)[source]
Initialize the Pasqal job.
- Parameters:
job_id (
str) – The Pasqal Cloud batch id this job tracks.client (
Union[PasqalCloudClient,SDK,None]) – Authenticatedpasqal_cloudclient. If omitted, the client is taken fromdevice.client; one of the two must be provided.device (
PasqalDevice|None) – ThePasqalDevicethe job was submitted to.**kwargs (
Any) – Forwarded toQuantumJob.
- Raises:
PasqalJobError – If neither
clientnor a usabledevice.clientis available.
Methods
__init__(job_id[, client, device])Initialize the Pasqal job.
async_result([timeout, poll_interval])Asynchronously wait for the job to reach a final state and return the result.
cancel()Cancel the underlying Pasqal batch.
is_terminal_state()Returns True if job is in final state.
metadata()Return the metadata regarding the job.
result()Return the result of the Pasqal job.
status()Return the current status of the Pasqal job.
wait_for_final_state([timeout, poll_interval])Poll the job status until it progresses to a final state.
Attributes
clientReturn the underlying
pasqal_cloudclient.deviceReturns the qbraid QuantumDevice object associated with this job.
idReturn a unique id identifying the job.