Modules§
- attention
- Stochastic Attention
- bitstream
- Bitstream Operations
- brunel
- Fused Brunel balanced network simulation in fixed-point Q8.8 arithmetic.
- connectome
- Biologically plausible connectivity generators.
- conv
- SC 2D convolutional layer using probability-domain multiplication.
- cordiv
- CORDIV: stochastic computing divider.
- cortical_
column - 5-population cortical column (Douglas & Martin 2004). L4 (thalamic) → L2/3 exc ↔ L2/3 inh → L5 (output) → L6 (feedback → L4).
- encoder
- Stochastic Encoders
- fault
- Hardware fault injection for robustness testing.
- fusion
- Multi-modal fusion layer using stochastic multiplexing.
- grad
- graph
- Stochastic Graph Layer
- ir
- SC Compute Graph IR
- layer
- Dense Stochastic Layer
- network_
runner - High-performance network simulation backend.
- neuron
- Neuron Models
- neurons
- phi
- Barrett & Seth 2011 geometric Phi under Gaussian assumption. Phi* = MI(past; future) - max_partition sum MI(past_k; future_k)
- predictive_
coding - Predictive coding via XOR + popcount in packed bitstream domain.
- pyo3_
neurons - PyO3 wrappers for all neuron models.
- rall_
dendrite - Compartmental dendritic tree with Rall’s 3/2 power rule. Distal → proximal propagation with inter-compartment coupling.
- recorder
- Spike recording and statistics.
- recurrent
- SC recurrent/reservoir layer (echo state network).
- scpn
- simd
- SIMD Popcount Dispatch
- sobol
- Sobol quasi-random bitstream generator.
- synapses
- Stochastic STDP Synapse
Structs§
- Bitstream
Encoder - Dense
Layer - Fixed
Point Lif - Lfsr16
- PyAd
ExNeuron - PyBit
Stream Tensor - PyBitstream
Averager - PyBrunel
Network - PyCortical
Column - PyDifferentiable
Dense Layer - PyExpIF
Neuron - PyIzhikevich
- PyKuramoto
Solver - PyLapicque
Neuron - PyNetwork
Runner - PyRall
Dendrite - PySCPN
Metrics - PySc
Graph - PySc
Graph Builder - PyStochastic
Attention - PyStochastic
Graph Layer - PySurrogate
Lif - Stdp
Synapse
Functions§
- __
pyfunction_ 🔒 ⚠batch_ encode - __
pyfunction_ 🔒 ⚠batch_ encode_ numpy - __
pyfunction_ 🔒 ⚠batch_ lif_ run - __
pyfunction_ 🔒 ⚠batch_ lif_ run_ multi - __
pyfunction_ 🔒 ⚠batch_ lif_ run_ varying - __
pyfunction_ 🔒 ⚠ir_ emit_ sv - __
pyfunction_ 🔒 ⚠ir_ parse - __
pyfunction_ 🔒 ⚠ir_ print - __
pyfunction_ 🔒 ⚠ir_ verify - __
pyfunction_ 🔒 ⚠pack_ bitstream - __
pyfunction_ 🔒 ⚠pack_ bitstream_ numpy - __
pyfunction_ 🔒 ⚠popcount - __
pyfunction_ 🔒 ⚠popcount_ numpy - __
pyfunction_ 🔒 ⚠py_ adaptive_ length - __
pyfunction_ 🔒 ⚠py_ cordiv - __
pyfunction_ 🔒 ⚠py_ phi_ star - __
pyfunction_ 🔒 ⚠py_ predict_ xor_ ema - __
pyfunction_ 🔒 ⚠py_ predict_ xor_ lfsr - __
pyfunction_ 🔒 ⚠py_ prediction_ error - __
pyfunction_ 🔒 ⚠py_ recover_ xor_ ema - __
pyfunction_ 🔒 ⚠py_ recover_ xor_ lfsr - __
pyfunction_ 🔒 ⚠set_ num_ threads - __
pyfunction_ 🔒 ⚠simd_ tier - __
pyfunction_ 🔒 ⚠unpack_ bitstream - __
pyfunction_ 🔒 ⚠unpack_ bitstream_ numpy - batch_
encode 🔒 - Bernoulli-encode a numpy float64 array into packed bitstream words.
- batch_
encode_ 🔒numpy - Bernoulli-encode a numpy float64 array into a 2-D numpy uint64 array.
- batch_
lif_ 🔒run - Run a LIF neuron for N steps with constant inputs.
- batch_
lif_ 🔒run_ multi - Run N independent LIF neurons in parallel, each with its own constant input.
- batch_
lif_ 🔒run_ varying - Run a LIF neuron for N steps with per-step current and optional noise arrays.
- extract_
matrix_ 🔒f64 - ir_
emit_ 🔒sv - Emit SystemVerilog from an IR graph.
- ir_
parse 🔒 - Parse an IR graph from text format.
- ir_
print 🔒 - Print an IR graph to its stable text format.
- ir_
verify 🔒 - Verify an IR graph. Returns None on success, or a list of error strings.
- pack_
bitstream 🔒 - pack_
bitstream_ 🔒numpy - Pack a 1-D numpy uint8 array into packed u64 words, returning a numpy array. Zero-copy input, single-allocation output.
- parse_
sc_ 🔒type - Parse a Python type string into ScType.
- parse_
surrogate 🔒 - popcount 🔒
- popcount_
numpy 🔒 - Popcount on a numpy uint64 array — zero-copy input.
- py_
adaptive_ 🔒length - py_
cordiv 🔒 - py_
phi_ 🔒star - py_
predict_ 🔒xor_ ema - py_
predict_ 🔒xor_ lfsr - py_
prediction_ 🔒error - py_
recover_ 🔒xor_ ema - py_
recover_ 🔒xor_ lfsr - reshape_
flat_ 🔒to_ rows - sc_
neurocore_ 🔒engine - SC-NeuroCore ─ High-Performance Rust Engine
- set_
num_ 🔒threads - Set the number of threads in the global rayon thread pool.
- simd_
tier 🔒 - Returns the highest SIMD tier available on this CPU.
- unpack_
bitstream 🔒 - unpack_
bitstream_ 🔒numpy - Unpack a numpy uint64 array back to a numpy uint8 array.