Build a Quantum Tunneling Simulator with Claude Code + Manim
Nik Bear Brown — Claude Code, Manim, and the physics, taken apart. The prompt. Claude Code terminal: claude — write a Manim scene, quantum tunneling through a rectangular barrier. V-zero equals one electron-volt, incident energy E equals zero-point-five. Vary barrier width d from zero to two nanometers. Plot log T…
Build a Quantum Tunneling Simulator with Claude Code + Manim
Nik Bear Brown — Claude Code, Manim, and the physics, taken apart. The prompt. Claude Code terminal: claude — write a Manim scene, quantum tunneling through a rectangular barrier. V-zero equals one electron-volt, incident energy E equals zero-point-five. Vary barrier width d from zero to two nanometers. Plot log T versus d. Three things in every prompt: the rule, the numbers, what to render. The CLI writes the file. Before running — read it. Find this line: kappa equals sqrt two m times delta-V over h-bar. That is the decay constant. Check: for V-zero minus E equals zero-point-five electron-volts, kappa comes out one-point-one-five nanometers-inverse. That sets the slope of the log T curve. Thirty seconds. Not optional. Run it. Two things to verify. First: at d equals zero, transmission T equals one. The curve starts at the top. No barrier — full transmission. Second: the log T curve is perfectly linear in d. Slope equals negative two times kappa, negative two-point-three per nanometer. Classical physics predicts zero transmission at any positive d. This is the gap. Both checks pass. Ready to iterate. Iterate: claude — update tunneling dot py — raise V-zero to two electron-volts. Watch kappa increase to one-point-six-two nanometers-inverse and the slope steepen. Each nanometer now kills more current. One number, one check, one re-run. Prompt, read, run, verify, change. The loop is what you carry forward. Nik Bear Brown. Brutalist and Educational A-I. On YouTube, at Nik Bear Brown. Nik Bear Brown dot com.
youtube.com/@NikBearBrown
Transcript
A lightly formatted transcript of the video, with timestamps so you can jump to any section on YouTube.
[0:00] Nick Bear Brown, Claude Code, Man and the physics taken apart. The prompt, Claude Code terminal. Claude, write a Man scene, quantum tunneling through a rectangular barrier. V0 = 1 electron volt, incident energy E = 0.5. Vary barrier width D from 0 to 2 nanometers. Plot log T versus D. Three things in every prompt, the rule, the numbers, what to render. The CLI writes the file. Before running, read it. Find this line. Kappa = sqrt 2M * delta V over H bar. That is the decay constant. Check. For V0 - E = 0.5 electron volts, Kappa comes out 1.15 nanometers inverse. That sets the slope of the log T curve.
[0:52] 30 seconds, not optional. Run it. Two things to verify. First, at D = 0, transmission T = 1. The curve starts at the top. No barrier, full transmission. Second, the log T curve is perfectly linear in D. Slope = -2 * Kappa, -2.3 per nanometer. Classical physics predicts zero transmission at any positive D. This is the gap. Both checks pass. Ready to iterate. Iterate. Claude I, update tunneling.py, raise V0 to 2 electron volts. Watch Kappa increase to 1.62 nanometers inverse and the slope steepen. Each nanometer now kills more current. One number, one check, one rerun. Prompt, read, run, verify, change. The loop is what you carry forward. Nick Bear Brown,
[1:46] Brutalist and educational AI on YouTube at Nick Bear Brown, nickbearbrown.com.





