B1051 of 55
0 XP
  1. Hook
  2. Predict
  3. Name it
  4. Check
  5. Explain

B10 · Lesson 51 · Quantum lab

Finite differences, shooting, and the levels of real wells

Only a handful of potentials have exact solutions. Device engineers solve the rest numerically, and two methods cover most of what they need. Finite differences turn the Schrödinger equation into a matrix eigenvalue problem: every level at once. Shooting integrates the equation from one wall at a trial energy and adjusts the energy until the solution lands on the other wall: one level at a time, very accurately. In this lab you'll write both, check them against the infinite well and the oscillator, use shooting on the 10 nm GaAs well of lesson 12, and solve the MOSFET triangular well that lessons 37 and 38 could only approximate.

Predict

A finite-difference solver uses 1000 interior points across an infinite well. How accurate is its ground-state energy?

Name it

What you'll write

  1. fd_levels(V, a, b, n=1000, k=4, m=1.0): the lowest k energies (eV) for the potential V(x) (x in nm, V in eV) on (a, b) with hard walls, effective mass m (in units of me), using n interior grid points. The Hamiltonian is the symmetric tridiagonal matrix with 2t+V(xi) on the diagonal and −t beside it, where t=cmh2 and c = 0.0381 eV·nm². Use np.linalg.eigvalsh.
  2. numerov(V, E, a, b, n=4000, m=1.0): integrate ψ′′=m(V−E)cψ from ψ(a) = 0, ψ(a + h) = h to x = b with Numerov's method, and return ψ(b). Then shoot_level(V, a, b, lo, hi, m=1.0, n=4000): bisect on the sign of ψ(b) between energies lo and hi, which must bracket one level, 50 times.
  3. triangular_levels(F, m, k=2): the lowest k levels of the triangular well V = eFx (F in MV/cm, so eF = 0.1F eV/nm) with a hard wall at x = 0, using fd_levels on a domain long enough that the far wall doesn't matter.

Numerov's method

For ψ′′=f(x)ψ, with wi=1−h212fi:

ψi+1=(12−10wi)ψi−wi−1ψi−1wi+1

It's accurate to h4 per unit length for smooth potentials. At a jump in V, put a grid point exactly on the jump and give V its average value there; otherwise the well's edges are effectively misplaced by up to a grid step.

What to expect

  • Infinite well: Ej=0.376j2L2 eV.
  • Oscillator V=(ℏω)24cx2: Ej=(j+12)ℏω.
  • 10 nm GaAs well with 0.3 eV walls: 34.21, 132.59 and 271.50 meV.
  • Triangular well: E1=2.33811(ce2F2/m)1/3 and E2=4.08795(…)1/3.

Worked example

Write the oscillator potential for ħω = 50 meV with x in nm.

Show the solution
  1. The potential. With c=ℏ22m, which is 0.0381 eV·nm², V=12mω2x2=(ℏω)24cx2=0.00250.1524x2=0.0164x2eV
  2. Ground-state width. σ=c/ℏω=0.87nm
  3. Choosing the box. A box from −8 to 8 nm puts the walls about nine widths away, where ψ is negligible for the first several levels.

Answer V=0.0164x2 eV with x in nm.

Worked example

How do you know which level shooting found?

Show the solution
  1. Count the zeros. Count the zeros of ψ between the walls: level j has j − 1 of them.
  2. Watch the sign at the far wall. As E increases through the levels, ψ(b) changes sign once per level, so between two consecutive levels it has one fixed sign.
  3. Bracket and bisect. Bracketing with energies on either side of a single sign change, and bisecting, can't skip to the wrong level.

Answer count the nodes of ψ (level j has j − 1), and bracket a single sign change of ψ(b) so bisection can't jump to another level.

Check

Step 1. Write fd_levels(V, a, b, n=1000, k=4, m=1.0).

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Step 2. Write numerov(V, E, a, b, n=4000, m=1.0) and shoot_level(V, a, b, lo, hi, m=1.0, n=4000).

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Step 3. Write triangular_levels(F, m, k=2) using fd_levels.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

A finite-difference solver uses N = 200 interior points in an infinite well. By about what fraction does it underestimate level j = 3?

Check

What coefficient, in eV/nm², gives an electron oscillator potential V=Ax2 with ħω = 50 meV?

Write units the way you normally would: 1.5 eV/nm², 1500 meV/nm² and 0.0015 keV/nm² are the same answer.

Check

What's the second level of the triangular well at 1 MV/cm with m* = 0.19me?

Write units the way you normally would: 1.5 eV, 1500 meV and 0.0015 keV are the same answer.

Explain why

Why does a shooting solution at a wrong energy blow up past the far wall, and how does that help find the level?

Practice

Keep practicing

6 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.