bloqade.analysis.measure_id.impls.Annotate
← Module overview
class
method
sourcemethod
source
classAnnotate¶source
bloqade.analysis.measure_id.impls.Annotate
Bases: interp.MethodTable
Measure-ID analysis implementations for detector and observable annotations.
class Annotatemethodset_observable¶source
bloqade.analysis.measure_id.impls.Annotate.set_observable
Signature
def set_observable(interp_: MeasurementIDAnalysis, frame: MeasureIDFrame, stmt: annotate.stmts.SetObservable)Record an observable and its measurement IDs.
Parameters
| Name | Type | Description |
|---|---|---|
interp_ | MeasurementIDAnalysis | |
frame | MeasureIDFrame | |
stmt | annotate.stmts.SetObservable |
methodset_detector¶source
bloqade.analysis.measure_id.impls.Annotate.set_detector
Signature
def set_detector(interp_: MeasurementIDAnalysis, frame: MeasureIDFrame, stmt: annotate.stmts.SetDetector)Record a detector and its measurement IDs.
Parameters
| Name | Type | Description |
|---|---|---|
interp_ | MeasurementIDAnalysis | |
frame | MeasureIDFrame | |
stmt | annotate.stmts.SetDetector |