bloqade.decoders.dialects.immediate_loop.stmts.Repeat
← Module overview
class
classRepeat¶source
bloqade.decoders.dialects.immediate_loop.stmts.Repeat
Bases: ir.Statement
Statement for repeating a zero-argument method a fixed number of times.
class RepeatTranslates directly to stim’s REPEAT block. The method being passed in must take no arguments. Returns an IList whose element type matches the method’s return type.
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
traits | — | frozenset({lowering.FromPythonCall()}) | |
num_iterations | ir.SSAValue | info.argument(types.Int) | |
method | ir.SSAValue | info.argument(types.MethodType[[], ReturnT]) | |
result | ir.ResultValue | info.result(ilist.IListType[ReturnT, types.Any]) |