bloqade.gemini.post_processing.build_post_processing
← Module overview
function
source
functionbuild_post_processing¶source
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
| Name | Type | Description |
|---|---|---|
mt | ir.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
| Type | Description |
|---|---|
InterpreterError | If 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. |