SDK
Python in
.thx out
PyTorch-native SNNs. Deterministic simulator. Compiler. pip install thrindex
Author
import thrindex.snn as snn
Same muscle memory as torch.nm
Canonical LIF parameters
No hidden global RNG
Spike encoders
Convert input tensors into spike trains with rate, latency, or delta coding in one call.
Surrogate gradients
Turn tensors into spikes with rate, latency or delta coding.
Rate loss
Cross-entropy on mean firing rates with a standard PyTorch optimizer.
Compile
thx.compile(model, "model.thx")
Graph IR in, sealed artifact out.
Alpha resolved in Rust
CRC32 integrity seal
Run
thrindex run model.thx
Behavioral simulator, no hardware.
Byte-identical spike rasters
Zero RNG in simulator
