qbraid.runtime.TargetProfile

class TargetProfile(device_id, device_type, action_type=None, num_qubits=None, program_spec=None, provider_name=None, **kwargs)[source]

Encapsulates configuration settings for a quantum device, presenting them as a read-only dictionary. This class primarily stores and manages settings that are crucial for the proper functioning and integration of quantum devices within a specified environment.

_data

Internal storage for the configuration properties.

Type:

dict

Initializes a new instance of the TargetProfile, setting up configuration according to the provided parameters.

Parameters:
  • device_id (str) – Unique identifier for the device.

  • device_type (DeviceType) – Type of the quantum device, instance of DeviceType.

  • action_type (optional, DeviceActionType) – Classification of quantum program type compatible with the device, instance of DeviceActionType.

  • num_qubits (int) – Number of qubits supported by the device.

  • program_spec (optional, ProgramSpec) – Specification for the program, encapsulating program type and other metadata.

  • provider_name (optional, str) – Name of the quantum device provider.

Raises:
  • TypeError – If any of the inputs are not of the expected type.

  • ValueError – If the device type or action type is invalid.

__init__(device_id, device_type, action_type=None, num_qubits=None, program_spec=None, provider_name=None, **kwargs)[source]

Initializes a new instance of the TargetProfile, setting up configuration according to the provided parameters.

Parameters:
  • device_id (str) – Unique identifier for the device.

  • device_type (DeviceType) – Type of the quantum device, instance of DeviceType.

  • action_type (optional, DeviceActionType) – Classification of quantum program type compatible with the device, instance of DeviceActionType.

  • num_qubits (int) – Number of qubits supported by the device.

  • program_spec (optional, ProgramSpec) – Specification for the program, encapsulating program type and other metadata.

  • provider_name (optional, str) – Name of the quantum device provider.

Raises:
  • TypeError – If any of the inputs are not of the expected type.

  • ValueError – If the device type or action type is invalid.

Methods

__init__(device_id, device_type[, ...])

Initializes a new instance of the TargetProfile, setting up configuration according to the provided parameters.

get(k[,d])

items()

keys()

values()