---
title: Problem set 11
heading: "Problem set 11: computing quantum mechanics"
eyebrow: B10 · Problem set 11
type: problems
---

::: hook
These problems use the course's labs: the wave packet lab (13), the matrix mechanics lab (18), the approximation methods lab (39), the quantum dynamics lab (45) and the quantum lab (49). Each asks what a computation needs or what it should give: grid spacings, step counts, convergence, and the exact answers simulations are judged against. Units are ħ = m = 1 unless stated.
:::

::: pool
pick: 12

::: check
kind: parts
given: s = 0.5 | 2 | 5; t = 2 | 20

## A free packet starts with width {s} (ħ = m = 1).

::: part
answer: s*sqrt(1 + (t/(2*s^2))^2)
tolerance: 0.5%

### How wide is it at t = {t}?

::: misses
- [any] $\sigma_0\sqrt{1 + (t/2\sigma_0^2)^2}$.
:::
:::

::: part
answer: 2*sqrt(3)*s^2
tolerance: 0.5%

### When has it doubled?

::: misses
- [any] $2\sqrt3\sigma_0^2$.
:::
:::
:::

::: check
kind: parts
given: dx = 0.05 | 0.1 | 0.2; k = 1 | 3

## A grid of spacing {dx} carries a packet with wavenumber {k}.

::: part
answer: pi/dx
tolerance: 0.5%

### What is the largest wavenumber the grid can represent?

::: misses
- [2*pi/dx] The Nyquist limit is $\frac{\pi}{\Delta x}$.
- [any] Half the sampling rate in k.
:::
:::

::: part
answer: 2*pi/(k*dx)
tolerance: 0.5%

### How many grid points sample one wavelength?

::: misses
- [any] $\frac{\lambda}{\Delta x}$ with $\lambda = \frac{2\pi}{k}$.
:::
:::
:::

::: check
kind: parts
given: dx = 0.0977 | 0.1; d = 1 | 2

## A barrier of width {d} is set on grid points where |x| < {d}/2, with spacing {dx}, the grid placed so a point sits at x = dx/2.

::: part
answer: 2*floor(d/2/dx - 0.5 + 1e-9) + 2
tolerance: 0.5%

### How many grid points fall inside?

::: misses
- [any] Count the points $\pm\frac{\Delta x}{2}, \pm\frac{3\Delta x}{2}, \ldots$ inside $\frac d2$.
:::
:::

::: part
answer: (2*floor(d/2/dx - 0.5 + 1e-9) + 2)*dx
tolerance: 0.5%

### How wide is the barrier the simulation actually sees?

::: misses
- [any] Points times spacing.
:::
:::
:::

::: check
kind: parts
given: T = 3.1416 | 10 | 100; dt = 0.001 | 0.01

## A split-step simulation runs to time {T} with steps of {dt}.

::: part
answer: T/dt
tolerance: 0.5%

### How many steps does it take?

::: misses
- [any] $\frac{T}{\Delta t}$.
:::
:::

::: part
answer: 4
tolerance: 0.5%

### By what factor does its total error shrink when the step is halved?

::: misses
- [8] Each step's error goes as $\Delta t^3$, but there are twice as many steps.
- [any] The global error goes as $\Delta t^2$.
:::
:::
:::

::: check
kind: parts
given: N = 50 | 200 | 1000

## A box's ground state is computed by finite differences on N = {N} interior points.

::: part
answer: (pi/(N + 1))^2/12*100
unit: %
tolerance: 1%

### About how large is the relative error?

::: misses
- [any] $\frac{1}{12}\left(\frac{\pi}{N + 1}\right)^2$.
:::
:::

::: part
answer: ((pi/(N + 1))^2/12)/((pi/(2*N + 2))^2/12)
tolerance: 0.5%

### By what factor does it shrink with twice the points (2N + 1)?

::: misses
- [any] The error goes as the spacing squared.
:::
:::
:::

::: check
kind: parts
given: g = 0.5 | 1 | 4

## The quartic well $\frac{p^2}{2} + \given{g}x^4$ is solved two ways.

::: part
answer: 0.75*(0.75*g)^(1/3)
tolerance: 0.5%

### What does a Gaussian trial function give for its ground state?

::: misses
- [any] Minimize $\frac b2 + \frac{3g}{16b^2}$.
:::
:::

::: part
answer: 0.667986*g^(1/3)
tolerance: 0.5%

### What is the exact value?

::: misses
- [any] $0.667986\,g^{1/3}$.
:::
:::
:::

::: check
kind: parts
given: n = 1 | 2 | 6

## WKB is applied to level n = {n} of $\frac{p^2}{2} + x^4$.

::: part
answer: ((n + 0.5)*pi/(2*sqrt(2)*0.874019))^(4/3)
tolerance: 0.5%

### What does it give?

::: misses
- [any] $\left[\frac{(n + \frac12)\pi}{2\sqrt2\,I}\right]^{4/3}$ with I = 0.8740.
:::
:::

::: part
answer: (4/3)*((n + 0.5)*pi/(2*sqrt(2)*0.874019))^(1/3)*pi/(2*sqrt(2)*0.874019)
tolerance: 0.5%

### About how far apart are neighboring levels there, from the derivative?

::: misses
- [any] $\frac{dE}{dn}$ of the WKB formula.
:::
:::
:::

::: check
kind: parts
given: F = 0.5 | 2 | 8

## A particle sits in $V = \given{F}x$ for x > 0 with a hard wall at 0 (ħ = m = 1).

::: part
answer: (F^2/2)^(1/3)*2.33811
tolerance: 0.5%

### What is its ground state?

::: misses
- [any] $\left(\frac{F^2}{2}\right)^{1/3}a_1$.
:::
:::

::: part
answer: (F^2/2)^(1/3)*(4.08795 - 2.33811)
tolerance: 0.5%

### How far above it is the next level?

::: misses
- [any] The Airy zeros 2.33811 and 4.08795.
:::
:::
:::

::: check
kind: parts
given: w = 1 | 3; t = 0.2 | 0.7

## A spin starts along +x and precesses about z at ω = {w} (ħ = 1).

::: part
answer: 0.5*cos(w*t)
tolerance: 0.5%

### What is ⟨S_x⟩ at t = {t}?

::: misses
- [any] $\frac12\cos\omega t$.
:::
:::

::: part
answer: 0.5*sin(w*t)
tolerance: 0.5%

### And ⟨S_y⟩?

::: misses
- [-0.5*sin(w*t)] Check the sense: $H = \omega S_z$ turns +x toward +y.
- [any] $\frac12\sin\omega t$.
:::
:::
:::

::: check
kind: parts
given: W = 1 | 3; D = 0.5 | 2; t = 0.5 | 1

## A two-level system is driven with Ω = {W} and Δ = {D} (rad per unit time).

::: part
answer: W^2/(W^2 + D^2)*sin(sqrt(W^2 + D^2)*t/2)^2
tolerance: 0.5%

### What is its upper population at t = {t}?

::: misses
- [any] Rabi's formula.
:::
:::

::: part
answer: sqrt(W^2 + D^2)
tolerance: 0.5%

### At what angular frequency does it oscillate?

::: misses
- [any] $\sqrt{\Omega^2 + \Delta^2}$.
:::
:::
:::

::: check
kind: parts
given: N = 5 | 10 | 30; t = 0.5 | 1

## N = {N} wells are coupled to neighbors by t = {t}.

::: part
answer: -2*t*cos(pi/(N + 1))
tolerance: 0.5%

### What is the lowest level?

::: misses
- [-2*t] That's the infinite chain's band bottom; a finite chain sits a little above it.
- [any] $-2t\cos\frac{\pi}{N + 1}$.
:::
:::

::: part
answer: 2*t*cos(pi/(N + 1)) - 2*t*cos(N*pi/(N + 1))
tolerance: 0.5%

### How wide is the spread of all N levels?

::: misses
- [any] Top level minus bottom level.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 5; V = 0.2 | 1; dt = 0.001 | 0.01

## A Landau–Zener step has diagonal ±{a} and coupling {V} (ħ = 1).

::: part
answer: sqrt(a^2 + V^2)
tolerance: 0.5%

### What is ω in the exact two-level propagator?

::: misses
- [any] $\omega = \sqrt{a^2 + V^2}$.
:::
:::

::: part
answer: cos(sqrt(a^2 + V^2)*dt)
tolerance: 0.5%

### What is the propagator's diagonal real part over one step of {dt}?

::: misses
- [any] $\cos\omega\Delta t$.
:::
:::
:::

::: check
kind: parts
given: T1 = 10 | 50; T2 = 8 | 20; t = 5 | 30

## Bloch equations: a vector starts on the equator with $T_1$ = {T1} and $T_2$ = {T2}.

::: part
answer: exp(-t/T2)
tolerance: 0.5%

### What is its horizontal length at t = {t}?

::: misses
- [any] $e^{-t/T_2}$.
:::
:::

::: part
answer: sqrt(exp(-2*t/T2) + (1 - exp(-t/T1))^2)
tolerance: 0.5%

### How long is the whole Bloch vector then?

::: misses
- [any] Combine the horizontal part and $r_z = 1 - e^{-t/T_1}$.
:::
:::
:::

::: check
kind: parts
given: b = 30 | 45 | 60

## A Bell test uses Alice at 0° and 90°, Bob at {b}° and {b} + 90°, on a singlet.

::: part
answer: abs(-cos(b*pi/180) + cos((b + 90)*pi/180) - cos((90 - b)*pi/180) - cos((90 - b - 90)*pi/180))
tolerance: 0.5%

### What CHSH value results?

::: misses
- [any] $|E(0, b) - E(0, b + 90) + E(90, b) + E(90, b + 90)|$ with $E = -\cos(a - b)$.
:::
:::

::: part
answer: 2*sqrt(2)
tolerance: 0.5%

### What is the largest value any choice of angles can give?

::: misses
- [2] That's the local hidden-variable limit; quantum mechanics reaches $2\sqrt2$.
- [any] Tsirelson's bound.
:::
:::
:::

::: check
kind: parts
given: s = 5 | 15 | 50

## A packet has width {s} (ħ = m = 1).

::: part
answer: 1/(2*s)
tolerance: 0.5%

### What is its spread in wavenumber?

::: misses
- [any] $\sigma_k = \frac{1}{2\sigma_x}$.
:::
:::

::: part
answer: 4/s
tolerance: 0.5%

### Over what total range of k should a transmission average extend, to cover ±8 standard deviations?

::: misses
- [any] $16\sigma_k$.
:::
:::
:::
:::
