Skip to content
Tutorials Center
My learning

Topics

Lesson 27 of 38 · Operators, Observables and Uncertainty

Two-Level Systems and Matrix Mechanics

Represent states as vectors and observables as matrices, diagonalize a two-level Hamiltonian, and compute Rabi-type oscillations and tunnel splitting in Python.

So far operators acted on wavefunctions of x. There is an equivalent and often simpler picture: states are vectors, observables are matrices, and the eigenvalue equation Âφ = aφ is exactly the matrix eigenvalue problem from linear algebra. (You used this idea when the numerical solver turned H into a matrix.) This was the original formulation by Heisenberg, Born and Jordan in 1925, a few months before Schrödinger's wave equation, and the two are mathematically equivalent.

The simplest nontrivial case has only two states. It looks like a toy, but it describes electron spin, the two polarization states of a photon, a molecule that can flip between two shapes, and the lowest two levels of many atoms and circuits. Everything you learn here carries over to larger systems.

States as vectors

Take two orthonormal basis states |1⟩ and |2⟩. This is the bra-ket notation (Dirac): |ψ⟩ is a state vector, and ⟨φ|ψ⟩ is the inner product (overlap) of two states. A general state is

Text
|ψ⟩ = c₁ |1⟩ + c₂ |2⟩  →  column vector (c₁, c₂)

with |c₁|² + |c₂|² = 1. The numbers |c₁|² and |c₂|² are the probabilities of finding the system in state 1 or 2. An observable  becomes a 2×2 Hermitian matrix with entries A_ij = ⟨i|Â|j⟩, and ⟨A⟩ = ψ† A ψ (conjugate transpose times matrix times vector).

The two-level Hamiltonian

Suppose the system has two states of equal energy E₀ that are coupled with strength V (a real number). The Hamiltonian matrix is

Text
H = [ E₀   V ]
    [  V  E₀ ]

The diagonal entries are the energies of the uncoupled states, the off-diagonal entry V is the coupling that lets the system hop between them. Diagonalizing:

Text
Eigenvalues:   E₊ = E₀ + V,   E₋ = E₀ - V
Eigenvectors:  |+⟩ = (|1⟩ + |2⟩)/√2,   |−⟩ = (|1⟩ − |2⟩)/√2

The coupling splits the degenerate level into two, separated by 2V. The lower state is the symmetric or antisymmetric combination depending on the sign of V. This is the same physics as the tunnel splitting you found for the double well: there V is set by tunneling through the barrier.

Time evolution

The Schrödinger equation iħ d|ψ⟩/dt = H|ψ⟩ has the solution |ψ(t)⟩ = e^{-iHt/ħ} |ψ(0)⟩, where the matrix exponential is easiest in the eigenbasis: each eigenvector just gets its own phase e^{-iE t/ħ}.

Start in |1⟩ = (1/√2)(|+⟩ + |−⟩). Then

Text
|ψ(t)⟩ = e^{-iE₀t/ħ} [ cos(Vt/ħ) |1⟩ - i sin(Vt/ħ) |2⟩ ]

so the probability of being in state 2 is

Text
P₂(t) = sin²(V t / ħ)

The system oscillates between the two states with angular frequency 2V/ħ (the probability returns to 0 after a time πħ/V). A beat between the two energy eigenstates, whose energy difference is 2V, causes this. The overall phase e^{-iE₀t/ħ} has no effect on probabilities.

Ammonia (NH₃) is a classic physical example: the nitrogen atom sits above or below the plane of the three hydrogens, and it can tunnel between the two positions. The two lowest states are the symmetric and antisymmetric combinations, split by a small energy corresponding to a microwave transition of about 23.7 GHz. This transition was used in the first maser (1953). The two-level model captures that splitting; actual ammonia has more structure.

Computing it

The first editor builds H, diagonalizes it with numpy.linalg.eigh, evolves |1⟩ using the matrix exponential from SciPy and compares with the formula P₂ = sin²(Vt/ħ). We work in units ħ = 1.

Python A degenerate two-level system

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Detuning: when the two levels are not degenerate

If the uncoupled energies differ by ε, the Hamiltonian is

Text
H = [ ε/2   V  ]
    [  V  -ε/2 ]

(we have shifted the zero of energy to the midpoint, which only changes an unobservable overall phase). The eigenvalues are ±Ω with Ω = √((ε/2)² + V²). A system started in |1⟩ has

Text
P₂(t) = (V² / Ω²) sin²(Ω t / ħ)

This is the Rabi formula (for a driven two-level atom the same expression appears, with the detuning being the difference between the driving frequency and the transition). Two lessons: the oscillation is faster when ε is larger, and its amplitude V²/Ω² shrinks, so a system whose levels are far apart (|ε| ≫ V) barely leaves its starting state. The second editor draws P₂(t) for several detunings.

Python Oscillations for different level detunings

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Pauli matrices

Any 2×2 Hermitian matrix can be written a·1 + b·σ with the identity and the three Pauli matrices

Text
σ_x = [0 1; 1 0],   σ_y = [0 -i; i 0],   σ_z = [1 0; 0 -1]

The detuned Hamiltonian is H = (ε/2) σ_z + V σ_x. They do not commute with each other (σ_x σ_y - σ_y σ_x = 2iσ_z), and they are the building blocks of spin one-half, which is the subject of the coming chapter on angular momentum.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. A two-level system has H = [[E₀, V], [V, E₀]]. What are its energy eigenvalues?

    The eigenvectors (1, ±1)/√2 give eigenvalues E₀ ± V. The coupling V splits the degenerate level by 2V.
  2. 2. Starting in state |1⟩ with H as above, how does the probability of finding |2⟩ vary?

    The two energy eigenstates beat against each other, giving P₂ = sin²(Vt/ħ).
  3. 3. If the two uncoupled levels are far apart compared with the coupling (|ε| much greater than V), the maximum probability of leaving the starting state is

    The Rabi amplitude is V²/Ω² with Ω² = (ε/2)² + V², which is small when |ε| is much larger than V.
  4. 4. In the matrix picture, what is the probability of a measurement finding the state |ψ⟩ = (c₁, c₂) in |1⟩?

    As always, probabilities are the squared magnitudes of the amplitudes.

Summary

  • States are vectors and observables are Hermitian matrices; the possible results are the eigenvalues, and ⟨A⟩ = ψ† A ψ.
  • A symmetric two-level system with coupling V has energies E₀ ± V; an initial state in one level oscillates with P = sin²(Vt/ħ).
  • With detuning ε, P(t) = (V²/Ω²) sin²(Ωt/ħ) with Ω = √((ε/2)² + V²) (the Rabi formula).
  • Pauli matrices are the basic two-level observables and lead directly to spin one-half.

Next: Energy Levels of the Harmonic Oscillator