Skip to content

Particle in a box

JavaScriptThree.js

The Infinite Square Well (ISW) is an idealization of a physical system that strictly prohibits the particle from straying beyond a certain range of x-values, but exerts no influence over the particle within those limits. So the particle is “free” to roam, but only over a prescribed range on the x-axis. — Visualizing Quantum Mechanics with Python

Source

🧠 3D visualization based on the book Visualizing Quantum Mechanics with Python
🧠 2D visualization based on SquareWell.html by Daniel V. Schroeder
🐍 A VPython demo is available as well, see infinite_squarewell.py

📌 Highly recommended background information: Simulating quantum mechanics with Python
👉 Note that the energy of the eigenstates go like n2n^2.
👉 For example, we observe that the n=2n = 2 state has four times the energy, and therefore four times the frequency of the ground state n=1n = 1!
👉 More physics software by Daniel V. Schroeder can be found here

A 2D Infinite Square Well (ISW) is a potential well that has zero potential energy over a finite domain in two directions, say the xx- and yy-directions, and is infinite outside that domain. The simplest case is a rectangular domain in the xyxy-plane with sides LxL_x and LyL_y. In this case the 2D time-independent Schrödinger wave equation factors into two 1D time-independent Schrödinger wave equations, one in the xx-direction and one in the yy-direction. The wavefunction is then a product of the two 1D wavefunctions. The wavefunction is then given by a superposition of energy eigenstate wavefunctions of the form ψnm(x,y)=Asin⁡(nπx/Lx)sin⁡(nπy/Ly)\psi_{nm}(x, y) = A \sin(n\pi x/L_x) \sin(n\pi y/L_y ). — Visualizing Quantum Mechanics with Python

Source

🧠 Idea taken from the book Visualizing Quantum Mechanics with Python
👉 Highly recommended background information: Visualizing complex numbers and wavefunctions in one and two dimensions

📌 Analytic time evolution for a particle in a two-dimensional infinite square well.
📌 The well is represented by the stationary basis ψ(n,m)=sin⁡(nπx/Lx)sin⁡(mπy/Ly)\psi(n,m) = \sin(n\pi x/L_x) \sin(m \pi y/L_y).
📌 The wavefunction evolves by applying the corresponding phase factors.