bloqade.decoders.dialects.annotate.stmts.SetDetector
← Module overview
class
classSetDetector¶source
bloqade.decoders.dialects.annotate.stmts.SetDetector
Bases: ir.Statement
Statement for defining a detector from measurement results.
class SetDetectorA detector is defined by a set of measurement results and optional coordinates for visualization/debugging purposes.
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
traits | — | frozenset({lowering.FromPythonCall()}) | |
measurements | ir.SSAValue | info.argument(ilist.IListType[MeasurementResultType, types.Any]) | |
coordinates | ir.SSAValue | info.argument(ilist.IListType[types.Float, types.Any]) | |
result | ir.ResultValue | info.result(DetectorType) |