---
title: "Quantum Well Spectroscopy Interactive Lab | Sandbox Physics"
description: "How much do the energy levels rise when a quantum well is made narrower?"
canonical_url: "https://sandboxphysics.com/labs/quantum-well-spectroscopy/"
language: "en"
page_type: "lab"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/labs/quantum-well-spectroscopy/"
last_modified: "2026-10-27"
---

Q009 · Shape, prepare and measure

# Quantum Well Spectroscopy

**How much do the energy levels rise when a quantum well is made narrower?** For an infinitely deep well the energies go as one over the width squared, so halving the width makes each level four times higher. Every bound level rises as the well narrows, and the gap between the lowest two widens.

Drag the walls, prepare bound levels and collect an energy spectrum. Design a gap, then estimate it from separate energy records of the two lowest prepared states.

> Interactive simulation: open this page in a web browser to change the parameters and run the model.

The Lab solves the one-dimensional Schrödinger equation in a sine basis. A finite well sits inside a numerical outer box, and box states above the threshold are not bound levels. Energy readouts are ideal projective measurements with Gaussian detector noise added; they are not an optical absorption spectrum.

Recorded evidence & model checks

Simulated independent preparations

## Measure a gap from two sets of records

Blue bars are recorded energies. The separate lower ruler marks model levels. The gap estimate subtracts sample means from the two known preparations, with one standard error; it never reads the model gap. The mixture has no hidden level labels in its records.

Measured lowest gap

$\text{—}$

Model bound states / displayed states

$\text{—}$

Selected-state edge probability

$\text{—}$

Basis and boundary checks

$\text{—}$

Finite and curved wells use a numerical box extending eight units beyond each wall. Weak bound states can shift or be missed. Only below-threshold states qualify, and only the lowest eight are available for preparation. The infinite-well box is physical. A matrix residual alone does not establish continuum accuracy.

Sources: [MIT 8.04 · 11](https://ocw.mit.edu/courses/8-04-quantum-physics-i-spring-2016/a565b327f85c7721b18f1074dbd69ede_MIT8_04S16_LecNotes11.pdf) · [Feynman III · 8](https://www.feynmanlectures.caltech.edu/III_08.html)

Physics tutorial

## Build a bound-state spectrum

**Background** Confining a particle changes the spatial states it is allowed to have.

**Why it matters** Link a potential you can reshape to the records you can actually estimate from.

Start with the essentials

- **Focus question**: Can you design an energy gap and then measure it?
- **One-sentence intuition**: Computed states, model references and measured outcomes play different roles, so keep them apart.

### Core mathematical model

#### Dimensionless units

$$
X=x/\ell,\quad \mu=m/m_*,\quad \mathcal E=Em_*\ell^2/\hbar^2,\quad \tau=\hbar t/(m_*\ell^2)
$$

Pick a reference mass and length. The controls, axes and CSV all use these units. In the double well, the mass ratio is fixed at one.

#### Sine-basis approximation

$$
u_j(X)=\sqrt{2/L}\sin\!\left[\frac{j\pi(X+L/2)}{L}\right],\quad H_{jk}=\frac{j^2\pi^2}{2\mu L^2}\delta_{jk}+\int u_jVu_k\,dX
$$

Every retained sine mode takes part in the evolution, and the potential integrals are done analytically. The displayed matrix residual checks the eigensolver; it does not measure basis or boundary error.

#### Finite or curved well

$$
V_{\rm square}(X)=\begin{cases}0,&|X|<w/2\\V_0,&|X|\ge w/2\end{cases},\qquad V_{\rm curved}(X)=\min\!\left[V_0,\frac{4V_0X^2}{w^2}\right]
$$

Energy is measured from the bottom of the well. Only eigenvalues below the outside potential count as bound. The numerical box extends eight units beyond each wall, and states near the threshold need a check of the box size.

#### Exact levels of an infinite well

$$
\mathcal E_n=\frac{(n+1)^2\pi^2}{2\mu w^2},\quad n=0,1,\ldots
$$

Here the hard walls are physical, and the sine basis is exact for the low levels shown. A wider well lowers the energies, and so does a heavier particle. Index zero is the ground state.

#### Matching conditions for a finite well

$$
k\tan(kw/2)=\kappa\quad\text{or}\quad-k\cot(kw/2)=\kappa,\qquad k=\sqrt{2\mu\mathcal E},\ \kappa=\sqrt{2\mu(V_0-\mathcal E)}
$$

Requiring the wavefunction and its derivative to be continuous gives an even and an odd branch. These continuum equations give an independent check of the numerical spectrum.

#### Recorded energies

$$
Y_j=\mathcal E_n+\eta_j,\quad \eta_j\sim\mathcal N(0,\sigma_E^2),\qquad \widehat{\Delta E}=\overline Y_1-\overline Y_0
$$

When you prepare a selected state, its level is known. An equal incoherent mixture samples the four lowest available states, but the records do not say which level each event came from. The readout noise comes from an ideal detector model, not from a natural linewidth.

#### Uncertainty of the gap estimate

$$
\mathrm{SE}(\widehat{\Delta E})=\sqrt{\frac{s_0^2}{N_0}+\frac{s_1^2}{N_1}}
$$

Each known preparation needs at least two records. This standard error leaves out numerical and calibration errors. The design target is a gap of 0.70, within five percent.

### Common difficulties

#### The numerical box is not the whole line

**Typical misconception** Every discrete computed energy is a bound state.

**Better mental model** A finite well binds only the states below the outside threshold. Check the basis and the box size separately.

#### More events do not fix the model

**Typical misconception** Sampling noise is the only source of error.

**Better mental model** A finite basis, artificial boundaries and missing detector physics each need their own check.

### Run the experiment

1. 01

   #### Shape the well

   Drag the walls and compare finite, infinite and curved wells.

   **What to observe:** The level spacings and the wavefunction tails respond in different ways.

2. 02

   #### Measure the gap

   Measure the lowest pair, then collect a mixed-state spectrum.

   **What to observe:** Because you know which state was prepared, you can estimate the gap without hidden labels.

3. 03

   #### Check the basis

   Select a high state and compare with a larger basis.

   **What to observe:** Sharp boundaries can need many more modes.

Physical conclusion

Check basis truncation and sampling error separately.

## Related experiments and articles

Condensed matter · Reading path

### Materials that control current and light

Articles on this path that use this experiment, followed by the other experiments they suggest.

1. [Article **How a semiconductor interface confines charge and light**](https://sandboxphysics.com/stories/condensed-matter/semiconductor-heterostructures/)
2. [Lab **Semiconductor Laser Diode** See the laser turn on after carriers accumulate](https://sandboxphysics.com/labs/semiconductor-laser-diode/)
3. [Lab **Heterojunction Injection** Heterojunction injection](https://sandboxphysics.com/labs/heterojunction-injection/)

Quantum & fields · Starter path

## Start from a single measurement

Predict an outcome, then count what the measurements actually give. The path starts with one qubit and moves on to wave packets, bound states and two-photon interference.

[Start here → **Quantum State & Born Measurement** Predict a probability, turn the analyzer, then compare your prediction with the measured frequency over many shots. Observe · 15 min](https://sandboxphysics.com/labs/qubit-state/)

1. [1 Quantum State & Born Measurement](https://sandboxphysics.com/labs/qubit-state/)
2. [2 Stern–Gerlach Sequence](https://sandboxphysics.com/labs/stern-gerlach-sequence/)
3. [3 Wave Packet & Uncertainty](https://sandboxphysics.com/labs/wave-packet-uncertainty/)
4. [4 Quantum Harmonic Oscillator](https://sandboxphysics.com/labs/quantum-harmonic-oscillator/)
5. [5 Which Path & Quantum Eraser](https://sandboxphysics.com/labs/quantum-eraser/)
6. [6 Hong–Ou–Mandel Two-Photon Interference](https://sandboxphysics.com/labs/hong-ou-mandel/)

[View the full path →](https://sandboxphysics.com/topics/quantum/#starter-path)
