Instrument types

Instrument type enums and classes.

class qblox_instruments.types.TypeEnum(value)[source]

Bases: enum.Enum

Type base class that arranges child enum string representations.

class qblox_instruments.InstrumentClass(value)[source]

Bases: qblox_instruments.types.TypeEnum

Instrument class enum.

PULSAR = 'Pulsar'
CLUSTER = 'Cluster'
class qblox_instruments.InstrumentType(value)[source]

Bases: qblox_instruments.types.TypeEnum

Instrument/module type enum.

MM = 'MM'
QCM = 'QCM'
QRM = 'QRM'
class qblox_instruments.PulsarType(value)[source]

Bases: qblox_instruments.types.TypeEnum

Pulsar module type enum.

PULSAR_QCM = 'Pulsar QCM'
PULSAR_QRM = 'Pulsar QRM'
class qblox_instruments.ClusterType(value)[source]

Bases: qblox_instruments.types.TypeEnum

Cluster module type enum.

CLUSTER_QCM = 'Cluster QCM'
CLUSTER_QCM_RF = 'Cluster QCM-RF'
CLUSTER_QRM = 'Cluster QRM'
CLUSTER_QRM_RF = 'Cluster QRM-RF'
class qblox_instruments.TypeHandle(instrument: Union[qblox_instruments.types.PulsarType, qblox_instruments.types.ClusterType, str])[source]

Bases: object

Instrument type handler class.

__init__(instrument: Union[qblox_instruments.types.PulsarType, qblox_instruments.types.ClusterType, str])[source]

Create instrument type handler object.

Parameters

instrument (Union[PulsarType, ClusterType, str]) – Instrument/module type specification.

property instrument_class: qblox_instruments.types.InstrumentClass

Get instrument class (e.g. Pulsar, Cluster).

Returns

Instrument class

Return type

InstrumentClass

property instrument_type: qblox_instruments.types.InstrumentType

Get instrument type (e.g. MM, QRM, QCM).

Returns

Instrument type

Return type

InstrumentType

property is_mm_type: bool

Return if module is of type MM.

Returns

True if module is of type MM.

Return type

bool

property is_qcm_type: bool

Return if module is of type QCM.

Returns

True if module is of type QCM.

Return type

bool

property is_qrm_type: bool

Return if module is of type QRM.

Returns

True if module is of type QRM.

Return type

bool

property is_rf_type: bool

Return if module is of type QCM-RF or QRM-RF.

Returns

True if module is of type QCM-RF or QRM-RF.

Return type

bool