Skip to content

bloqade.stim.passes.hint_const_in_loops.HintConstInLoops

← Module overview

classHintConstInLoopssource

bloqade.stim.passes.hint_const_in_loops.HintConstInLoops

Bases: Pass

Pass that sets const hints inside preserved scf.For loop bodies.

class HintConstInLoops

Composes PropagateInitializerHints (for For-level hint/type propagation) with per-statement hinting rules (HintConstant, HintTupleNew, etc.). Also installs the early-terminating constprop override for scf.For.

methodunsafe_runsource

bloqade.stim.passes.hint_const_in_loops.HintConstInLoops.unsafe_run

def unsafe_run(mt: ir.Method) -> RewriteResult

Parameters

NameTypeDescription
mtir.Method

Returns

RewriteResult

source