qbraid.runtime.QuantumProvider

class QuantumProvider[source]

Abstract base class for managing interactions and authentication with various quantum service providers.

This class defines the core interface that any quantum provider must implement to facilitate access to their quantum devices via qBraid Runtime. Subclasses should build upon this structure to incorporate any additional steps specific to their quantum platform, such as managing authentication, retrieving available devices, or handling other provider-specific functionality.

Subclass implementations of the QuantumProvider.get_device() and QuantumProvider.get_devices() methods should dynamically construct a detailed TargetProfile for each device. This profile is necessary to instantiate a QuantumDevice and plays a central role in defining the runtime behavior and request structure necessary for submitting and executing quantum programs on that device through your service. To learn more, check out our documentation on setting up a new provider and the components of qBraid Runtime.

__init__()

Methods

__init__()

get_device(device_id)

Retrieves the quantum device corresponding to the specified device ID.

get_devices(**kwargs)

Retrieves a list of available quantum devices, applying any specified filtering criteria.