Skip to content

Execution on Azure Hardware

The executor supports execution on Azure Quantum cloud simulators and hardware. For detailed information please visit: https://azure.microsoft.com/en-us/services/quantum/

Usage

Execution on Azure Quantum requires an Azure account with an active subscription, and an Azure Quantum workspace with the requested backend provider enabled. For more details please visit: https://docs.microsoft.com/en-us/azure/quantum/how-to-create-workspace

{
    "backend_preferences": {
        "backend_service_provider": "Azure Quantum",
        "backend_name": "Name of requested simulator or hardware",
        "credential": {
            "tenant_id": "Azure Tenant ID (from Azure Active Directory)",
            "client_id": "Azure Application (client) ID",
            "client_secret": "Azure Client Secret",
        },
        "location": "Azure region of requested backend",
        "resource_id": "Azure Quantum Workspace Resource ID"
    }
}
from classiq.interface.backend.backend_preferences import (
    AzureCredential,
    AzureBackendPreferences,
)

cred = AzureCredential(
    tenant_id="Azure Tenant ID (from Azure Active Directory)",
    client_id="Azure Application (client) ID",
    client_secret="Azure Client Secret",
)

preferences = AzureBackendPreferences(
    backend_name="Name of requsted simulator or hardware",
    credential=cred,
    location="Azure region of requested backend",
    resource_id="Azure Quantum Workspace Resource ID",
)

Please note, some hardware isn't available all the time. Please check the availability windows with Azure Quantum.