qbraid.runtime.pasqal.PasqalJob

class PasqalJob(job_id, client=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.

  • client (Union[PasqalCloudClient, SDK, None]) – Authenticated pasqal_cloud client. If omitted, the client is taken from device.client; 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 client nor a usable device.client is 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]) – Authenticated pasqal_cloud client. If omitted, the client is taken from device.client; 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 client nor a usable device.client is 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

client

Return the underlying pasqal_cloud client.

device

Returns the qbraid QuantumDevice object associated with this job.

id

Return a unique id identifying the job.