Skip to content

bloqade.gemini.device.logical.result.GeminiLogicalResult

← Module overview

classGeminiLogicalResultsource

bloqade.gemini.device.logical.result.GeminiLogicalResult

Bases: Result, Generic[RetType]

Result view over stored Gemini logical shots.

class GeminiLogicalResult

Merge-oriented methods assume each selected task ID has the same subtask structure. Post-processing is applied to each selected subtask’s flat shot array.

Raw SLM result properties reconstruct their measurement mapping by compiling the stored logical kernel with the locally installed Bloqade Lanes compiler and Gemini physical architecture. The reconstructed mapping is valid only when those match the compiler and architecture used for remote execution.

Attributes

NameTypeDescription
storageStorageBackendStorage backend that holds shots and task metadata.
shot_filterShotFilterFilter used when reading shots and deriving subtask scope. Defaults to the DETECTED frame type.

methodpostprocessing_functionssource

bloqade.gemini.device.logical.result.GeminiLogicalResult.postprocessing_functions

def postprocessing_functions() -> dict[int, Callable | None]

Build legacy compact-shot postprocessors from stored programs.

This method preserves the original GeminiLogicalResult API for result stores whose bitstrings are already in compact physical measurement order. Raw 160-site SLM frames use _slm_postprocessing_functions instead.

Returns

dict[int, Callable | None]

source

propertymeasurementssource

bloqade.gemini.device.logical.result.GeminiLogicalResult.measurements

measurements: Sequence[Sequence[Sequence[bool]]]

True indicates a projective measurement of the |1> state or atom loss; False indicates a projective measurement of the |0> state.

source

methodlogical_resultssource

bloqade.gemini.device.logical.result.GeminiLogicalResult.logical_results

Signature
def logical_results(verify: bool = True, postprocessing_functions: dict[int, Callable[[np.ndarray], RetType] | None] | None = None) -> list[RetType | np.ndarray]

Return legacy post-processed results grouped by merged subtask.

This method preserves the original compact-shot result API. Each postprocessor receives the stored shot array directly; raw 160-site SLM results should instead be accessed through return_values and the other canonical result properties.

Parameters

NameTypeDefaultDescription
verifyboolTrueValidate that selected task IDs can be merged.
postprocessing_functionsdict[int, Callable[[np.ndarray], RetType] | None] | NoneNoneOptional mapping from program index to a function accepting that subtask's stored shot array. When omitted, legacy postprocessors are generated from the stored logical kernels.

Returns

list[RetType | np.ndarray]

source

propertyreturn_valuessource

bloqade.gemini.device.logical.result.GeminiLogicalResult.return_values

return_values: Sequence[Sequence[RetType]]

Return canonical logical values reconstructed from raw SLM shots.

Results are grouped as subtask -> shot -> kernel return value. Use logical_results only for the legacy compact-shot API.

source

propertydetectorssource

bloqade.gemini.device.logical.result.GeminiLogicalResult.detectors

detectors: Sequence[Sequence[Sequence[bool]]]
source

propertyobservablessource

bloqade.gemini.device.logical.result.GeminiLogicalResult.observables

observables: Sequence[Sequence[Sequence[bool]]]
source

propertyfilling_at_startsource

bloqade.gemini.device.logical.result.GeminiLogicalResult.filling_at_start

filling_at_start: Sequence[Sequence[Sequence[bool]]]

True indicates that the atom was present during the sorted frame; False indicates that it was not.

source

methodpostselect_on_fully_filledsource

bloqade.gemini.device.logical.result.GeminiLogicalResult.postselect_on_fully_filled

def postselect_on_fully_filled() -> GeminiLogicalResult[RetType]

Return a result view containing only fully filled shots.

The predicate reads the SORTED SLM frame and projects it through the stored kernel’s SLM-to-raw mapping. A shot is kept only when every mapped physical-measurement bit is true. The returned result preserves this result’s output frame selection, which is normally DETECTED.

Returns

GeminiLogicalResult[RetType]

source