Heat is the computer.
Thermodynamic sampling uses energy and temperature to solve hard problems. Instead of forcing one answer step by step, it lets a system settle — the way a cooling material settles — into a low-energy state that is the answer.
This bench sheet records the work: sixteen benchmark experiments, a codon sampler for protein expression, a task dispatcher, and a power-grid solver. The tests aim for better power consumption, and every result below carries the exact command that reproduces it.
Open academic evaluation: available for university biofoundries and synthetic biology research facilities to evaluate the Potts sampler offline against past expression constructs. Read the evaluation notes.
Annealing lattice, live
16 × 16 Ising spinsDrag the slider from hot to cold and watch the spins order. Near the ground state the grid settles into one aligned domain — that settling is the computation.
A landscape, a temperature, and time to settle.
Every problem on this page is rewritten the same way: as an energy. Good answers sit low in the landscape; bad answers sit high. The sampler's job is to find the valleys without getting trapped in the first dip it meets.
Energy landscapes
A solution — a folded RNA, a codon sequence, a dispatch schedule — is scored by a single number, its energy. Optimisation becomes geography: the best answer is the lowest point on the map, and the map can be searched by physics instead of by brute force.
Boltzmann sampling
At a given temperature the sampler visits states with probability set by the Boltzmann distribution: low-energy states are favoured, but higher ones are still reachable. That controlled randomness is what lets it escape shallow local minima that stop a greedy search cold.
Annealing
Start hot, where spins flip freely and the system explores. Cool slowly, and the exploration narrows into order. The schedule — how fast the temperature falls — is the difference between a frozen mess and the ground state.
What runs today: every result on this page is a classical JAX simulation on ordinary computers — no special sampling hardware is required or used. Where dedicated thermodynamic hardware is discussed, the figures are analytical projections, and they are labelled as projections wherever they appear.
Sixteen stations, one method.
Each station states the same question a different way — can sampling find the low-energy answer, and can it prove it against an exact or known result? Every row carries its verified metric and the exact command that reproduces it.
Nearest-neighbour spins on a line — the first check against an exact solution.
The classic square-lattice magnet, swept across its phase transition.
Four-state spins in place of two — a sharper transition to locate.
Clamp the known pixels, sample the rest, and let the field clean the image.
A restricted Boltzmann machine recovers hidden patterns and occluded bits.
Continuous dynamics hopping between two wells as the temperature changes.
The travelling salesman problem, encoded as an energy to minimise.
Fully connected, disordered spins — the rugged landscape, searched whole.
Secondary structure as a ground-state search, verified exactly at small N and scaled on a riboswitch.
Security-constrained unit commitment: meet demand with no deficit. The microgrid section below is this station, written out in full.
Codon choice as a Potts model — remove the hairpins, keep the code strong. Written out in full in the codon section below.
Protein side-chain packing that resolves clashes by lowering the energy.
A coupled-organs simulation core, held to a strict latency budget.
Hybrid sampling, checked end to end for constraint violations.
P=32 Trotter-slice Path-Integral Monte Carlo (SQA) vs. thrml Block-Gibbs across double-well Ising barriers.
Live-stream data refinery.
Toggle between deterministic synthetic baselines and live empirical public telemetry harvested from USGS estuary water gauges, Rfam RNA alignments, Yahoo Finance + Polymarket CLOB order books, and Shopify DTC product graphs.
Empirical Tensor Bench — Synthetic Baseline vs. Live Public Telemetry
16-Node Sherrington–Kirkpatrick Baseline
Synthetic SK Spin-Glass Baseline (N=16) · synthetic_baseline · Deterministic seed #104729
Energy Relaxation & 16-Channel Coupling Inspector
Exact Hamiltonian E = −½ sᵀJs − hᵀs. Backend benchmark τ_int=7.40 · ESS=4.3.
| Channel | Station / Parameter | Bias h_i | Live Val | Spin |
|---|---|---|---|---|
| SK-NODE-01 | Synthetic SK Spin 1 Gaussian Coupling Bank A | 0.080 | 0.66 dimensionless | +1 |
| SK-NODE-02 | Synthetic SK Spin 2 Gaussian Coupling Bank A | -0.080 | -0.41 dimensionless | −1 |
| SK-NODE-03 | Synthetic SK Spin 3 Gaussian Coupling Bank A | 0.080 | -0.76 dimensionless | +1 |
| SK-NODE-04 | Synthetic SK Spin 4 Gaussian Coupling Bank A | -0.080 | -0.50 dimensionless | −1 |
| SK-NODE-05 | Synthetic SK Spin 5 Gaussian Coupling Bank A | 0.080 | 0.72 dimensionless | +1 |
| SK-NODE-06 | Synthetic SK Spin 6 Gaussian Coupling Bank A | -0.080 | -0.17 dimensionless | −1 |
| SK-NODE-07 | Synthetic SK Spin 7 Gaussian Coupling Bank A | 0.080 | -0.59 dimensionless | +1 |
| SK-NODE-08 | Synthetic SK Spin 8 Gaussian Coupling Bank A | -0.080 | 0.83 dimensionless | −1 |
| SK-NODE-09 | Synthetic SK Spin 9 Gaussian Coupling Bank B | 0.080 | 0.16 dimensionless | +1 |
| SK-NODE-10 | Synthetic SK Spin 10 Gaussian Coupling Bank B | -0.080 | -0.80 dimensionless | −1 |
| SK-NODE-11 | Synthetic SK Spin 11 Gaussian Coupling Bank B | 0.080 | -0.61 dimensionless | +1 |
| SK-NODE-12 | Synthetic SK Spin 12 Gaussian Coupling Bank B | -0.080 | 0.42 dimensionless | −1 |
| SK-NODE-13 | Synthetic SK Spin 13 Gaussian Coupling Bank B | 0.080 | -0.84 dimensionless | +1 |
| SK-NODE-14 | Synthetic SK Spin 14 Gaussian Coupling Bank B | -0.080 | 0.84 dimensionless | −1 |
| SK-NODE-15 | Synthetic SK Spin 15 Gaussian Coupling Bank B | 0.080 | -0.28 dimensionless | +1 |
| SK-NODE-16 | Synthetic SK Spin 16 Gaussian Coupling Bank B | -0.080 | -0.53 dimensionless | −1 |
Codon design, scored like physics.
The codon sampler — thermo_physics/codon — treats a synonymous coding sequence as a Potts energy problem. It scores designs for protein expression on 5′ hairpins, homopolymers, restriction sites, and the Codon Adaptation Index (CAI), then anneals toward low energy — generating diverse synonymous candidate sets instead of one greedy answer.
| Human GLP-1 (15-mer) | Greedy, CAI only | Potts anneal |
|---|---|---|
| CAI | 1.0000 | 0.9326 |
| GC content | 66.7% | 57.8% |
| 5′ hairpins | 4 | 0 |
| Energy | 9.1111 | 1.2891 |
| Energy advantage | — | 7.82 |
| Search space | 84,934,656 synonymous transcripts | |
The greedy baseline wins CAI and loses the construct: four hairpins near the 5′ end are exactly the structures that stall expression. The anneal trades a little CAI for a clean 5′ end and a far lower total energy. That trade is the whole argument for sampling over greed.
H(s) = −w_cai · CAI(s) + w_doublet · E_doublet(s) + w_5p · ΔG_5p(s)
+ w_hairpin · N_hairpins(s) + w_gc · (GC(s) − GC_target)²Host profiles
Each host carries its own codon usage and a target GC the sampler steers toward.
- S. cerevisiaetarget GC 39%
- E. colitarget GC 51%
- D. discoideumAT-rich · target GC 27%
- B. subtilistarget GC 43%
- C. griseustarget GC 50%
- H. sapienstarget GC 52%
Exclusions, off by default
Restriction-site screening is configurable and disabled by default, because the foundry workflow assembles by homology (Gibson), not Golden Gate. Switched on, the sampler excludes Type IIS sites — BsaI, BsmBI/Esp3I, BbsI/BpiI, SapI/LguI, AarI — and homopolymer runs of five or more.
Nothing about a construct is hidden from the scoring: every term in the Hamiltonian is a named, weighted, inspectable quantity, and the weights ship in the open-source configuration.
Academic Biofoundry & Research Lab Pilot
Built for university biofoundries and synthetic biology research facilities evaluating offline codon optimization against historical construct libraries: run the offline CLI against expression designs the lab has already produced, and benchmark correlations in private.
The evaluation harness is designed specifically for research facilities that cannot transmit proprietary or pre-publication sequences off-site. It is MIT open-source, makes zero network calls, and collects zero telemetry — running entirely on the laboratory's own infrastructure. Summary exports contain only aggregate statistics: sample counts, Spearman ρ, Pearson r, p-values, and ROC-AUC. Zero sequences and zero construct IDs leave the laboratory.
Free permanently for academic labs and university biofoundries.
Try it in three seconds, offline.
The built-in demo needs no files and no network:
python scripts/biofoundry_codon_benchmark.py demoThe three commands a lab actually runs
python scripts/biofoundry_codon_benchmark.py design --seq "MSKGEEL..." --host d_discoideum --candidates 5python scripts/biofoundry_codon_benchmark.py correlate --csv constructs.csv --host s_cerevisiae --enzymes none --summary-out summary_correlations_only.jsonThe first designs five synonymous candidates for a Dictyostelium host. The second correlates sampler scores against a lab's own construct history — and writes out only the aggregate summary named in the command.
Routing language models like a power grid.
thermo_physics.dispatch (MIT) is a Potts rate-limit and SLA task router for batched LLM routing. Each task is scheduled on metadata only — prompt text is never a field on the task record — and there is no external telemetry. In the published 40-task simulation (97,841 tokens), the Gibbs sampler holds the limits that greedy routing breaks.
Audit your own routing, in shadow
The shadow-audit CLI replays a request log against a local endpoint and reports where the current routing would have missed — without sending production traffic anywhere new.
python scripts/run_shadow_audit.py --log requests.jsonl --target-endpoint localhost:8000 --out audit_report.jsonUnit commitment, solved to the ground state.
thermo_physics.microgrid (MIT) writes Security-Constrained Unit Commitment as an Ising QUBO: 4 generators × 6 intervals = 24 binary variables, and 16,777,216 possible schedules. The sampler recovers the deterministic ground state across all 16.7 million of them, in 0.12 s of classical JAX.
Demand to meet, by interval (MW)
Peak demand — 750 MW in interval 4, shown in ember — is the binding constraint the schedule has to survive.
Associative recall as energy basin descent.
experiments/exp12_associative_recall.py benchmarks thrml 0.1.4 Ising and K=4 Potts samplers against classical Hebbian Hopfield and continuous exponential Hopfield networks across 20%, 35%, and 50% cue noise. Select an attractor, noise level, and dynamics below to watch corrupted 64-bit cues relax into stored memories.
Energy Basin Descent · Experiment 12
Corrupted 64-bit pattern relaxation into stored attractors (thrml 0.1.4 vs Hopfield)
Categorical Gibbs · beta=4.5
| Cue Noise | Model | Bit Recovery | Spurious Rate | Conv. Steps | Batch Time |
|---|---|---|---|---|---|
| 20% | Classical Hopfield | 92.91% | 47.0% | 2.88 | 14.13 ms |
| Exp Hopfield | 100.00% | 0.0% | 3.85 | 4.07 ms | |
| thrml Ising | 99.16% | 38.0% | 3.86 | 3.39 ms | |
| thrml Potts (K=4) | 100.00% | 0.0% | 2.00 | 11.74 ms | |
| 35% | Classical Hopfield | 88.78% | 60.0% | 3.42 | 16.89 ms |
| Exp Hopfield | 100.00% | 0.0% | 4.14 | 4.15 ms | |
| thrml Ising | 96.41% | 44.0% | 4.70 | 3.62 ms | |
| thrml Potts (K=4) | 100.00% | 0.0% | 2.00 | 10.56 ms | |
| 50% | Classical Hopfield | 80.61% | 74.0% | 4.03 | 21.51 ms |
| Exp Hopfield | 99.53% | 0.0% | 4.73 | 4.96 ms | |
| thrml Ising | 88.89% | 58.0% | 6.04 | 3.48 ms | |
| thrml Potts (K=4) | 96.92% | 0.0% | 2.08 | 10.23 ms |
Quantum tunneling versus thermal barrier hopping.
stations/station_17_tunneling_vs_thermal.py benchmarks classical 2-color Block-Gibbs thermal annealing (thrml 0.1.4) against Simulated Quantum Annealing via Path-Integral Monte Carlo (P = 32 imaginary-time Trotter slices in JAX) across double-well Ising barriers of fixed height H = 8.0 and Hamming width W in {1, 2, 3, 4, 6} for N = 32 and N = 64 spins.
Quantum Tunneling (PIMC/SQA) vs. Classical Thermal Barrier Hopping
Probability of reaching the true global ground state (Well B) after 30 annealing sweeps.
| Width W | Thermal P_gs | PIMC P_gs | Thermal TTS_99 | PIMC TTS_99 | Thermal (ms) | PIMC (ms) | Sweep / Wall Gain |
|---|---|---|---|---|---|---|---|
| W = 1 (2 core) | 12.9% | 97.3% | 1001.1 sw | 38.4 sw | 1.770 ms | 0.446 ms | 26.08x sw · 3.97x ms |
| W = 2 (4 core) | 8.6% | 63.3% | 1537.5 sw | 137.9 sw | 2.708 ms | 1.615 ms | 11.15x sw · 1.68x ms |
| W = 3 (6 core) | 13.3% | 33.6% | 969.5 sw | 337.5 sw | 1.674 ms | 3.937 ms | 2.87x sw · 0.43x ms |
| W = 4 (8 core) | 14.4% | 11.7% | 885.0 sw | 1108.4 sw | 1.490 ms | 13.188 ms | 0.80x sw · 0.11x ms |
| W = 6 (12 core) | 11.3% | 0.8% | 1149.1 sw | 17614.7 sw | 2.007 ms | 224.417 ms | 0.07x sw · 0.01x ms |
/stations/station_17_telemetry.json · Seed 1700 · 256 trials/pointOpen standalone Station 17 apparatus How to read the numbers.
Simulations, not customers
These are simulated benchmark results, and results may vary. They are not customer results, and no foundry, grid operator, or routing customer is implied by any figure on this page. One outside academic trial is described as what it is: an agreement to test, with results still to come.
Ordinary computers, today
All three packages — the benchmark suite, the codon sampler and dispatcher, and the microgrid solver — run today as JAX simulations on ordinary computers. No special sampling hardware is required to reproduce any number here; the run commands on this page are the whole setup.
Projections are labelled
The Extropic TSU rates are analytical device projections. Physical Extropic TSU silicon is not publicly available, and no projected rate is presented as a measurement anywhere on this page. Measured numbers say measured by carrying a runtime; projected numbers say projection in plain words.
Reproduce everything on this page.
The code is MIT open source. Clone the repository, run a station, and check the metric yourself — that is the intended way to read this bench sheet.
git clone https://github.com/nexusai-kevin/thermo-physics.git && uv run thrml-bench run --exp 11