Skip to content

bloqade.lanes.dialects.stack_move.SetObservable

← Module overview

classSetObservablesource

bloqade.lanes.dialects.stack_move.SetObservable

Bases: ir.Statement

Build an observable record from a 1-D array of measurement results. Matches annotate.SetObservable's signature — produces an Observable.

class SetObservable

The array type is tightened to require MeasurementResult elements 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(ObservableType)