mqt.core.na.fomac

Reconstruction of NADevice from QDMI’s Device class.

Module Contents

class Device

Bases: mqt.core.fomac.Device

Represents a device with a lattice of traps.

class Lattice

Represents a lattice of traps in the device.

class Vector

Represents a 2D vector.

property x: int

The x-coordinate of the vector.

property y: int

The y-coordinate of the vector.

__eq__(arg: object, /) bool
__ne__(arg: object, /) bool
class Region

Represents a region in the device.

class Size

Represents the size of a region.

property width: int

The width of the region.

property height: int

The height of the region.

__eq__(arg: object, /) bool
__ne__(arg: object, /) bool
property origin: Device

The origin of the region.

property size: Device

The size of the region.

__eq__(arg: object, /) bool
__ne__(arg: object, /) bool
property lattice_origin: Device

The origin of the lattice.

property lattice_vector_1: Device

The first lattice vector.

property lattice_vector_2: Device

The second lattice vector.

property sublattice_offsets: list[Device]

The offsets of the sublattices.

property extent: Device

The extent of the lattice.

__eq__(arg: object, /) bool
__ne__(arg: object, /) bool
property traps: list[Device]

The list of trap positions in the device.

property t1: int

The T1 time of the device.

property t2: int

The T2 time of the device.

static try_create_from_device(device: Device) Device | None

Create NA FoMaC Device from generic FoMaC Device.

Parameters:

device – The generic FoMaC Device to convert.

Returns:

The converted NA FoMaC Device or None if the conversion is not possible.

__eq__(arg: object, /) bool
__ne__(arg: object, /) bool
devices() list[Device]

Returns a list of available devices.