Kuramoto Kernel — Python vs Rust Speedup

Honest comparison: NumPy SIMD dominates at mid-range N. Rust advantage emerges at scale where cache locality and manual vectorisation win.

N (oscillators)Python (NumPy)Rust (PyO3)SpeedupNotes
642.1 µs0.12 µs17.3×Small N: Rust call overhead negligible, NumPy dispatch overhead dominates
2564.8 µs5.3 µs0.9×Parity zone — NumPy BLAS/SIMD wins on contiguous sin/cos
1,00038 µs27 µs1.4×Rust pulls ahead as matrix grows beyond L1 cache
4,096580 µs320 µs1.8×Cache-conscious tiling in Rust crate
16,3849.2 ms4.0 ms2.3×L2/L3 pressure; Rust avoids Python object overhead
65,536147 ms58.8 ms2.5×Peak advantage at large scale

16-Layer Knm UPDE PAC Benchmark

909 µsPAC γ=1.0
811 µsNo PAC γ=0
12%PAC Overhead
16×16Knm Matrix

PAC (Phase-Amplitude Coupling) gating adds 12% overhead for full γ=1.0 coupling. Acceptable trade-off for biologically-motivated cross-layer synchronisation.

Lyapunov Stability vs ζ (External Driver)

ζλmaxStabilityRegime
0.0-0.0023StableFree oscillation
0.5-0.0018StableWeak entrainment
1.0-0.0011StableModerate coupling
2.0-0.0004MarginalStrong coupling
5.0+0.0031UnstableForced desynchronisation
10.0+0.0089DivergentChaotic regime

GK Linear Benchmarks

Cyclone Base CaseReference
R/LT=6.9, κρi=0.3. Growth rate γ=0.175 vth,i/Ln. Matches GS2/GENE within 5%. 512-point velocity grid, 32 poloidal modes.
SPARC Mid-RadiusValidated
r/a=0.5, BT=12.2 T. ITG dominated. γmax=0.21 vth,i/Ln at kθρi=0.4. TEM subdominant. Ion-scale only.
ITER Mid-RadiusValidated
r/a=0.5, BT=5.3 T, β=2.5%. Mixed ITG/TEM. γmax=0.14 vth,i/Ln. E×B shear stabilisation active.

PPO Reinforcement Learning Training

Cloud Training Results

500K environment steps on Vertex AI T4. Gymnasium-compatible tokamak environment. 3 baselines compared on cumulative reward over 1000-step episode.

143.7PPO Reward
58.1MPC Reward
-912.3PID Reward
500KTraining Steps
0%Disruption Rate

PPO outperforms MPC by 2.5× on cumulative reward. PID fails catastrophically due to nonlinear transport dynamics. Disruption rate 0% over 100 evaluation episodes (vs 12% for PID).