qoolqit.devices.device
source 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.
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.
source property Device.specs: dict
source property Device.name: str
source property Device.converter: UnitConverter
source method Device.reset_converter() → None
Resets the unit converter to the default one.
source method Device.set_time_unit(time: float) → None
Changes the unit converter according to a reference time unit.
source method Device.set_energy_unit(energy: float) → None
Changes the unit converter according to a reference energy unit.
source method Device.set_distance_unit(distance: float) → None
Changes the unit converter according to a reference distance unit.
source class MockDevice()
Bases : Device
An ideal device without constraints.
source class AnalogDevice()
Bases : Device
A realistic device with constraints mimicking a real QPU.
source class TestAnalogDevice()
Bases : Device
A realistic device with constraints mimicking a real QPU.