iqm.cpc.compiler.dd.merge_wait_instructions_in_schedule#
- iqm.cpc.compiler.dd.merge_wait_instructions_in_schedule(builder, schedule)#
Merge adjacent
Waitinstructions in the drive channels of the given schedule.Makes a deep copy
scheduleand iterates through its drive channels to merge adjacentWaitinstructions into a singleWaitinstruction.Also merges
Waitinstructions if they are separated byBlockinstructions.- Parameters:
builder (ScheduleBuilder) – Provides channel information.
schedule (Schedule) – Schedule to process.
- Returns:
Deep copy of
schedulewithWaitinstructions merged.- Return type:
Schedule