Flatten
SelectiveForLoop
Bases: ForLoop
flowchart TD
bloqade.stim.passes.flatten.SelectiveForLoop[SelectiveForLoop]
click bloqade.stim.passes.flatten.SelectiveForLoop href "" "bloqade.stim.passes.flatten.SelectiveForLoop"
ForLoop rewrite that skips REPEAT-eligible outermost loops.
Only the outermost REPEAT-eligible loop is preserved. If a loop is nested inside another REPEAT-eligible loop, it gets unrolled.