qbraid.runtime.pasqal.PasqalJob
- class PasqalJob(job_id, sdk=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.
sdk (PasqalSDK | None) – Authenticated
pasqal_cloud.SDKinstance. If omitted, the SDK is taken fromdevice.sdk; one of the two must be provided.device (PasqalDevice | None) – The
PasqalDevicethe job was submitted to.**kwargs (Any) – Forwarded to
QuantumJob.
- Raises:
PasqalJobError – If neither
sdknor a usabledevice.sdkis available.
- __init__(job_id, sdk=None, device=None, **kwargs)[source]
Initialize the Pasqal job.
- Parameters:
job_id (str) – The Pasqal Cloud batch id this job tracks.
sdk (PasqalSDK | None) – Authenticated
pasqal_cloud.SDKinstance. If omitted, the SDK is taken fromdevice.sdk; one of the two must be provided.device (PasqalDevice | None) – The
PasqalDevicethe job was submitted to.**kwargs (Any) – Forwarded to
QuantumJob.
- Raises:
PasqalJobError – If neither
sdknor a usabledevice.sdkis available.
Methods
__init__(job_id[, sdk, 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
deviceReturns the qbraid QuantumDevice object associated with this job.
idReturn a unique id identifying the job.
sdkReturn the underlying
pasqal_cloud.SDKinstance.