Skip to content

bloqade.decoders.dialects.immediate_loop.stmts.Repeat

← Module overview

classRepeatsource

bloqade.decoders.dialects.immediate_loop.stmts.Repeat

Bases: ir.Statement

Statement for repeating a zero-argument method a fixed number of times.

class Repeat

Translates 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

NameTypeDefaultDescription
traits—frozenset({lowering.FromPythonCall()})
num_iterationsir.SSAValueinfo.argument(types.Int)
methodir.SSAValueinfo.argument(types.MethodType[[], ReturnT])
resultir.ResultValueinfo.result(ilist.IListType[ReturnT, types.Any])