Experimental Quantum Physics Lab

Quantum
Codex

Where Physics Becomes Interactive Thought.
Explore quantum wavefunctions, tunnelling, orbitals, and uncertainty states.

Learn Quantum
Mechanics

An interactive journey from classical crisis to quantum reality. Each lesson builds on the last, guiding you from intuition to formalism.

Visualise connections
Quantum Roadmap
See how every concept connects as an interactive knowledge graph.
View Roadmap

Computational Physics
as a living medium

Physics equations live on paper. Quantum Codex makes them inhabitable.

This is an evolving experimental project — a personal lab notebook rendered interactive. Each simulation is built from mathematical first principles, not borrowed libraries or pre-baked demos.

The goal is simple: to let curious minds encounter physics as something you can touch, rotate, break, and rebuild — not just read about.

3D / 2D WebGL & Canvas Engine
5 Interactive Quantum Labs
100% Mathematical Fidelity
60 FPS Native GPU Performance

Quantum Roadmap

Every concept in quantum mechanics connects to others. Click any node to jump to that lesson.

Not Started
In Progress
Completed
Quantum Mechanics · Lesson 03

The Bohr Model

In 1913, a young Danish physicist proposed something radical: electrons can only exist at specific, quantized distances from the nucleus — and nothing in between.

14 min read
Foundational

What You'll Learn

The Bohr Model was a pivotal step in the development of quantum mechanics. It introduced the idea that electrons occupy discrete energy levels and that transitions between these levels produce or absorb specific wavelengths of light.

Prerequisite Wave-Particle Duality
Duration 14 min read
Simulation 3D Bohr Model Lab
Difficulty Foundational

A Crisis in Classical Physics

By 1900, classical physics had hit a wall. The prevailing model of the atom — Thomson's "plum pudding" — and later Rutherford's nuclear model could not explain why atoms emit light in discrete spectral lines instead of a continuous rainbow.

1897
Discovery of the Electron

J.J. Thomson discovers the electron, shattering the idea of the indivisible atom.

1911
Rutherford's Nuclear Model

Ernest Rutherford proves the atom has a dense positive nucleus. But why don't electrons spiral inward?

1913
Bohr Postulates Quantized Orbits

Niels Bohr proposes that electrons occupy fixed, quantized orbits and emit photons when jumping between them.

Quantized Energy Levels

Bohr's radical postulate was that electrons don't just orbit anywhere — they can only exist in specific, allowed orbits. Each orbit corresponds to a discrete energy level, labelled by the principal quantum number n.

💡

The key insight: Between orbits, there is no in-between. An electron does not smoothly drift from one level to another — it makes an instantaneous quantum leap.

When an electron falls from a higher orbit (n=2) to a lower one (n=1), the energy difference is released as a photon with a precise wavelength. This is why hydrogen emits specific spectral lines, not a smeared spectrum.

The energy of orbit n in hydrogen is given by Eₙ = −13.6 eV / n². Higher n means higher (less negative) energy. The ground state (n=1) at −13.6 eV is the most tightly bound configuration.

Explore the Energy Levels

Adjust the principal quantum number n and atomic number Z to see how the orbital radius and energy change — live, with the electron orbit and energy ladder updating as you drag.

Bohr Energy Calculator

The Energy Formula

Bohr Energy Levels
\(Z\) = atomic number  ·  \(n\) = principal quantum number \((1, 2, 3\ldots)\)

The negative sign indicates a bound state — energy must be added to remove the electron. As \(n\) increases, the electron is farther from the nucleus and less tightly bound.

What People Often Get Wrong

⚠️

Misconception: Electrons physically travel between orbits during a quantum leap.

Reality: There is no trajectory. The electron simply “is” in one state, then “is” in another. There is no in-between path to describe.

⚠️

Misconception: The Bohr Model is correct quantum mechanics.

Reality: It is a historical approximation. It fails for multi-electron atoms and cannot predict spectral fine structure. The Schrödinger equation supersedes it.

Where This Matters

🔬

Spectroscopy: Every element emits a unique spectral fingerprint. Astronomers use the Bohr Model’s predictions to identify elements in distant stars.

💡

Lasers: The population inversion mechanism exploits electron transitions between discrete energy levels — a direct consequence of quantized orbits.

See It In 3D

Now that you understand the theory, explore the Bohr atom in a fully interactive 3D simulation. Adjust electron shells, atomic number, and rotation speed.

Open Simulation
3D Bohr Model Lab
Rotate the atom, change quantum numbers, and watch electron transitions happen in real time.
✦ Key Takeaways
  • Electrons in an atom can only occupy specific, quantized energy levels — there is no continuum.
  • The principal quantum number n determines the energy and radius of each orbit.
  • When an electron transitions between levels, it emits or absorbs a photon with exactly the right energy to bridge the gap.
  • The Bohr Model correctly predicts hydrogen’s spectral lines but is a stepping stone to the full quantum mechanical picture.

Design System Showcase

A comprehensive overview of the Quantum Codex component library.

Content Cards

Information Card

Used for general scientific facts or contextual information.

Wavefunction (ψ)

A mathematical description of the quantum state of an isolated quantum system.

Core Concept

Focuses the user's attention on the fundamental principle of the lesson.

Key Insight

Highlights a profound realization or mathematical consequence.

Key Takeaway

The user should remember this specific point before proceeding.

Common Misconception

Electrons do not orbit the nucleus like planets around a star.

Historical Timeline

1913

Bohr Model Proposed

Niels Bohr proposes that electrons travel in quantized orbits.

1926

Schrödinger Equation

Erwin Schrödinger formulates wave mechanics.

Interactive Components

Interactive Demonstration Container

Schrödinger Solver

Solve 1D potentials numerically.

iℏ ∂ψ/∂t = Ĥψ
Quantum Codex / Simulations / Bohr Model

Bohr Model

Interactive 3D simulation of Niels Bohr's atomic model. Electrons orbit the nucleus in quantised shells — each shell at radius r₀ · n². Hover over orbits for quantum data. Scroll to zoom. Drag to rotate.

Quantum Mechanics WebGL · Three.js
Bohr Model · n = 1–5
— fps

The Bohr Model, Quantised

In Bohr's 1913 model, electrons don't spiral into the nucleus — they occupy discrete, stable orbits. Each orbit corresponds to a specific angular momentum, and the electron cannot exist between shells. This was the first quantisation postulate in atomic physics.

Angular Momentum Quantisation
\(L\) is restricted to integer multiples of \(\hbar\) — there is no in-between

The radius of each orbit grows quadratically, \(r_n = n^2 a_0\). The innermost shell \((n=1)\) sits at the Bohr radius \(a_0 \approx 0.529\,\text{Å}\) — half an Ångstrom from the nucleus — while the energy of shell \(n\) follows the Rydberg energy law below.

Energy Levels
\(Z\) = atomic number  ·  \(n\) = principal quantum number  ·  the negative sign marks a bound state

When an electron jumps from a higher shell \(n_i\) to a lower one \(n_f\), the atom emits a photon whose energy equals the difference between the two levels, \(\Delta E = E_f - E_i\). Because only certain transitions are allowed, hydrogen produces line spectra — discrete wavelengths rather than a continuous rainbow.

Rydberg Formula — Hydrogen Spectrum
The Lyman, Balmer and Paschen series correspond to transitions ending at \(n_f = 1, 2, 3\)
💡

The key insight: between orbits there is no in-between — an electron does not smoothly drift from one level to another, it makes an instantaneous quantum leap. The Bohr model predicts hydrogen's spectrum with striking accuracy, but it is a historical stepping stone: the Schrödinger equation, which replaces orbits with probability clouds, supersedes it for real atoms.

Quantum Codex / Simulations / Schrödinger Orbital

Schrödinger Orbital

3D probability density clouds of hydrogen-like atomic orbitals computed from Laguerre polynomials and spherical harmonics using Monte Carlo sampling.

Wave Mechanics WebGL · Three.js
Orbital: 2p (m=0)
— fps
Ready

The Hydrogen Atom, Wave-Mechanically

In quantum mechanics the electron in a hydrogen-like atom is not a particle on an orbit — it is described by a wavefunction \(\psi(r,\theta,\phi)\), a solution to the Schrödinger equation that encodes every measurable property of the electron's state. The cloud of points you see here is a Monte Carlo sample of that wavefunction's probability density.

The Wavefunction Factorises
A radial part \(R_{nl}(r)\) times a spherical harmonic \(Y_l^m(\theta,\phi)\)

The squared magnitude gives the probability density — the likelihood of finding the electron at any given point in space. Dense regions of the cloud mean high probability; nodes, where the density vanishes, mean the electron is never found there.

Probability Density
The rendered cloud is a sampling of this density

Three quantum numbers label each orbital: n sets the energy shell, \(E_n = -13.6/n^2\,\text{eV}\), and the overall size; l fixes the shape (\(s, p, d, f, \dots\)); m controls the orientation in space. The allowed values form a strict ladder.

Allowed Quantum Numbers

The radial part \(R_{nl}\) is built from associated Laguerre polynomials and decays exponentially with distance from the nucleus. Its zeros are radial nodes — spherical shells where the wavefunction, and therefore the probability, vanishes.

Radial Function
\(L_{n-l-1}^{2l+1}\) — associated Laguerre polynomial · \(N\) — normalisation constant · \(\rho = 2Zr/(n\,a_0)\)
💡

The key insight: an orbital is not a path — it is a probability cloud. The shape of the cloud comes from the spherical harmonics (labelled by \(l\) and \(m\)); its size comes from the radial function (labelled by \(n\)). What you rotate in this lab is the wavefunction itself.

Quantum Codex / Simulations / Schrödinger Solver

Schrödinger Solver

1D Finite Difference Eigensolver & Wavefunction Visualizer. Computes exact discrete Hamiltonian matrix eigenvalues and eigenstate amplitudes for particle in a box.

1D Eigensolver Canvas 2D · Native JS

Solving the Schrödinger Equation

This lab solves the time-independent Schrödinger equation — the eigenvalue problem of quantum mechanics — for a particle confined to a one-dimensional box. The solver discretises the Hamiltonian into an \(N\times N\) matrix and diagonalises it numerically, so the states you see are exact eigenstates of the finite-difference system.

Time-Independent Schrödinger Equation

With infinite walls, the boundary conditions force \(\psi(0) = \psi(L) = 0\), and only the standing waves \(\sin(n\pi x/L)\) survive. That single constraint — a confined wave must hold a whole number of half-wavelengths — quantises the energy, exactly as a guitar string rings only at certain pitches.

Particle in a Box — Quantised Energies
\(n = 1, 2, 3, \dots\)  ·  the state \(\psi_n\) has \(n-1\) nodes inside the box

Note the \(n^2\) spacing: energy levels grow quadratically, so the gaps between levels widen as \(n\) increases. The nodes of each state — points inside the box where the particle can never be found — appear live in the visualisation.

💡

The key insight: confinement quantises energy. It is the boundary conditions — not the equation itself — that turn a continuous spectrum into a discrete ladder of eigenstates.

Quantum Codex / Simulations / Quantum Tunnelling

Quantum Tunnelling

Static bound state penetration & dynamic wavepacket reflection/transmission through potential barriers.

Barrier Penetration Canvas 2D · Native JS

Tunnelling Through a Barrier

Classically, a particle with energy below a barrier's height can never cross it. Quantum mechanically the wavefunction does not stop at the barrier — inside the classically forbidden region it decays exponentially rather than vanishing, and if the barrier is thin enough a remnant emerges on the far side. That is tunnelling.

Decay Rate Inside the Barrier
\(V_0\) = barrier height · \(E\) = particle energy · \(m\) = mass

Inside the barrier the wavefunction is evanescent — it does not oscillate, it leaks, \(\psi(x)\propto e^{-\kappa x}\). Matching the wavefunction and its derivative at both edges of the barrier yields the transmission probability.

Transmission — Rectangular Barrier
\(a\) = barrier width  ·  valid for wide or tall barriers

Everything about tunnelling lives in that exponent: mass, barrier height, and width all multiply there, which is why transmission is exponentially sensitive to every parameter — and why electrons tunnel easily while heavier particles barely do. For a smooth barrier the same physics integrates barrier-by-barrier into the WKB approximation.

WKB Transmission — General Barrier
Integrated over the classically forbidden region
💡

The key insight: no energy is borrowed or violated — the particle stays below \(V_0\) the whole time. It is the wavefunction, not the energy, that penetrates the forbidden region. Tunnelling powers scanning tunnelling microscopy, flash memory, alpha decay, and fusion in the Sun.

Quantum Codex / Simulations / Heisenberg Principle

Heisenberg Principle Simulation

Visualise trade-offs between position and velocity precision with spectral expansion and live stats overlay.

Uncertainty Principle Canvas 2D · Native JS

Position vs. Momentum Uncertainty

The more precisely a wavefunction is localised in space, the more momentum components it must contain — and vice versa. Heisenberg's uncertainty principle makes this trade-off exact: for any state, the product of the position and momentum spreads is bounded from below.

Position–Momentum Uncertainty
Saturated — equality — only for Gaussian wave packets

The inequality is not a limitation of instruments; it is the mathematical shadow of the fact that position and momentum operators do not commute.

The Canonical Commutator

The general form applies to any pair of incompatible observables, and a related energy–time relation governs how precisely energy can be defined for short-lived states.

General & Energy–Time Relations
\(\Delta t\) = time over which the state changes appreciably
💡

The key insight: a narrow wave packet (small \(\Delta x\)) is a superposition of many plane waves, so its momentum spread \(\Delta p\) grows — the product never dips below \(\hbar/2\). The same principle sets the size and stability of atoms.