OVHConnection
- class pulser_pasqal.OVHConnection(**kwargs)
Bases:
PasqalCloudPasqalCloud 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
Fetches the devices available through this connection.
Gets the results for a specific batch.
Submits the sequence for execution on a remote Pasqal backend.
Flag to confirm this class cannot support creating an open batch.
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:
- 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:
- supports_open_batch()
Flag to confirm this class cannot support creating an open batch.
- Return type:
bool