iqm.pulla.utils.locate_instructions#
- iqm.pulla.utils.locate_instructions(schedule, instruction_type, min_duration=0, *, channels=None)#
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).
channels (Iterable[str] | None) – Names of channels in
schedule
to search. Iff None, search all the channels.
- Returns:
For each located instruction, a namedtuple containing the channel name, instruction index, and duration.
- Return type: