Skip to content

Azure

AzureBackendPreferences

Bases: BackendPreferences

This class inherits from BackendPreferences. This is where you specify Azure Quantum preferences. See usage in the Azure Backend Documentation.

Attributes:

Name Type Description
location str

Azure personal resource region. Defaults to "East US".

credentials Optional[AzureCredential]

The service principal credential to access personal quantum workspace. Defaults to None.

ionq_error_mitigation_flag Optional[bool]

Error mitigation configuration upon running on IonQ through Azure. Defaults to False.

Attributes:

Name Type Description
backend_service_provider AZURE_QUANTUM
credentials Optional[AzureCredential]
ionq_error_mitigation_flag Optional[bool]
location str
run_through_classiq bool

Returns: True if there are no Azure Credentials.

backend_service_provider

backend_service_provider: AZURE_QUANTUM = Field(
    default=AZURE_QUANTUM
)

credentials

credentials: Optional[AzureCredential] = Field(
    default=None,
    description="The service principal credential to access personal quantum workspace",
)

ionq_error_mitigation_flag

ionq_error_mitigation_flag: Optional[bool] = Field(
    default=False,
    description="Error mitigation configuration upon running on IonQ through Azure.",
)

location

location: str = Field(
    default="East US",
    description="Azure personal resource region",
)

run_through_classiq

run_through_classiq: bool

Returns: True if there are no Azure Credentials. Therefore you will be running through Classiq's credentials.

AzureBackendPreferences

Bases: BackendPreferences

This class inherits from BackendPreferences. This is where you specify Azure Quantum preferences. See usage in the Azure Backend Documentation.

Attributes:

Name Type Description
location str

Azure personal resource region. Defaults to "East US".

credentials Optional[AzureCredential]

The service principal credential to access personal quantum workspace. Defaults to None.

ionq_error_mitigation_flag Optional[bool]

Error mitigation configuration upon running on IonQ through Azure. Defaults to False.

Attributes:

Name Type Description
backend_service_provider AZURE_QUANTUM
credentials Optional[AzureCredential]
ionq_error_mitigation_flag Optional[bool]
location str
run_through_classiq bool

Returns: True if there are no Azure Credentials.

backend_service_provider

backend_service_provider: AZURE_QUANTUM = Field(
    default=AZURE_QUANTUM
)

credentials

credentials: Optional[AzureCredential] = Field(
    default=None,
    description="The service principal credential to access personal quantum workspace",
)

ionq_error_mitigation_flag

ionq_error_mitigation_flag: Optional[bool] = Field(
    default=False,
    description="Error mitigation configuration upon running on IonQ through Azure.",
)

location

location: str = Field(
    default="East US",
    description="Azure personal resource region",
)

run_through_classiq

run_through_classiq: bool

Returns: True if there are no Azure Credentials. Therefore you will be running through Classiq's credentials.

AzureCredential

AzureCredential(**data: Any)

Bases: BaseSettings

Represents the credentials and configuration required to authenticate with Azure services.

Attributes:

Name Type Description
tenant_id str

Azure Tenant ID used to identify the directory in which the application is registered.

client_id str

Azure Client ID, also known as the application ID, which is used to authenticate the application.

client_secret str

Azure Client Secret associated with the application, used for authentication.

resource_id PydanticAzureResourceIDType

Azure Resource ID, including the subscription ID, resource group, and workspace, typically used for personal resources.

Attributes:

Name Type Description
client_id str
client_secret str
model_config
resource_id PydanticAzureResourceIDType
tenant_id str

client_id

client_id: str = Field(description='Azure Client ID')

client_secret

client_secret: str = Field(
    description="Azure Client Secret"
)

model_config

model_config = SettingsConfigDict(
    title="Azure Service Principal Credential",
    env_prefix="AZURE_",
    case_sensitive=False,
    extra="allow",
)

resource_id

resource_id: PydanticAzureResourceIDType = Field(
    description="Azure Resource ID (including Azure subscription ID, resource group and workspace), for personal resource"
)

tenant_id

tenant_id: str = Field(description='Azure Tenant ID')

AzureQuantumBackendNames

Bases: StrEnum

AzureQuantum backend names which Classiq Supports running on.

Attributes:

Name Type Description
IONQ_ARIA_1
IONQ_ARIA_2
IONQ_QPU
IONQ_QPU_FORTE
IONQ_SIMULATOR
MICROSOFT_ESTIMATOR
MICROSOFT_FULLSTATE_SIMULATOR
QCI_MACHINE1
QCI_NOISY_SIMULATOR
QCI_SIMULATOR
QUANTINUUM_API_VALIDATOR1_1
QUANTINUUM_API_VALIDATOR1_2
QUANTINUUM_API_VALIDATOR2_1
QUANTINUUM_QPU1_1
QUANTINUUM_QPU1_2
QUANTINUUM_QPU2
QUANTINUUM_SIMULATOR1_1
QUANTINUUM_SIMULATOR1_2
QUANTINUUM_SIMULATOR2
RIGETTI_ANKAA2
RIGETTI_ANKAA9
RIGETTI_SIMULATOR

IONQ_ARIA_1

IONQ_ARIA_1 = 'ionq.qpu.aria-1'

IONQ_ARIA_2

IONQ_ARIA_2 = 'ionq.qpu.aria-2'

IONQ_QPU

IONQ_QPU = 'ionq.qpu'

IONQ_QPU_FORTE

IONQ_QPU_FORTE = 'ionq.qpu.forte-1'

IONQ_SIMULATOR

IONQ_SIMULATOR = 'ionq.simulator'

MICROSOFT_ESTIMATOR

MICROSOFT_ESTIMATOR = 'microsoft.estimator'

MICROSOFT_FULLSTATE_SIMULATOR

MICROSOFT_FULLSTATE_SIMULATOR = (
    "microsoft.simulator.fullstate"
)

QCI_MACHINE1

QCI_MACHINE1 = 'qci.machine1'

QCI_NOISY_SIMULATOR

QCI_NOISY_SIMULATOR = 'qci.simulator.noisy'

QCI_SIMULATOR

QCI_SIMULATOR = 'qci.simulator'

QUANTINUUM_API_VALIDATOR1_1

QUANTINUUM_API_VALIDATOR1_1 = 'quantinuum.sim.h1-1sc'

QUANTINUUM_API_VALIDATOR1_2

QUANTINUUM_API_VALIDATOR1_2 = 'quantinuum.sim.h1-2sc'

QUANTINUUM_API_VALIDATOR2_1

QUANTINUUM_API_VALIDATOR2_1 = 'quantinuum.sim.h2-1sc'

QUANTINUUM_QPU1_1

QUANTINUUM_QPU1_1 = 'quantinuum.qpu.h1-1'

QUANTINUUM_QPU1_2

QUANTINUUM_QPU1_2 = 'quantinuum.qpu.h1-2'

QUANTINUUM_QPU2

QUANTINUUM_QPU2 = 'quantinuum.qpu.h2-1'

QUANTINUUM_SIMULATOR1_1

QUANTINUUM_SIMULATOR1_1 = 'quantinuum.sim.h1-1e'

QUANTINUUM_SIMULATOR1_2

QUANTINUUM_SIMULATOR1_2 = 'quantinuum.sim.h1-2e'

QUANTINUUM_SIMULATOR2

QUANTINUUM_SIMULATOR2 = 'quantinuum.sim.h2-1e'

RIGETTI_ANKAA2

RIGETTI_ANKAA2 = 'rigetti.qpu.ankaa-2'

RIGETTI_ANKAA9

RIGETTI_ANKAA9 = 'rigetti.qpu.ankaa-9q-1'

RIGETTI_SIMULATOR

RIGETTI_SIMULATOR = 'rigetti.sim.qvm'