iqm.pulla.utils.locate_instructions

iqm.pulla.utils.locate_instructions#

iqm.pulla.utils.locate_instructions(schedule, instruction_type, min_duration=0)#

Locate specific instructions in a schedule.

Parameters:
  • schedule (Schedule) – The schedule to search.

  • instruction_type (type[Instruction]) – The type of the instruction to search for.

  • min_duration (int) – The minimum duration of the instruction to search for (in samples).

Returns:

For each located instruction, a namedtuple containing the channel name, instruction index, and duration.

Return type:

list[InstructionLocation]