Skip to content
Pasqal Documentation

qoolqit.devices.device

module
qoolqit.devices.device

Classes

  • Device Abstract base class for a Device in QoolQit.

  • MockDevice An ideal device without constraints.

  • AnalogDevice A realistic device with constraints mimicking a real QPU.

  • TestAnalogDevice A realistic device with constraints mimicking a real QPU.

class
Device ()

Bases : ABC

Abstract base class for a Device in QoolQit.

The device in QoolQit holds a Pulser device, and all the logic is based on that. Defining a new device for usage in QoolQit should be done by inheriting from this base class and overriding the _device private property with the corresponding Pulser device.

Methods

  • reset_converter Resets the unit converter to the default one.

  • set_time_unit Changes the unit converter according to a reference time unit.

  • set_energy_unit Changes the unit converter according to a reference energy unit.

  • set_distance_unit Changes the unit converter according to a reference distance unit.

property
specs : dict

property
name : str

property
converter : UnitConverter

method
reset_converter () → None

Resets the unit converter to the default one.

method
set_time_unit (time: float) → None

Changes the unit converter according to a reference time unit.

method
set_energy_unit (energy: float) → None

Changes the unit converter according to a reference energy unit.

method
set_distance_unit (distance: float) → None

Changes the unit converter according to a reference distance unit.

class
MockDevice ()

Bases : Device

An ideal device without constraints.

class
AnalogDevice ()

Bases : Device

A realistic device with constraints mimicking a real QPU.

class
TestAnalogDevice ()

Bases : Device

A realistic device with constraints mimicking a real QPU.