STATION 11 · EXP 11THERMO LAB · 1 OF 16 STATIONSLIVE SAMPLER IN BROWSER
RNA Folding Ensemble
Boltzmann sampling of RNA secondary structure with stacking, affinities,
and steric exclusion. Exact at N = 24, scaled to a 50-nt riboswitch at
N = 50. Drag the temperature and watch the ensemble melt and refold — every arc below is drawn
exactly from the Boltzmann distribution, computed live by partition function.
Secondary structure
Hairpin · N = 24
G–C pairA–U pairG–U wobbleGround state (below axis)
Controls
Ensemble dial
Synthetic Hairpin / Riboswitch
T = 0.90 · β = 1.11
0.20 · frozen1.03.0 · melted
Low T locks the chain into its ground-state fold. High T melts the stems into a flickering soup of short-lived pairs.
Sequence lengthN = 24
Sampler
Tip: tap any base letter in the diagram to inspect its pairing partners.
Live readouts
This sample
demo sampler
Base pairs formed
–
Ground-state overlap
–
Ensemble entropy S, est.
–
P(ground state), ensemble
–
Extra pairs beyond ground state
–
Samples drawn
0
Sokal τint
1.00
Live ESS
–
Exact ground-state structure sampled — every ground-state pair present, no extras.
Pair probabilities
Boltzmann dot plot
240 draws
Hover or tap the matrix to read the pairing frequency at the current temperature.
Hamiltonian
Energy of this fold
demo model units
Pair affinities–
Stacking bonus–
Loop entropy penalty–
ΔG of sampled fold–
Demo model’s ground-state ΔG for the demo sequence: –. A browser-demo figure, not a benchmark result.
The physics
Three ingredients
demo parameters
AffinitiesEach candidate pair carries a base-pair affinity; G–C binds hardest, the G–U wobble barely holds. The browser demo scores them:G–C · 2.2A–U · 1.4G–U · 0.6
StackingAdjacent pairs in a stem stabilise each other (+1.6 in the demo model), which is why folds grow long unbroken stems instead of scattered pairs.
Steric exclusionOne partner per base, a minimum hairpin loop of 3 unpaired bases, and no crossing pairs — built into the partition function, so forbidden structures carry exactly zero weight.
Benchmark · Exp 11
Published results
100%
Ground state match — the headline metric
7/7
Tests passing
0.21 s
Runtime at N = 24 (exact)
0.31 s
Runtime at N = 50 (riboswitch)
Label for every figure in this tile: simulated benchmark result, results may vary (not customer results).
Reproduce it
Run Exp 11
uv run thrml-bench run --exp 11
Runs the full Boltzmann ensemble benchmark — exact at N = 24 and scaled to the 50-nt riboswitch at N = 50 — and checks the sampled ground state against the known fold.