Skip to content

Results are limited to Pulser v1.7.2

Product news
You are reading Pulser v1.7.2, an older version of this documentation. Go to the latest version (v1.10.0)

OVHConnection

class pulser_pasqal.OVHConnection(**kwargs)

Bases: PasqalCloud

PasqalCloud connection designed for OVH users.

This connection class enables OVH users to access Pasqal Cloud services. Authentication is handled via a token that must be provided through the PASQAL_PULSER_ACCESS_TOKEN environment variable.

Raises:
  • MissingEnvironmentVariableError – If PASQAL_PULSER_ACCESS_TOKEN

  • environment variable is not set. –

Methods

fetch_available_devices

Fetches the devices available through this connection.

get_results

Gets the results for a specific batch.

submit

Submits the sequence for execution on a remote Pasqal backend.

supports_open_batch

Flag to confirm this class cannot support creating an open batch.

update_sequence_device

Match the Sequence's device with an available one, update it.

Signatures

fetch_available_devices()

Fetches the devices available through this connection.

Return type:

dict[str, Device]

get_results(batch_id, job_ids=None)

Gets the results for a specific batch.

Parameters:
  • batch_id (str) – The ID that identifies the batch linked to the results.

  • connection – The remote connection over which to get the batch’s status and fetch the results.

  • job_ids (list[str] | None, default: None) – If given, specifies which jobs within the batch should be included in the results and in what order. If left undefined, all jobs are included and ordered by date of creation.

Returns:

The requested results.

Return type:

RemoteResults

submit(sequence, wait=False, open=False, batch_id=None, device_type=None, backend_configuration=None, **kwargs)

Submits the sequence for execution on a remote Pasqal backend.

Return type:

RemoteResults

supports_open_batch()

Flag to confirm this class cannot support creating an open batch.

Return type:

bool

update_sequence_device(sequence)

Match the Sequence’s device with an available one, update it.

Parameters:

sequence (Sequence) – The Sequence to check.

Return type:

Sequence

Returns:

The Sequence, with the latest version for the targeted Device.