iqm.cpc.compiler.dd.identify_idle_windows_for_settings#
- iqm.cpc.compiler.dd.identify_idle_windows_for_settings(schedules, context)#
Enumerate the idle windows that the DD pass will see in the given pre-DD schedules.
Use this when compiling in parts (see the module docstring): run the stages up to the
dynamical_decouplingstage, call this function on the returned schedules and context, and use the keys of the returned windows to build anIdleDDMap.The window enumeration options (
DDStrategy_merge_contiguous_waits,DDStrategy_skip_leading_wait,DDStrategy_skip_trailing_wait) are read fromcontext["settings"]in the same way as for theapply_dd_strategy()pass, so the keys match the windows the pass will apply the map to.- Parameters:
- Returns:
IdleWindowlist, sorted byIdleWindowKey.- Return type: