Skip to content

bloqade.lanes.dialects.stack_move.SetDetector

← Module overview

classSetDetectorsource

bloqade.lanes.dialects.stack_move.SetDetector

Bases: ir.Statement

Build a detector record from a 1-D array of measurement results. Matches annotate.SetDetector's signature — produces a Detector.

class SetDetector

The array type is tightened to require MeasurementResult elements (the output of AwaitMeasure) and a 1-D shape (dim1=0 per the bytecode convention). Validation of this constraint is the job of type-inference passes, not the decoder.

Attributes

NameTypeDefaultDescription
traits—frozenset({lowering.FromPythonCall()})
arrayir.SSAValueinfo.argument(type=(ArrayType[MeasurementResultType, types.Any, types.Literal(0)]))
resultir.ResultValueinfo.result(DetectorType)