Physics · Modern Physics · Quantum Mechanics · Quantum Computing
Quantum Physics: From Light Quanta to Qubits
At the scale of atoms, nature stops behaving like tiny billiard balls. Energy comes in packets, particles spread out like waves, outcomes are decided by probability, and distant particles can share entangled fates. This lesson walks the whole story in six parts, each with a simulator you can poke: light as quanta, wave–particle duality, quantization, the qubit and Bloch sphere, entanglement, and tunneling.
Start with Part 1, or jump straight to the qubit lab in Part 4
Every simulator below demonstrates one of these. By the end you should be able to explain each in your own words, with evidence.
1 · Quantization
Some quantities, like the energy of light or of an electron bound in an atom, come in discrete steps, not smooth amounts.
2 · Duality
Light and matter show wave behavior (interference) when travelling and particle behavior (single hits) when detected.
3 · Probability
Quantum theory predicts the odds of outcomes very precisely, but not which single outcome occurs.
4 · Superposition & measurement
A system can be described by a blend of possibilities. Measuring it gives one definite result and updates the state.
5 · Entanglement & tunneling
Two particles can share one joint state with correlations no classical story can copy. A particle can also cross a barrier it “doesn’t have the energy” to climb.
Why it matters
The same rules give us lasers, LEDs, transistors, solar cells, MRI, atomic clocks, and now quantum computers.
Fifth Solvay Conference (Brussels, 1927). The iconic gathering where modern quantum mechanics was forged: 17 of the 29 attendees were or became Nobel laureates, including Albert Einstein, Niels Bohr, Marie Curie, Max Planck, Werner Heisenberg, Erwin Schrödinger, and Wolfgang Pauli. Benjamin Couprie / Wikimedia Commons · Public domain. Max Planck (1858–1947). German theoretical physicist who initiated quantum theory in 1900 by showing that electromagnetic radiation is emitted in discrete quanta of energy ($E = h\nu$), introducing the fundamental Planck constant $h$. Nobel Prize in Physics 1918. Wikimedia Commons · Public domain.
Part 1
Light Comes in Packets: The Photoelectric Effect
By 1900 light was understood as a wave. Yet when light hits a metal, electrons pop out in a way waves cannot explain: dim blue light ejects electrons, but blindingly bright red light ejects none. In 1905 Einstein explained it by treating light as a stream of photons, each carrying energy E = hf. An electron leaves only if one photon carries more than the metal’s work function φ. This work earned Einstein the 1921 Nobel Prize in Physics.
Photoelectric Lab
Choose a metal, tune the wavelength of the light, then change the intensity. Watch what each knob does, and what it doesn’t.
Photon energy2.76 eV
Work function φ2.30 eV
Max electron KE0.46 eV
Threshold wavelength539 nm
Try it: (1) Set sodium and 450 nm, then slide intensity up and down. The number of electrons changes, but their maximum energy does not. (2) Slide wavelength to 650 nm and set intensity to 10. No electrons, no matter how bright. (3) Switch to zinc and find the longest wavelength that still works. Brightness changes how many photons arrive; wavelength sets how much energy each photon carries. Each electron absorbs one photon at a time, so you can’t “save up” many weak photons.
Think: A wave model predicts that a bright enough red beam should eventually eject electrons. Which observation in the simulator contradicts that, and how does the photon model fix it?
Part 2
Waves, Particles, or Both? The Double-Slit Experiment
Send waves through two slits and they overlap into bright and dark interference fringes. Send bullets and you get two simple piles. Now send single electrons or photons, one at a time. Each lands as one dot, like a particle, yet after thousands of dots the fringes appear, as if each one had passed through both slits as a wave. Electron versions of this experiment have been done since the 1960s (Jönsson, 1961), and with single electrons by Tonomura in 1989. Fire particles below, then ask the which-path question.
Double-Slit Lab
Each button press fires particles one at a time. Dots appear where the detector screen catches them.
0 particles detected. Fire a few and notice they look random, then fire a thousand.
What to notice: After a handful of shots the dots look random. After a thousand, fringes emerge. Increase the slit separation and the fringes get closer together; increase the wavelength and they spread apart (spacing ∝ λ/d). Now tick Detect which slit and clear the screen: the fringes vanish and you get the smooth two-slit blob. Learning the path destroys the interference.
Common misconception: “The observer” does not mean a person, or consciousness. Any interaction that records which path was taken, such as a detector, a stray molecule, or a photon bouncing off the electron, is enough to wash out the fringes.
Think: One electron at a time can’t be interfering with another electron. So what is it interfering with? Write one sentence that uses the word probability.
Part 3
Trapped Waves Make Energy Levels: Particle in a Box
If a particle is a wave, then confining it is like plucking a guitar string: only waves that fit between the walls survive. That fitting rule gives discrete energy levels, En ∝ n²/L². This is the same idea that makes atoms emit only certain colors. Real atoms are 3D and more complicated, but the box shows exactly why levels appear, and why squeezing a particle into a smaller space raises its energy.
Electron-in-a-Box Lab
Left: the allowed energy ladder. Right: the standing wave (ψ) and the probability of finding the electron (|ψ|²) for the level you select.
Energy En0.376 eV
Most likely spotscenter
Photon wavelength—
Select a level, then drop to a lower one to see the photon energy that carries off the difference.
Three things to find
Level 1 has nonzero energy. There is no zero-energy resting state (“zero-point energy”).
Level n has n humps, and n−1 nodes where the electron is never found.
Shrink L from 3 nm to 0.5 nm: every level climbs and the spacing grows.
The uncertainty principle, informally
Heisenberg’s relation Δx · Δp ≥ ħ/2 says the more tightly you pin down where a particle is, the more spread there must be in its momentum. A smaller box means a smaller Δx, so a bigger momentum spread, so higher kinetic energy. It is a property of waves, not a flaw in our instruments.
Think: Use the simulator to find an electron transition that gives visible light (about 400–700 nm). Which L, n, and drop level did you use? Why can’t a continuous-energy classical particle emit just one specific color?
Part 4
The Qubit: Superposition You Can Steer
Now we put the pieces together. A qubit is any two-level quantum system, such as the spin of an electron or the lowest two energy levels of a tiny superconducting circuit. Unlike a bit, its state is a point on a sphere, the Bloch sphere. Rotate it, apply gates, and measure it.
Interactive Bloch Sphere
North pole = |0⟩, south pole = |1⟩. The arrow’s height sets measurement chances, and its twist around the sphere tracks relative phase.
State Controls
Use the sliders to move the qubit directly, then compare that with standard quantum gates.
Preset States
Apply Gates
X flips north to south, Z twists phase, and H turns a basis state into a balanced superposition.
Qubit Readout
State Vector|ψ⟩ = 0.707|0⟩ + 0.707ei0°|1⟩
Bloch Coordinates(x, y, z) = (1.000, 0.000, 0.000)
Measure 050.0%
Measure 150.0%
Balanced superposition loaded. Right now the qubit has a 50/50 chance of collapsing to |0⟩ or |1⟩.
Before You Start — Real-World Analogies
Quantum ideas sound abstract until you connect them to something physical. Use these before touching the simulator.
🪙
Superposition = Spinning Coin
A coin lying flat is either heads or tails — that's a classical bit. A spinning coin is heads and tails at the same time until it lands. The moment it hits the table is measurement — and the answer snaps to one definite outcome.
→ Qubit: the spinning coin
🧭
Phase = Which Way the Coin Faces
Two spinning coins can have the same 50/50 heads-tails odds but face different directions. That direction is phase — invisible to a single measurement but critical when you combine two qubits. Phase lets quantum algorithms cancel out wrong answers.
→ Bloch sphere equator: full circle of phases
🔄
Gates = Precise Flicks
A quantum gate is not an on/off switch — it's a rotation of the Bloch sphere arrow. The X gate flips north to south (like flipping a coin). The H gate tilts the arrow 90° to the equator. Apply H twice and you rotate all the way back.
→ Every gate: a rotation, not a switch
Lab Missions — Do These in Order
Open the simulator above and work through each mission. Write down what you observe before reading ahead.
01
Find the Poles — The Classical States
Click |0⟩ in Preset States. Note where the arrow points and what the probabilities say.
Click gate X. Watch the arrow flip to the south pole.
Read the probabilities again. Measure Once. What result do you always get?
Think: The north pole |0⟩ and south pole |1⟩ behave exactly like classical bits — 100% one result every time. What does that tell you about classical computers as a special case of quantum?
02
Create Superposition — The H Gate
Click |0⟩ to reset to the north pole.
Click gate H. The arrow should jump to the equator (|+⟩).
Click Measure Once six times in a row. Record each result (0 or 1).
Think: Did you get a mix of 0s and 1s? Over many measurements the ratio approaches 50/50 — that's what 50% probability means physically. How is this different from a coin toss in terms of what the qubit was doing before you measured?
03
Phase Is Hidden From a Single Measurement
Click preset |+⟩. Note the probabilities (both 50%).
Click preset |i+⟩. Note the probabilities again.
Click preset |-⟩. Same result?
Think: All three states sit on the equator with identical 50/50 odds, but the arrow points in different directions. Phase is real — it affects how gates interact — but a single measurement can't see it. This is why quantum computing is tricky to test and understand.
04
Reversible Computing — H Then H Again
Click |0⟩ to start at the north pole.
Apply gate H. You're at the equator.
Apply gate H again. Where does the arrow go?
Think: H applied twice returns you to |0⟩ with 100% probability. Every quantum gate is reversible — unlike deleting a file, which destroys information. Why might reversibility matter for energy efficiency in future computers?
Part 5
Entanglement: One Shared State, Two Places
Two photons can be prepared in a single joint state, for example “both horizontal or both vertical, with no way to say which.” Alice measures one photon and Bob measures the other, possibly kilometers away. Each of them sees a perfectly random stream of results. But when they compare notes, their results are correlated, and the correlation depends on the angles of their polarizers. Einstein found this deeply uncomfortable (“spooky action at a distance”). In 1964 John Bell showed that experiments could decide between “pre-agreed hidden instructions” and quantum mechanics. The experiments (Clauser, Aspect, Zeilinger, honored with the 2022 Nobel Prize) side with quantum mechanics.
Entangled-Pair Lab
Each polarizer angle is chosen independently. A result is 0 (photon passes) or 1 (blocked).
Pairs sent0
Alice sees 0—
Results agree—
Quantum prediction100%
Same angles for both: their results should match every time, even though each one alone is a coin flip.
Reading the numbers
The chance their results agree is cos²(A − B). Equal angles: always agree. 90° apart: always disagree. 45° apart: 50% (looks like no relationship!). Alice’s column alone is always ~50% zeros, so Alice learns nothing about Bob’s setting. That is why entanglement can’t send messages faster than light.
The Bell test (CHSH)
The button runs four angle pairs (Alice 0° or 45°, Bob 22.5° or 67.5°) and combines the correlations into one score S. If particles carried pre-agreed hidden instructions, S can never exceed 2. Quantum mechanics predicts 2√2 ≈ 2.83. Real labs measure values above 2.
Common misconception: Entanglement is not a hidden wire that carries messages. It is a shared description. You still need an ordinary channel (phone, internet) to compare results and see the correlation. Entanglement is a fuel for quantum computing, secure quantum key distribution, and quantum networks, not for faster-than-light chat.
Think: Two gloves are sealed in separate boxes. Open one and find a left glove, and you instantly know the other is right. Why is that not enough to explain the Bell test result?
Part 6
Tunneling: Leaking Through Walls
A rolling ball with too little energy never crosses a hill. A quantum wave doesn’t stop dead at a barrier. Its amplitude decays exponentially inside, and if the barrier is thin enough, some wave emerges on the other side. The chance of getting through falls off roughly as e−2κL, so even a small change in thickness changes the odds enormously. Here the particle is an electron with less energy than the barrier is tall.
Tunneling Lab
The animated wave shows the real part of ψ. Taller amplitude on the right means better odds of transmission.
Transmission chance—
Roughly 1 in…—
Make the barrier thinner and watch the odds jump by factors of ten.
The Sun
Protons in the Sun’s core don’t quite have the energy to overcome their electrical repulsion. Tunneling lets a small fraction fuse anyway, which is why the Sun shines.
Scanning tunneling microscope
A needle tip hovers a nanometer above a surface. The tunneling current is so sensitive to distance that it maps single atoms (Binnig & Rohrer, Nobel Prize 1986).
Flash memory
Phone and USB storage writes data by tunneling electrons through an ultra-thin insulating layer onto a floating gate that traps them.
Think: Double the barrier width and predict whether the odds get 2× smaller or much more than that. Check with the slider. Why does a modern chip designer worry about this when transistor insulators shrink to a few atoms thick?
Quantum Computers Right Now
The Bloch sphere you just used describes real qubits inside real machines.
December 2024
Google Willow — 105 Qubits
Google's Willow chip solved a benchmark problem in five minutes that would take the fastest classical supercomputer 10 septillion years. Each qubit on that chip has a Bloch sphere just like the one you explored — the difference is the qubits are entangled with each other, which multiplies the computational space exponentially.
IBM Quantum
IBM Heron — 133 Qubits, Available Online
IBM lets anyone run real quantum programs on real hardware through IBM Quantum Platform (free account). Each job sends gate operations — X, H, CNOT — to a physical chip that manipulates actual superconducting qubits cooled to near absolute zero (−273 °C), colder than outer space.
What Quantum Computers Can (and Can't) Do
✓ Quantum Advantage
Simulate molecules for drug discovery and materials science
Break certain encryption schemes (Shor's algorithm)
Any task where the answer is already deterministic
Quantum Physics Is Already in Your Pocket
Quantum computing is the newest application. The older ones are everywhere. Match each device to the big idea behind it.
Technology
Quantum idea it uses
LEDs and lasers
Electrons drop between discrete energy levels and emit a photon of a precise color (Part 3).
Solar panels, camera sensors
Photons knock electrons loose in a semiconductor, a cousin of the photoelectric effect (Part 1).
Transistors and computer chips
Energy bands in crystals come from wave behavior of electrons, which is why silicon can be tuned from insulator to conductor.
Flash memory, scanning tunneling microscope
Tunneling (Part 6).
MRI scanners
Nuclear spin is a two-level quantum system, essentially a natural qubit, steered by magnetic fields and radio waves.
Atomic clocks and GPS
Atoms switch between two energy levels at an extremely reliable frequency.
Electron microscopes
Electrons behave as waves with tiny wavelengths, so they can image far smaller details than visible light (Part 2).
Quantum key distribution
Measuring a quantum state disturbs it, so eavesdropping leaves evidence (Part 4).
A Short History of the Quantum Idea
1900Max Planck explains the glow of hot objects by assuming energy is exchanged in tiny packets, E = hf.
1905Einstein uses light quanta to explain the photoelectric effect.
1913Niels Bohr proposes that atomic electrons occupy only certain energy levels.
1924Louis de Broglie suggests that matter has a wavelength.
1925–27Heisenberg and Schrödinger build quantum mechanics. Heisenberg states the uncertainty principle. Davisson and Germer observe electron diffraction.
1927The Solvay Conference gathers the founders. Bohr and Einstein begin their famous debate about what the theory means.
1935Einstein, Podolsky and Rosen question whether the theory is complete. Schrödinger names “entanglement.”
1964John Bell proves a testable limit on hidden-instruction explanations.
1994Peter Shor shows a quantum computer could factor large numbers efficiently, sparking global interest.
2022Aspect, Clauser and Zeilinger share the Nobel Prize in Physics for entanglement experiments.
2024Google’s Willow chip demonstrates error rates that fall as more qubits are added, a key step toward useful machines.
2025The United Nations marks the International Year of Quantum Science and Technology, a century after quantum mechanics was formulated.
Vocabulary Checklist
Word
Plain-language meaning
Quantum
The smallest indivisible packet of something, like one photon of light.
Photon
One quantum of light with energy E = hf.
Work function
The minimum energy needed to free an electron from a metal surface.
Wavefunction (ψ)
The mathematical description of a quantum state. The square of its size gives probabilities.
Interference
Waves adding or cancelling. Quantum probabilities do this too.
Energy level
One of the allowed energies of a confined particle or atom.
Uncertainty principle
Position and momentum cannot both be sharply defined at the same time.
Superposition
A state described as a blend of basis states, such as |0⟩ and |1⟩.
Decoherence
Loss of quantum behavior when a system leaks information to its environment.
Entanglement
A joint state of two or more particles that can’t be described one particle at a time.
Tunneling
Passing through a barrier that a classical particle could not cross.
Check Your Understanding
Answer all ten before comparing with a classmate.
Exit Ticket
Part A (3–4 sentences). Explain the difference between a qubit before measurement and a classical bit. Your answer must use the words superposition, probability, and phase. Bonus: describe what the H gate does in the spinning-coin analogy.
Part B (pick one). (1) Use the photoelectric lab to explain why brighter red light can’t eject electrons from zinc. (2) Describe what happens to the double-slit pattern when you detect which slit each particle uses, and why. (3) Explain why an electron in a smaller box has higher energy.
Part C. Name one technology from this lesson that you use every day, and the quantum idea it depends on.