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)

PasqalCloud

class pulser_pasqal.PasqalCloud(username='', password='', project_id='', **kwargs)

Bases: RemoteConnection

Manager of the connection to PASQAL’s cloud platform.

The cloud connection enables to run sequences on simulators or on real QPUs.

Parameters:
  • username (str, default: '') – Your username in the PASQAL cloud platform.

  • password (str, default: '') – The password for your PASQAL cloud platform account.

  • project_id (str, default: '') – The project ID associated to the account.

  • kwargs (Any) – Additional arguments to provide to the pasqal_cloud.SDK()

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 can 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 can 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.