qbraid.runtime.pasqal.PasqalProvider
- class PasqalProvider(username=None, password=None, project_id=None, token_provider=None, sdk=None)[source]
Implements qBraid’s
QuantumProviderinterface for Pasqal Cloud Services. Authentication mirrors thepasqal_cloud.SDKconstructor: provide ausername/passwordpair, atoken_provider, or set thePASQAL_USERNAME,PASQAL_PASSWORD, andPASQAL_PROJECT_IDenvironment variables.Example
>>> from qbraid.runtime.pasqal import PasqalProvider >>> provider = PasqalProvider( ... username="me@example.com", ... password="...", ... project_id="...", ... ) >>> device = provider.get_device("EMU_FREE")
Initialize the Pasqal provider.
- Parameters:
username (str | None) – Pasqal Cloud Services account username. Falls back to the
PASQAL_USERNAMEenvironment variable.password (str | None) – Pasqal Cloud Services password. Falls back to the
PASQAL_PASSWORDenvironment variable. If left unset and ausernameis provided,pasqal-cloudwill prompt interactively.project_id (str | None) – Pasqal project ID under which batches are submitted. Falls back to the
PASQAL_PROJECT_IDenvironment variable.token_provider (TokenProvider | None) – Custom
pasqal_cloud.TokenProviderfor machine-to-machine or pre-issued-token authentication. Takes precedence over username/password when supplied.sdk (PasqalSDK | None) – Pre-built
pasqal_cloud.SDKinstance. When provided, all other authentication arguments are ignored. Useful for testing and advanced setups.
- Raises:
ValueError – If no authentication material can be resolved.
- __init__(username=None, password=None, project_id=None, token_provider=None, sdk=None)[source]
Initialize the Pasqal provider.
- Parameters:
username (str | None) – Pasqal Cloud Services account username. Falls back to the
PASQAL_USERNAMEenvironment variable.password (str | None) – Pasqal Cloud Services password. Falls back to the
PASQAL_PASSWORDenvironment variable. If left unset and ausernameis provided,pasqal-cloudwill prompt interactively.project_id (str | None) – Pasqal project ID under which batches are submitted. Falls back to the
PASQAL_PROJECT_IDenvironment variable.token_provider (TokenProvider | None) – Custom
pasqal_cloud.TokenProviderfor machine-to-machine or pre-issued-token authentication. Takes precedence over username/password when supplied.sdk (PasqalSDK | None) – Pre-built
pasqal_cloud.SDKinstance. When provided, all other authentication arguments are ignored. Useful for testing and advanced setups.
- Raises:
ValueError – If no authentication material can be resolved.
Methods
__init__([username, password, project_id, ...])Initialize the Pasqal provider.
get_device(device_id)Return a
PasqalDevicefor the given device identifier.get_devices()Return the list of Pasqal devices currently available to the caller.
Attributes
sdkReturn the underlying
pasqal_cloud.SDKinstance.