Leggett–Garg Inequality (2D): Testing Macrorealism in Time
A 2D strip-chart view of the Leggett-Garg inequality: a precessing qubit is measured at three sequential times, and you compare non-invasive separate two-time experiments against a single invasive three-measurement run to see the Leggett-Garg parameter K cross the classical bound of 1.
The Leggett–Garg inequality is the temporal cousin of Bell's inequality: instead of asking whether two distant particles can share correlations no local hidden-variable theory allows, it asks whether a single system can have a definite, undisturbed value at every moment in time. This 2D simulator draws a qubit's dichotomic observable Q(t) = ±1 as a strip chart while its underlying Bloch vector precesses under a fixed drive, and measures at three sequential instants t₁, t₂, t₃. Switch between running each pair of measurements as a separate, non-invasive two-time experiment — which lets the Leggett–Garg parameter K climb past the classical bound of 1, up to the quantum maximum of 3/2 — and running all three measurements in a single sequence, where the invasive projective collapse at t₂ forces a classical Markov chain and pins K ≤ 1. A Monte Carlo trial button samples real random outcomes to confirm the analytic prediction empirically.
A 2D strip-chart simulator of the Leggett-Garg inequality, comparing non-invasive two-time measurements against an invasive three-measurement run to show the Leggett-Garg parameter K cross the classical bound of 1.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install