Skip to content

bloqade.gemini.device.logical.utils.get_slm_mapping_postprocessing

← Module overview

functionget_slm_mapping_postprocessingsource

bloqade.gemini.device.logical.utils.get_slm_mapping_postprocessing

Signature
def get_slm_mapping_postprocessing(sim_kernel: ir.Method[..., RetType]) -> tuple[Callable[..., Any], atom.PostProcessing[RetType]]

Create a result postprocessor for full Zone-0 SLM shots.

Result post-processing is two steps, and this returns both::

physical_bitstring = [frame_data[i] for i in shot_remapping] user_output = post_processing.emit_return([physical_bitstring])

The returned post-processing object comes from build_post_processing, which abstract-interprets the user’s kernel once to reconstruct its return value and every detector and observable annotation.

Parameters

NameTypeDescription
sim_kernelir.Method[..., RetType]

Returns

tuple[Callable[..., Any], atom.PostProcessing[RetType]]

Warning

This reconstructs the physical measurement mapping by compiling the stored logical kernel with the locally installed Bloqade Lanes compiler and Gemini architecture. The result is valid only when they match the compiler and architecture used to execute the remote task. The exact remote physical compilation artifact is not currently stored with the result.

source