API reference
Top-level package — re-exports the public API.
PasqalCloudConnection(username='', password='', project_id='', region='fr', **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.
| PARAMETER | DESCRIPTION |
|---|---|
username
|
Your username in the PASQAL cloud platform.
TYPE:
|
password
|
The password for your PASQAL cloud platform account.
TYPE:
|
project_id
|
The project ID associated to the account.
TYPE:
|
kwargs
|
Additional arguments to provide to the PasqalCloudClient()
TYPE:
|
Initializes a connection to the Pasqal cloud platform.
Source code in pasqal_cloud/pasqal_cloud_connection.py
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.
Source code in pasqal_cloud/pasqal_cloud_connection.py
fetch_available_devices()
Fetches the devices available through this connection.
Source code in pasqal_cloud/pasqal_cloud_connection.py
get_results(batch_id, job_ids=None)
Gets the results for a specific batch.
| PARAMETER | DESCRIPTION |
|---|---|
batch_id
|
The ID that identifies the batch linked to the results.
TYPE:
|
job_ids
|
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.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
RemoteResults
|
The requested results.
TYPE:
|
Source code in pasqal_cloud/pasqal_cloud_connection.py
OVHConnection(**kwargs)
Bases: PasqalCloudConnection
PasqalCloud connection designed for OVH users.
This connection class enables OVH users to access Pasqal Cloud services through pre-configured OVH quantum notebooks. See the OVH product page for more information.
Authentication is handled via a token that must be provided
through the PASQAL_PULSER_ACCESS_TOKEN environment variable.
| RAISES | DESCRIPTION |
|---|---|
MissingEnvironmentVariableError
|
If |
Source code in pasqal_cloud/ovh.py
RemoteMPSBackend(sequence, connection, *, config=None, mimic_qpu=False)
Bases: RemoteEmulatorBackend
Backend for executing quantum programs using the EMU-MPS emulator.
The config supports various fields. For a complete list of accepted
parameters (passed as **kwargs), refer to the official EMU-MPS documentation:
https://pasqal-io.github.io/emulators/latest/emu_mps/api/#mpsconfig
| PARAMETER | DESCRIPTION |
|---|---|
sequence
|
The quantum sequence to execute on the backend.
TYPE:
|
connection
|
An open PasqalCloud connection.
TYPE:
|
config
|
An EmulationConfig object to configure the backend. If not provided, the default configuration will be used.
TYPE:
|
mimic_qpu
|
Whether to mimic the validations required for execution on a QPU.
TYPE:
|
Source code in pasqal_cloud/backends.py
RemoteSVBackend(sequence, connection, *, config=None, mimic_qpu=False)
Bases: RemoteEmulatorBackend
Backend for executing quantum programs using the EMU-SV emulator.
The config supports various fields. For a complete list of accepted
parameters (passed as **kwargs), refer to the official EMU-SV documentation:
https://pasqal-io.github.io/emulators/latest/emu_sv/api/#svconfig
| PARAMETER | DESCRIPTION |
|---|---|
sequence
|
The quantum sequence to execute on the backend.
TYPE:
|
connection
|
An open PasqalCloud connection.
TYPE:
|
config
|
An EmulationConfig object to configure the backend. If not provided, the default configuration will be used.
TYPE:
|
mimic_qpu
|
Whether to mimic the validations required for execution on a QPU.
TYPE:
|
Source code in pasqal_cloud/backends.py
RemoteEmuFreeBackend(sequence, connection, *, config=None, mimic_qpu=False)
Bases: RemoteEmulatorBackend
Backend for executing quantum programs using pulser-simulation (QuTiP).
The config supports various fields. For a complete list of accepted
parameters (passed as **kwargs), refer to the official documentation:
https://pulser.readthedocs.io/en/stable/apidoc/_autosummary/pulser_simulation.QutipConfig.html#pulser_simulation.QutipConfig
| PARAMETER | DESCRIPTION |
|---|---|
sequence
|
The quantum sequence to execute on the backend.
TYPE:
|
connection
|
An open PasqalCloud connection.
TYPE:
|
config
|
An EmulationConfig object to configure the backend. If not provided, the default configuration will be used.
TYPE:
|
mimic_qpu
|
Whether to mimic the validations required for execution on a QPU.
TYPE:
|
