bloqade.gemini.device.simulator_backend.TsimSimulatorBackend
← Module overview
class
method
source
classTsimSimulatorBackend¶source
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
| Name | Type | Default | Description |
|---|---|---|---|
seed | int | None | None | |
run_detectors | bool | False |
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
seed | int | None | None | |
run_detectors | bool | False |
methodsample¶source
bloqade.gemini.device.simulator_backend.TsimSimulatorBackend.sample
Signature
def sample(physical_squin_kernel: ir.Method, *, shots: int) -> BackendSampleParameters
| Name | Type | Description |
|---|---|---|
physical_squin_kernel | ir.Method | |
shots | int |
Returns
BackendSample