Skip to content

Set observable partial

SetObservablePartial dataclass

SetObservablePartial()

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. The observable index is assigned by a simple counter based on statement order.