SequencerCompiler

class caqtus.device.sequencer.SequencerCompiler(
device_name: DeviceName,
sequence_context: SequenceContext,
)

Bases: TriggerableDeviceCompiler

Compile parameters for a sequencer device.

class InitializationParameters

Bases: TypedDict

The parameters to pass to the sequencer constructor.

Fields:

time_step: The time step of the sequencer. trigger: The trigger configuration of the sequencer.

compile_initialization_parameters() InitializationParameters

Compile the parameters needed to initialize the sequencer.

Returns:

  • ‘time_step’: The time step of the sequencer, in ns.

  • ’trigger’: The trigger configuration of the sequencer.

Return type:

A dictionary with the following keys

class ShotParameters

Bases: TypedDict

The parameters to pass to the sequencer controller for a shot.

Fields:

sequence: The instructions to execute on the sequencer.

compile_shot_parameters(
shot_context: ShotContext,
) ShotParameters

Evaluates the output for each channel of the sequencer.

compute_trigger(
sequencer_time_step: TimeStep,
shot_context: ShotContext,
) TimedInstruction[bool]

Compile the trigger to generate for the current device.