Skip to content

bloqade.gemini.device.simulator.GeminiLogicalSimulatorTask

← Module overview

classGeminiLogicalSimulatorTasksource

bloqade.gemini.device.simulator.GeminiLogicalSimulatorTask

Bases: _SimulatorTaskBase[RetType], Generic[RetType]

A compiled simulation task for the Gemini logical simulator.

Signature
class GeminiLogicalSimulatorTask(logical_squin_kernel: ir.Method[[], RetType], noise_model: LogicalNoiseModelABC, physical_arch_spec: ArchSpec, physical_move_kernel: ir.Method[[], RetType], _post_processing: atom.PostProcessing[RetType], _simulator_backend: AbstractSimulatorBackend = TsimSimulatorBackend())

Created by GeminiLogicalSimulator.task. The squin-to-move compilation and post-processing extraction are performed eagerly at construction time. Simulation artifacts (physical squin kernel, stim circuits, samplers, detector error model) are computed lazily on first access since they depend on the noise model.

Parameters

NameTypeDefaultDescription
logical_squin_kernelir.Method[[], RetType]required
noise_modelLogicalNoiseModelABCrequired
physical_arch_specArchSpecrequired
physical_move_kernelir.Method[[], RetType]required
_post_processingatom.PostProcessing[RetType]required
_simulator_backendAbstractSimulatorBackendTsimSimulatorBackend()

Attributes

NameTypeDefaultDescription
logical_squin_kernelir.Method[[], RetType]requiredThe input logical squin kernel to be executed on the Gemini architecture.
noise_modelLogicalNoiseModelABCrequiredThe noise model to be inserted into the physical squin kernel.
physical_arch_specArchSpecfield(repr=False)The physical architecture specification.
physical_move_kernelir.Method[[], RetType]field(repr=False)The physical move kernel that executes the logical squin kernel on the physical architecture.

propertyphysical_squin_kernelsource

bloqade.gemini.device.simulator.GeminiLogicalSimulatorTask.physical_squin_kernel

physical_squin_kernel: ir.Method[[], RetType]

The physical squin kernel with noise channels.

source

propertynoiseless_physical_squin_kernelsource

bloqade.gemini.device.simulator.GeminiLogicalSimulatorTask.noiseless_physical_squin_kernel

noiseless_physical_squin_kernel: ir.Method[[], RetType]

The physical squin kernel without noise channels.

source