iqm.cpc.compiler.dd.merge_wait_instructions_in_schedule#
- iqm.cpc.compiler.dd.merge_wait_instructions_in_schedule(builder, schedule)#
Merge adjacent
Wait
instructions in the drive channels of the given schedule.Makes a deep copy
schedule
and iterates through its drive channels to merge adjacentWait
instructions into a singleWait
instruction.Also merges
Wait
instructions if they are separated byBlock
instructions.- Parameters:
builder (ScheduleBuilder) – Provides channel information.
schedule (Schedule) – Schedule to process.
- Returns:
Deep copy of
schedule
withWait
instructions merged.- Return type:
Schedule