# 1D Schrödinger Equation Solver - Potential Well Energy Levels, Quantum Tunneling Animation, Superposition

> Solve the 1D Schrödinger equation online: energy levels and wavefunctions for wells, oscillators or a drawn potential, plus tunneling wave packets and T(E).

- URL: https://qilingtools.com/en/math/quantum
- Category: Physics Tools (https://qilingtools.com/en/physics)
- Tags: [Physics](https://qilingtools.com/en/tags/physics), [Education](https://qilingtools.com/en/tags/education)
- Last updated: 2026-10-26
- Price: Free, no sign-up
- Privacy: Runs locally in the browser; files are never uploaded

Solve the one-dimensional Schrödinger equation numerically in your browser. By default the particle is an electron, with lengths in nm and energies in eV; you can switch to atomic units (ħ = mₑ = 1). The bound-state panel discretises the Hamiltonian with finite differences into a symmetric tridiagonal matrix, finds the lowest levels by Sturm-sequence bisection and the normalised wavefunctions by inverse iteration, draws them on the potential and compares every level with the analytic result for the infinite well, harmonic oscillator and finite well; you can also draw any piecewise potential straight onto the plot. The wave-packet panel evolves a Gaussian packet with the Crank–Nicolson scheme as it hits a barrier, step, well or double barrier, animating Re ψ, Im ψ and |ψ|², tracking reflection and transmission, and comparing with an exact transfer-matrix T(E). The superposition panel shows two eigenstates sloshing at ΔE/ħ, with ⟨x⟩ against time.

## How to use

1. Pick a panel: bound states, wave-packet tunneling or superposition
2. Choose a potential and set the width, depth, ħω, barrier height and width, or draw the potential on the plot
3. Click a level to see its wavefunction and probability density, play the packet to measure transmission, or pick two states to watch them oscillate

## Features

- Finite-difference Hamiltonian with a symmetric tridiagonal eigensolver, error against analytic levels listed for each state
- Infinite and finite square wells, harmonic oscillator, double well and a custom potential you draw
- ψₙ or |ψₙ|² drawn on each level, with Δx and the probability in the classically forbidden region
- Crank–Nicolson wave-packet evolution that conserves probability, with automatic transmission measurement
- Exact transfer-matrix T(E), the square-barrier formula and the classical particle for comparison
- Animated |Ψ(x,t)|² for superpositions with ⟨x⟩(t) and transition frequency; atomic-units toggle

## FAQ

### What are the energy levels of an infinite square well, and how big are they for an electron in a 1 nm box?

Eₙ = n²π²ħ²/(2ma²) for n = 1, 2, 3…, so the levels grow as n², with wavefunctions ψₙ = √(2/a)·sin(nπx/a). For an electron ħ²/2mₑ ≈ 0.0381 eV·nm², so a 1 nm box gives E₁ ≈ 0.376 eV, E₂ ≈ 1.50 eV and E₃ ≈ 3.38 eV. Halving the width multiplies every level by four, which is why smaller quantum dots glow bluer.

### How do you calculate the tunneling probability through a barrier?

For energy E below a square barrier of height V₀ and width a, T = [1 + V₀² sinh²(κa) / (4E(V₀ − E))]⁻¹ with κ = √(2m(V₀ − E))/ħ. For thick barriers T ≈ 16(E/V₀)(1 − E/V₀)e^(−2κa), falling exponentially with width. A 0.8 eV electron meeting a 1 eV, 0.5 nm barrier has T ≈ 0.24. Above the barrier T is not automatically 1: transmission is complete only when k′a = nπ.

### Why does the wave packet's transmission differ from the plane-wave T(E₀)?

A packet of finite width contains a spread of momenta; a Gaussian of width σ has a momentum spread of ħ/(2σ). Because T(E) changes steeply with energy, roughly exponentially when tunneling, the faster components contribute more, so the measured transmission is the momentum-weighted average ⟨T⟩, usually above T(E₀). Wider packets have sharper momentum and approach the plane-wave value. The tool shows both alongside the simulated result.

### Why use the Crank–Nicolson method?

It discretises time implicitly about the midpoint: (1 + iHΔt/2ħ)ψⁿ⁺¹ = (1 − iHΔt/2ħ)ψⁿ. This Cayley form is unitary, so total probability is conserved exactly at every step, and it is stable for any time step; in 1D each step only needs a tridiagonal solve, so the cost scales linearly with the grid size. A simple explicit Euler step instead makes the norm grow until the solution blows up.

### Why does a superposition of two levels slosh back and forth, and how is that related to light emission?

For Ψ = c₁ψ₁e^(−iE₁t/ħ) + c₂ψ₂e^(−iE₂t/ħ) the density contains the cross term 2c₁c₂ψ₁ψ₂cos(ΔE·t/ħ), so the distribution oscillates at ω = ΔE/ħ with period h/ΔE. If the two states have opposite parity, ⟨x⟩ oscillates too, giving an oscillating dipole that radiates light at ν = ΔE/h, which is Bohr's frequency condition. States of equal parity have zero dipole matrix element, which is why such dipole transitions are forbidden.

## Related tools

- [Unit Converter](https://qilingtools.com/en/math/unit): Free online unit converter: length, area, volume, weight, temperature, time, speed, data, pressure, energy and angle — one value converts every unit at once.
- [Vector Calculator](https://qilingtools.com/en/math/vector): Free online vector calculator for 2D and 3D: addition, scalar multiples, dot and cross products, magnitude, angle, unit vector and projections, with checks.
- [Significant Figures Calculator](https://qilingtools.com/en/math/significant-figures): Free online sig fig calculator: count significant figures digit by digit, round to N sig figs or decimals with six rounding modes, and compute by sig fig rules.
- [Tone Generator](https://qilingtools.com/en/audio/tone-generator): Free online tone generator: sine, square, sawtooth and triangle waves from 1 to 20,000 Hz, a note picker, sweeps, white/pink/brown noise and a WAV download.
- [Audio Spectrogram](https://qilingtools.com/en/audio/spectrogram): Free online spectrogram generator: see time, frequency and level from a Hann-windowed STFT, with FFT size, log axis, dB range and colour maps. Exports PNG.
- [Decibel Meter](https://qilingtools.com/en/audio/decibel): Free online decibel meter: measure noise with your mic in real time, A/C/Z weighting, fast/slow response, min/max/average/Leq, 60-second graph and calibration.
- [Physics Formula Calculator](https://qilingtools.com/en/math/physics): Physics formulas solved with steps: SUVAT, projectiles, Newton’s laws, inclines, energy, Ohm’s law, resistors, RC, buoyancy, waves, lenses, gravity.
- [Fourier Series & FFT Visualizer](https://qilingtools.com/en/math/fourier): Fourier series coefficients and animated partial sums for square, sawtooth, triangle or any function (Gibbs), draw-your-own epicycles and FFT spectra.
