Skip to content

Results are limited to the current section : Cloud Services

Product news

Target different regions and environments

By default, the connection targets the European (fr) platform. To access the Saudi-Arabia (sa) platform, pass the region parameter:

from pasqal_cloud import PasqalCloudConnection
connection = PasqalCloudConnection(..., region="sa")

Available regions are "fr" (default) and "sa".

This is intended for package developers or users who have been given access to non-prod environments of the Pasqal cloud platform.

To target a specific environment (preprod or dev), instantiate the connection by passing endpoints with a value from pasqal_cloud.endpoints.PASQAL_ENDPOINTS and auth_config with a value from pasqal_cloud.endpoints.AUTH_CONFIG.

The keys follow the format <region>-<env> (e.g. fr-preprod, fr-dev, sa-preprod).

Example targeting the European preprod environment:

from pasqal_cloud import PasqalCloudConnection
from pasqal_cloud.endpoints import PASQAL_ENDPOINTS, AUTH_CONFIG
connection = PasqalCloudConnection(
...,
endpoints=PASQAL_ENDPOINTS["preprod"],
auth_config=AUTH_CONFIG["fr-preprod"]
)

Example targeting the Saudi-Arabia preprod environment:

from pasqal_cloud import PasqalCloudConnection
from pasqal_cloud.endpoints import PASQAL_ENDPOINTS, AUTH_CONFIG
connection = PasqalCloudConnection(
...,
endpoints=PASQAL_ENDPOINTS["sa-preprod"],
auth_config=AUTH_CONFIG["sa-preprod"]
)