stack_instructions

caqtus.shot_compilation.timed_instructions.stack_instructions(
*instructions: TimedInstruction[void],
) TimedInstruction[void]

Stack several instructions along their dtype names.

Parameters:

instructions – A sequence of instructions to stack. They must all have the same length. They must have a structured dtype with named fields.

Returns:

A new instruction with the same length as the input instructions, and a dtype that is the union of the input dtypes.