Constant

class caqtus.device.sequencer.channel_commands.Constant(value: Expression)

Bases: ChannelOutput

Indicates that the output should be held at a constant value during the shot.

The constant value is obtained by evaluating the value stored in the constant output within the shot context. Note that constant refers to a value constant in shot time, not necessarily constant across shots.

evaluate(
required_time_step: TimeStep,
prepend: int,
append: int,
shot_context: ShotContext,
) DimensionedSeries

Evaluate the output of a channel with the required parameters.

Parameters:
  • required_time_step – The time step in which to evaluate the output, in ns.

  • prepend – The number of time steps to add at the beginning of the output.

  • append – The number of time steps to add at the end of the output.

  • shot_context – Contains information about the current to evaluate the output.