---
title: Coherent states and the quantized LC circuit
heading: The quantum state of a classically driven resonator, its photon statistics and its noise
eyebrow: B10 · Lesson 8 · Coherent states
xp: 40
---

::: hook
Lesson 7 found the oscillator's energy levels, and none of them looks like a swinging pendulum or an LC circuit ringing: in a stationary state nothing moves. Drive a resonator with a classical signal generator, though, and it settles into a special superposition of all those levels, a **coherent state**, whose center swings exactly like the classical oscillator while its uncertainty stays as small as quantum mechanics allows. Laser light and microwave drive tones are coherent states, and their photon statistics set the shot-noise floor of every optical receiver.
:::

::: play
- The complex plane is the oscillator's phase space: real part for position (or charge), imaginary part for momentum (or flux), in units where the ground state is a disk of radius ½.
- A coherent state |α⟩ is that same disk shifted out to α, rotating at the oscillator's frequency. Increase |α|: the disk keeps its size while its distance from the origin grows.
- The readouts give the mean photon number $|\alpha|^2$ and the relative spread in photon number, $\frac{1}{|\alpha|}$, which shrinks as the state grows more classical.
:::

```sim plot
view: complex
range: 4
slider: a = 0..5 step 0.1 = 3
slider: p = 0..360 step 5 = 30
curve: a*exp(j*p*pi/180) + 0.5*exp(j*u) | over: u = 0..2*pi | label: coherent state's uncertainty disk
curve: 0.5*exp(j*u) | over: u = 0..2*pi | dashed | label: ground state
dot: a*exp(j*p*pi/180) | label: center
readout: mean photon number = a^2 | digits: 4
readout: relative photon-number spread = 1/(a + 1e-9) | digits: 3
```

::: predict
## A coherent state holds on average 2 photons. If you count them, how often do you find none at all?

- [ ] Never: there are 2 photons
- [x] About 14% of the time
- [ ] About 50% of the time
- [ ] Exactly as often as 2 photons

::: reveal
About 14%. A coherent state has no definite photon number: counts follow a Poisson distribution, $P(n) = e^{-\bar n}\frac{\bar n^n}{n!}$, so with $\bar n = 2$ you find none $e^{-2} = 13.5\%$ of the time, and one or two photons 27% of the time each. That randomness is shot noise.
:::
:::

::: nameit
## Coherent states

A coherent state is an eigenstate of the lowering operator, $\hat a|\alpha\rangle = \alpha|\alpha\rangle$, and in terms of the number states

$$|\alpha\rangle = e^{-|\alpha|^2/2}\sum_n\frac{\alpha^n}{\sqrt{n!}}|n\rangle.$$

It is the ground state displaced in phase space. Its mean photon number is $\bar n = |\alpha|^2$, its energy $\hbar\omega\left(|\alpha|^2 + \frac12\right)$, and it keeps the minimum uncertainty $\sigma_x\sigma_p = \frac\hbar2$ forever, while $\alpha \to \alpha e^{-i\omega t}$ makes its center follow the classical orbit.

## Photon statistics

The photon number is Poisson-distributed: $\Delta n = \sqrt{\bar n}$, so the relative spread $\frac{1}{\sqrt{\bar n}}$ falls as the state grows. The phase is uncertain by about $\frac{1}{2\sqrt{\bar n}}$ radians. These two set the **shot-noise** limit of optical and microwave measurements.

## The quantized LC circuit

For an LC circuit the charge and flux play position and momentum, and the voltage operator is $\hat V = V_\text{zpf}(\hat a + \hat a^\dagger)$, with the zero-point voltage $V_\text{zpf} = \sqrt{\frac{\hbar\omega}{2C}}$. In a coherent state the voltage oscillates with amplitude $2|\alpha|V_\text{zpf}$, plus quantum noise of $V_\text{zpf}$ that doesn't grow with the signal. A classical drive tone through any linear circuit produces exactly such a state.
:::

::: example
## A 5 GHz superconducting resonator with C = 0.5 pF is driven to a coherent state holding 100 photons on average. What voltage swings across it, and how noisy is the photon number?

::: solution
1. **Photon energy.**
   $$\begin{aligned} \hbar\omega &= 1.0546 \times 10^{-34} \\ &\quad \times 2\pi \times 5 \times 10^9\ \text{J} \\ &= 3.313 \times 10^{-24}\ \text{J} \end{aligned}$$
2. **Zero-point voltage.** With $2C = 1$ pF,
   $$\begin{aligned} V_\text{zpf} &= \sqrt{\frac{\hbar\omega}{2C}} \\ &= \sqrt{\frac{3.313 \times 10^{-24}}{10^{-12}}}\ \text{V} \\ &= 1.82\ \text{µV} \end{aligned}$$
3. **Amplitude.** With $|\alpha| = 10$,
   $$\begin{aligned} V &= 2 \times 10 \times 1.82\ \text{µV} \\ &= 36\ \text{µV} \end{aligned}$$
4. **Photon-number noise.** The photon number is $100 \pm 10$, a 10% spread, and the phase is uncertain by about 0.05 rad.
5. **Why it matters.** Microwave quantum circuits run at such tiny signal levels that these quantum fluctuations, not thermal noise, set what an amplifier can resolve.

**Answer:** the voltage swings with an amplitude of 36 µV, and the photon number is 100 ± 10, a 10% spread.
:::
:::

::: example
## A coherent state has $\bar n$ = 2. What are the chances of counting 0, 1 and 2 photons?

::: solution
1. **Zero photons.**
   $$\begin{aligned} P(0) &= e^{-2} \\ &= 0.135 \end{aligned}$$
2. **One photon.**
   $$\begin{aligned} P(1) &= 2e^{-2} \\ &= 0.271 \end{aligned}$$
3. **Two photons.**
   $$\begin{aligned} P(2) &= \frac{4}{2}e^{-2} \\ &= 0.271 \end{aligned}$$
4. **What that means.** One or two photons are equally likely, and the chance of getting exactly the mean is barely more than a quarter.
5. **In practice.** Single-photon sources for quantum key distribution use heavily attenuated lasers with $\bar n$ around 0.1, accepting that most pulses are empty so that few contain two photons.

**Answer:** 0.135 for no photons, and 0.271 each for one and for two.
:::
:::

::: example
## A 1 nW laser beam at 1550 nm is detected in 1 ns windows. How many photons arrive per window, and how large is the shot noise?

::: solution
1. **Photons per window.**
   $$\begin{aligned} \bar n &= \frac{P\tau\lambda}{hc} \\ &= \frac{10^{-9} \times 10^{-9} \times 1.55 \times 10^{-6}}{1.99 \times 10^{-25}} \\ &= 7.8 \end{aligned}$$
2. **Shot noise.** The spread is $\sqrt{7.8} = 2.8$: 36% noise in each window.
3. **At 10 Gb/s.** Each bit lasts 0.1 ns, so a receiver getting 1 nW would see under one photon per bit and couldn't work at all. That's why optical receivers need tens of microwatts: shot noise, not the electronics, sets the floor.

**Answer:** 7.8 photons arrive per window on average, with a shot-noise spread of 2.8 (36%).
:::
:::

::: check
given: n = 0.5 | 2 | 5
answer: exp(-n)
tolerance: 0.5%

## A coherent state holds {n} photons on average. What is the chance of counting none?

::: right
Right. $P(0) = e^{-\bar n}$.
:::

::: misses
- [1 - n] The distribution is Poisson, not linear.
- [any] $P(n) = e^{-\bar n}\frac{\bar n^n}{n!}$ at n = 0.
:::
:::

::: check
given: n = 1 | 3 | 6
answer: exp(-n)*n^2/2
tolerance: 0.5%

## A coherent state holds {n} photons on average. What is the chance of counting exactly two?

::: right
Right. $e^{-\bar n}\frac{\bar n^2}{2!}$.
:::

::: misses
- [exp(-n)*n^2] Divide by 2!.
- [any] Poisson at n = 2.
:::
:::

::: check
kind: parts
given: f = 4 | 6 | 8; C = 0.2 | 1; n = 10 | 100 | 1000

## A {f} GHz resonator with C = {C} pF is driven to a coherent state of {n} photons.

::: part
answer: sqrt(1.0546e-34*2*pi*f*1e9/(2*C*1e-12))*1e6
unit: µV
tolerance: 0.5%

### What is its zero-point voltage?

::: misses
- [sqrt(1.0546e-34*2*pi*f*1e9/(C*1e-12))*1e6] $V_\text{zpf} = \sqrt{\frac{\hbar\omega}{2C}}$.
- [any] Half a quantum of energy in the capacitor's field, shared with the inductor.
:::
:::

::: part
answer: 2*sqrt(n)*sqrt(1.0546e-34*2*pi*f*1e9/(2*C*1e-12))*1e6
unit: µV
tolerance: 0.5%

### What voltage amplitude does it swing?

::: misses
- [sqrt(n)*sqrt(1.0546e-34*2*pi*f*1e9/(2*C*1e-12))*1e6] $\hat V = V_\text{zpf}(\hat a + \hat a^\dagger)$ gives $2|\alpha|V_\text{zpf}$.
- [any] $2|\alpha|V_\text{zpf}$ with $|\alpha| = \sqrt{\bar n}$.
:::
:::
:::

::: check
kind: parts
given: P = 1 | 10 | 100; t = 0.1 | 1; l = 850 | 1550

## A {P} nW beam at {l} nm is counted in {t} ns windows.

::: part
answer: P*1e-9*t*1e-9*l*1e-9/(6.626e-34*3e8)
tolerance: 0.5%

### How many photons arrive per window on average?

::: misses
- [any] Energy per window over $\frac{hc}{\lambda}$.
:::
:::

::: part
answer: 100/sqrt(P*1e-9*t*1e-9*l*1e-9/(6.626e-34*3e8))
unit: %
tolerance: 0.5%

### What is the relative shot noise?

::: misses
- [any] $\frac{\sqrt{\bar n}}{\bar n}$.
:::
:::
:::

::: check
given: n = 25 | 100 | 10000
answer: 1/(2*sqrt(n))
unit: rad
tolerance: 0.5%

## About how uncertain is the phase of a coherent state holding {n} photons?

::: right
Right. $\frac{1}{2\sqrt{\bar n}}$: a fixed disk seen from farther away subtends a smaller angle.
:::

::: misses
- [1/sqrt(n)] The disk's radius is ½: $\Delta\varphi \approx \frac{1}{2|\alpha|}$.
- [any] Disk radius over distance from the origin.
:::
:::

::: check
given: n = 0 | 2 | 10; f = 5 | 10
answer: 6.626e-34*f*1e9*(n + 0.5)/1.602e-19*1e6
unit: µeV
tolerance: 0.5%

## What is the mean energy of a {f} GHz oscillator in a coherent state with {n} photons?

::: right
Right. $\hbar\omega(\bar n + \frac12)$: the zero-point energy rides along.
:::

::: misses
- [6.626e-34*f*1e9*n/1.602e-19*1e6] Include the zero-point $\frac12\hbar\omega$.
- [any] $hf(\bar n + \frac12)$.
:::
:::

::: check
kind: choice

## Which state of an oscillator has its center swinging like the classical oscillator while keeping the minimum uncertainty forever?

- [ ] A number state |n⟩ with large n
- [x] A coherent state |α⟩
- [ ] An equal superposition of |0⟩ and |1⟩
- [ ] A thermal state

::: right
Right. A coherent state is the ground state displaced in phase space; it rotates rigidly at ω.
:::

::: misses
- [1] A number state is stationary: nothing in it moves.
- [3] It oscillates, but its uncertainty isn't minimal and its amplitude is tiny.
- [4] A thermal state is a mixture with no definite phase.
:::
:::

::: check
kind: derivation
vars: a = 0.1..10

## A coherent state |α⟩ with α real and positive (write a).

::: step
answer: a^2

### What is its mean photon number?
:::

::: step
answer: a

### What is its photon-number spread?
:::

::: right
Right. The spread is $\sqrt{\bar n}$, the signature of Poisson statistics.
:::
:::

::: check
kind: python

## Write `poisson(nbar, nmax)` returning a NumPy array of a coherent state's photon-count probabilities P(0) to P(nmax), built by the recurrence $P(n) = P(n - 1)\frac{\bar n}{n}$ from $P(0) = e^{-\bar n}$, and `moments(p)` returning the mean and variance of such a distribution.

```python starter
import numpy as np

def poisson(nbar, nmax):
    return np.ones(nmax + 1) / (nmax + 1)

def moments(p):
    return 0.0, 0.0

print(moments(poisson(4.0, 60)))
```

```python solution
import numpy as np

def poisson(nbar, nmax):
    p = np.zeros(nmax + 1)
    p[0] = np.exp(-nbar)
    for n in range(1, nmax + 1):
        p[n] = p[n - 1] * nbar / n
    return p

def moments(p):
    n = np.arange(len(p))
    mean = np.sum(n * p)
    return float(mean), float(np.sum(n * n * p) - mean * mean)

print(moments(poisson(4.0, 60)))
```

```python tests
import numpy as np
p = poisson(4.0, 60)
assert abs(p.sum() - 1) < 1e-12, "The probabilities must add to 1."
m, v = moments(p)
assert abs(m - 4) < 1e-9 and abs(v - 4) < 1e-9, f"A Poisson distribution has mean = variance = n̄ = 4; got {m}, {v}."
assert abs(poisson(2.0, 5)[2] - 2 * np.exp(-2)) < 1e-12, "P(2) for n̄ = 2 is 2e^(-2) = 0.271."
```

::: right
Right. Mean and variance are both $\bar n$, which is the statement that a coherent state's photon-number noise is $\sqrt{\bar n}$.
:::
:::

::: explain
## Why does a classical drive put a resonator into a coherent state rather than a state with a definite number of photons?

::: model
A classical drive pushes on the resonator with a force that doesn't depend on its quantum state, which adds a term proportional to $\hat a + \hat a^\dagger$ to the Hamiltonian. Such a term shifts the state through phase space without changing its shape, so starting from the ground state, a minimum-uncertainty disk, the drive simply moves the disk away from the origin: that displaced disk is a coherent state. A state with a definite photon number would need its phase to be completely uncertain, a ring rather than a disk, and no force that only pushes can turn a disk into a ring. Making number states takes something nonlinear, like an atom or a Josephson junction.
:::
:::

::: practice

::: check
given: n = 0.1 | 1 | 4
answer: n*exp(-n)
tolerance: 0.5%

## Chance of counting one photon from a coherent state with {n} on average?

::: misses
- [any] $\bar ne^{-\bar n}$.
:::
:::

::: check
given: n = 4 | 16 | 25 | 100 | 400 | 10000
answer: 100/sqrt(n)
unit: %
tolerance: 0.5%

## Relative shot noise of a coherent state with {n} photons?

::: misses
- [any] $\frac{1}{\sqrt{\bar n}}$.
:::
:::
:::
