qbraid.runtime.azure.AzureQuantumProvider

class AzureQuantumProvider(workspace=None, credential=None)[source]

Manages interactions with Azure Quantum services, encapsulating API calls, handling Azure Storage, and managing sessions.

workspace

The configured Azure Quantum workspace.

Type:

Workspace

Initializes an AzureQuantumProvider instance with a specified Workspace. It sets the credential for the workspace if it is not already set and a credential is provided.

Parameters:
  • workspace (Workspace, optional) – An Azure Quantum Workspace object. If not provided, will be initialized with the provided credential or from environment variables.

  • credential (ClientSecretCredential, optional) – Optional credential to be used if the workspace lacks one.

__init__(workspace=None, credential=None)[source]

Initializes an AzureQuantumProvider instance with a specified Workspace. It sets the credential for the workspace if it is not already set and a credential is provided.

Parameters:
  • workspace (Workspace, optional) – An Azure Quantum Workspace object. If not provided, will be initialized with the provided credential or from environment variables.

  • credential (ClientSecretCredential, optional) – Optional credential to be used if the workspace lacks one.

Methods

__init__([workspace, credential])

Initializes an AzureQuantumProvider instance with a specified Workspace.

get_device(device_id)

Get a specific Azure Quantum device.

get_devices(**kwargs)

Get all Azure Quantum devices.

Attributes

workspace

Get the Azure Quantum workspace.