Skip to content

Set observable partial

SetObservablePartial dataclass

SetObservablePartial(obs_idx_frame: ObservableIdxFrame)

Bases: RewriteRule


              flowchart TD
              bloqade.stim.rewrite.set_observable_partial.SetObservablePartial[SetObservablePartial]

              

              click bloqade.stim.rewrite.set_observable_partial.SetObservablePartial href "" "bloqade.stim.rewrite.set_observable_partial.SetObservablePartial"
            

Rewrite SetObservable using GetRecIdxFromMeasurement placeholders.

Instead of computing record indices from analysis results immediately, this injects GetRecIdxFromMeasurement statements that will be resolved post-analysis. Observable indices come from ObservableIdxAnalysis so partial and resolve rewrites share a single namespace.