iqm.cpc.compiler.dd.insert_dd_sequences

iqm.cpc.compiler.dd.insert_dd_sequences#

iqm.cpc.compiler.dd.insert_dd_sequences(builder, schedule, strategy, *, per_wait_gate_sequences=None)#

Insert dynamical decoupling sequences into the given schedule.

Note

Modifies schedule in-place.

Note

Assumes that the PRX implementation used only applies non-wait instructions on a single drive channel, and that the PRX duration does not depend on its arguments.

Parameters:
  • builder (ScheduleBuilder) – Schedule builder used to build schedule, containing channel information.

  • schedule (Schedule) – Schedule to modify.

  • strategy (DDStrategy) – Dynamical decoupling strategy to use.

  • per_wait_gate_sequences (dict[tuple[str, int], Iterable[DDGateSequence]] | None) – Optional gate sequences for individual eligible Wait instructions, keyed by (channel_name, instruction_index) in schedule. A list overrides strategy.gate_sequences for that Wait, an empty list leaves that Wait without DD, and Wait instructions not in the mapping use strategy.gate_sequences.

Return type:

None