Azure Quantum
Pasqal QPUs and emulators are available as a computation service through Azure Quantum (external) . You access Pasqal through an Azure Quantum workspace; authentication, billing, and monitoring all happen within the Azure ecosystem.
This guide walks you through creating an Azure Quantum workspace, adding Pasqal as a provider, and setting up a connection object in the SDK so you can submit jobs.
Available backends
Section titled “Available backends”Create an account and connection
Section titled “Create an account and connection”Follow these steps to provision Pasqal in your Azure Quantum workspace and create a working connection object in the SDK.
Step 1: Create an Azure Quantum workspace
Section titled “Step 1: Create an Azure Quantum workspace”In the Azure portal (external) , search for Azure Quantum and create a new workspace. Select your subscription, resource group, and region. You do not need to add a provider at this stage.
Step 2: Add Pasqal as a provider
Section titled “Step 2: Add Pasqal as a provider”In your workspace, navigate to Providers and add Pasqal. Select the pricing plan (pay-as-you-go). The available Pasqal backends will appear under Targets once provisioned.
Step 3: Retrieve your workspace credentials
Section titled “Step 3: Retrieve your workspace credentials”Note your subscription ID, resource group name, workspace name, and location. These are all available from the workspace overview page in the Azure portal.
Step 4: Create your connection
Section titled “Step 4: Create your connection”When accessing Pasqal through Azure Quantum, you authenticate using an Azure Quantum Workspace object. Pass this workspace to any job submission.
-
Install
Install the required packages to connect and submit jobs:
Terminal window pip install azure-quantum pulser-pasqal -
Create your connection
Initialise an Azure Quantum Workspace object using your credentials. This is your connection — you will pass it to any job submission.
from azure.quantum import Workspaceworkspace = Workspace(subscription_id="YOUR_SUBSCRIPTION_ID",resource_group="YOUR_RESOURCE_GROUP",name="YOUR_WORKSPACE_NAME",location="YOUR_LOCATION", # e.g. "eastus") -
Check available backends
Confirm your connection is working by listing the available Pasqal targets in your workspace:
# list available Pasqal targets in your workspacetargets = workspace.get_targets(provider_id="pasqal")for t in targets:print(t.name, t.current_availability)
Step 5: Submit jobs using any Pasqal library
Section titled “Step 5: Submit jobs using any Pasqal library”Your connection object works with all Pasqal libraries: QoolQit, Pulser, QUBO Solver, MIS, and QEK. You pass it the same way regardless of which library you use.
