Source code for quantify_scheduler.backends.qblox.enums
# Repository: https://gitlab.com/quantify-os/quantify-scheduler# Licensed according to the LICENCE file on the main branch"""Enums used by Qblox backend."""from__future__importannotationsfromenumimportEnum
[docs]classChannelMode(str,Enum):"""Enum for the channel mode of the Sequencer."""
"""Setting for delay compensation equal to FIR filter"""def__int__(self)->int:"""Enable direct conversion to int."""returnself.valuedef__index__(self)->int:"""Support index operations."""returnself.valuedef__and__(self,other:DistortionCorrectionLatencyEnum|int)->int:"""Support bitwise AND operations."""ifisinstance(other,Enum):returnself.value&other.valuereturnself.value&otherdef__rand__(self,other:DistortionCorrectionLatencyEnum|int)->int:"""Support bitwise AND operations, other order."""returnself.__and__(other)def__or__(self,other:DistortionCorrectionLatencyEnum|int)->int:"""Support bitwise OR operations."""ifisinstance(other,Enum):returnself.value|other.valuereturnself.value|otherdef__ror__(self,other:DistortionCorrectionLatencyEnum|int)->int:"""Support bitwise OR operations, other order."""returnself.__or__(other)
[docs]classLoCalEnum(str,Enum):"""Settings related to the LO part of automatic mixer corrections."""