iqm.cpc.compiler.dd.merge_wait_instructions_in_schedule

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 adjacent Wait instructions into a single Wait instruction.

Also merges Wait instructions if they are separated by Block instructions.

Parameters:
  • builder (ScheduleBuilder) – Provides channel information.

  • schedule (Schedule) – Schedule to process.

Returns:

Deep copy of schedule with Wait instructions merged.

Return type:

Schedule