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
schedulein-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
Waitinstructions, keyed by(channel_name, instruction_index)inschedule. A list overridesstrategy.gate_sequencesfor thatWait, an empty list leaves thatWaitwithout DD, andWaitinstructions not in the mapping usestrategy.gate_sequences.
- Return type:
None