Skip to content

bloqade.gemini.device.simulator_backend.TsimSimulatorBackend

← Module overview

classTsimSimulatorBackendsource

bloqade.gemini.device.simulator_backend.TsimSimulatorBackend

Bases: AbstractSimulatorBackend

Backend that uses Tsim for both sampling and DEM generation.

Signature
class TsimSimulatorBackend(seed: int | None = None, run_detectors: bool = False)

seed is a construction-time root seed. Each seeded sampling request receives the next derived child seed from this backend’s private stream.

Parameters

NameTypeDefaultDescription
seedint | NoneNone
run_detectorsboolFalse

Attributes

NameTypeDefaultDescription
seedint | NoneNone
run_detectorsboolFalse

methodsamplesource

bloqade.gemini.device.simulator_backend.TsimSimulatorBackend.sample

Signature
def sample(physical_squin_kernel: ir.Method, *, shots: int) -> BackendSample

Parameters

NameTypeDescription
physical_squin_kernelir.Method
shotsint

Returns

BackendSample

source