Skip to content

bloqade.analysis.measure_id.impls.Annotate

← Module overview

classAnnotatesource

bloqade.analysis.measure_id.impls.Annotate

Bases: interp.MethodTable

Measure-ID analysis implementations for detector and observable annotations.

class Annotate

methodset_observablesource

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

NameTypeDescription
interp_MeasurementIDAnalysis
frameMeasureIDFrame
stmtannotate.stmts.SetObservable
source

methodset_detectorsource

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

NameTypeDescription
interp_MeasurementIDAnalysis
frameMeasureIDFrame
stmtannotate.stmts.SetDetector
source