Resolve set annotate
ResolveSetAnnotate
dataclass
ResolveSetAnnotate(
measure_id_frame: MeasureIDFrame,
obs_idx_frame: ObservableIdxFrame,
)
Bases: RewriteRule
flowchart TD
bloqade.stim.rewrite.resolve_set_annotate.ResolveSetAnnotate[ResolveSetAnnotate]
click bloqade.stim.rewrite.resolve_set_annotate.ResolveSetAnnotate href "" "bloqade.stim.rewrite.resolve_set_annotate.ResolveSetAnnotate"
Expand SetObservable / SetDetector statements that survived the partial rewrites' scf.For-owner guard.
Runs post-MeasurementIDAnalysis. Reads MeasureIdTuple directly from the analysis frame and computes record indices without going through GetRecIdxFromMeasurement placeholders. Applicable when concrete RawMeasureId (or MeasureIdBool) entries survive in frame — true for scf.For result SSAs consumed outside the loop. Observable indices come from ObservableIdxAnalysis to share a single namespace with SetObservablePartial.