Skip to content

bloqade.gemini.post_processing.build_post_processing

← Module overview

functionbuild_post_processingsource

bloqade.gemini.post_processing.build_post_processing

Signature
def build_post_processing(mt: ir.Method[Params, ReturnType]) -> PostProcessing[ReturnType]

Generate post-processing emitters for raw measurement results.

Parameters

NameTypeDescription
mtir.Method[Params, ReturnType]The entry point of the program.

Returns

(PostProcessing[ReturnType], PostProcessing[ReturnType], PostProcessing[ReturnType])Emitters for user return values, detectors, and observables. Each emitter accepts a two-dimensional array-like object with shape ``(n_shots, n_measurements)`` and yields one value per shot.

Raises

TypeDescription
InterpreterErrorIf any required post-processing value cannot be inferred. That is an abstract-interpretation failure -- ``MeasurementIDAnalysis`` could not resolve a return value, detector, or observable down to concrete measurement records.
source