bloqade.stim.passes.hint_const_in_loops.PropagateInitializerHints
← Module overview
class
method
source
classPropagateInitializerHints¶source
bloqade.stim.passes.hint_const_in_loops.PropagateInitializerHints
Bases: RewriteRule
Propagate hints and types from For loop initializers to body block args and results.
class PropagateInitializerHintsOnly applies to REPEAT-eligible For loops. Also propagates types through downstream GetItem and ilist.New use chains.
methodrewrite_Statement¶source
bloqade.stim.passes.hint_const_in_loops.PropagateInitializerHints.rewrite_Statement
def rewrite_Statement(node: ir.Statement) -> RewriteResultParameters
| Name | Type | Description |
|---|---|---|
node | ir.Statement |
Returns
RewriteResult