qbraid.runtime.pasqal.PasqalJob

class PasqalJob(job_id, sdk=None, device=None, **kwargs)[source]

Pasqal Cloud Services job class.

Each PasqalJob is 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, and result() 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.SDK instance. If omitted, the SDK is taken from device.sdk; one of the two must be provided.

  • device (PasqalDevice | None) – The PasqalDevice the job was submitted to.

  • **kwargs (Any) – Forwarded to QuantumJob.

Raises:

PasqalJobError – If neither sdk nor a usable device.sdk is 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.SDK instance. If omitted, the SDK is taken from device.sdk; one of the two must be provided.

  • device (PasqalDevice | None) – The PasqalDevice the job was submitted to.

  • **kwargs (Any) – Forwarded to QuantumJob.

Raises:

PasqalJobError – If neither sdk nor a usable device.sdk is 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

device

Returns the qbraid QuantumDevice object associated with this job.

id

Return a unique id identifying the job.

sdk

Return the underlying pasqal_cloud.SDK instance.