Quantum Playground Explorer

Six experiments from the quantum-playground Python package, recomputed live as you drag. Each one puts an exact result next to the approximation it replaces.

Pendulum period

The familiar T0=2πL/g assumes small swings. Raise the amplitude and the real pendulum falls behind.

Exact period
Small-angle period
Ratio
T=4LgK(sin2θ02)
exact small-angle

How much longer the real period is, at every amplitude

Quantum tunnelling

A particle of energy E meets a barrier of height V0 and width a. Classically it bounces whenever E<V0. Units with ℏ=m=1.

Transmitted T
Reflected R
Wavelength
T=[1+V02sinh2(κa)4E(V0−E)]−1
|ψ|2 Re ψ shaded: barrier · incident wave from the left has amplitude 1

Young's double slit

Laser light through two slits. Each slit's own diffraction sets the envelope; their interference sets the fine fringes.

Fringe spacing λL/d
Central envelope λL/w
Bright fringes inside it
I∝cos2(πdsinθλ)sinc2(πwsinθλ)
intensity single-slit envelope

Kepler orbits

A planet starts at distance 1 moving sideways. At exactly the circular speed it goes round in a circle; any other speed gives an ellipse, and from 2 times the circular speed upwards it escapes.

Eccentricity e
Semi-major axis a
Kepler period
Measured period
T2=4π2GMa3
simulated path predicted ellipse

Every completed orbit adds a dot: they all sit on T∝a3/2

Lorenz attractor

Two copies of the Lorenz system start on the attractor, 10−8 apart. While the motion is chaotic the gap grows exponentially until it is as big as the attractor itself.

Time
Separation
Chaos sets in at ρ_H
x˙=σ(y−x)y˙=x(ρ−z)−yz˙=xy−βz
trajectory A trajectory B

Dashed: slope of the largest Lyapunov exponent, 0.906, for the classic ρ = 28, σ = 10, β = 8/3

Ising model

Each square is a tiny magnet pointing up or down that prefers to match its neighbours. Heat fights that order. Below the critical temperature large domains form; above it the magnetisation averages to zero.

T / T_c
Measured |m|
Onsager (exact)
m=(1−sinh−42T)1/8,Tc=2ln(1+2)

96 × 96 spins, Metropolis updates

Line: Onsager's exact result. Dot: this lattice, averaged over the last few hundred sweeps