Skip to content

bloqade.lanes.dialects.stack_move.AwaitMeasure

← Module overview

classAwaitMeasuresource

bloqade.lanes.dialects.stack_move.AwaitMeasure

Bases: ir.Statement

Synchronisation — consumes a measurement future (linear) and produces a 1-D array of measurement results.

class AwaitMeasure

Matches the bytecode’s await_measure: pops a measure future, pushes an array ref containing the measurement results.

Result type is ArrayType[MeasurementResultType, Any, Literal(0)], a 1-D array in the bytecode convention (dim1 == 0). Element ordering is defined by the ArchSpec: for each zone covered by the originating measurement (in order), the results appear in the order produced by arch_spec.yield_zone_locations(zone).

Attributes

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