---
title: "Hong–Ou–Mandel Two-Photon Interference Interactive Lab | Sandbox Physics"
description: "When two photons enter a beam splitter from opposite sides, why do the two counters stop clicking together?"
canonical_url: "https://sandboxphysics.com/labs/hong-ou-mandel/"
language: "en"
page_type: "lab"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/labs/hong-ou-mandel/"
last_modified: "2026-10-28"
---

Q036 · Two photons meet at a beam splitter

# Hong–Ou–Mandel Two-Photon Interference

**When two photons enter a beam splitter from opposite sides, why do the two counters stop clicking together?** Two photons in the same pure mode leave a balanced beam splitter together because the alternatives cancel. Identical mixed preparations still contain distinguishable modes, so coincidences remain. Delay and polarization mismatch can also weaken the dip.

Send two single photons into the same beam splitter and predict what happens when they overlap. Change their arrival delay or polarization, then collect detector clicks one by one and build the interference dip from them.

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

Model assumptions

Each input has a Gaussian arrival envelope and a separate two-mode internal state. Their independence is assumed. The joint source phase changes internal purity in both independent inputs; the beam splitter is lossless. Ideal output probabilities and synthetic click records appear separately. Mixed internal states use single-pair input; the optional four-photon admixture restores pure internal states. Threshold detectors include independent loss, electronic timing and background clicks. The Lab is a simulation and does not certify a real photon source.

Evidence from your detector records

Simulated acquisition

## Build the dip from clicks

Acquire events to begin.

Both in A

$0.25$

One in each port

$0.25$

Both in B

$0.25$

Gray: ideal single-pair reference before loss or electronic gating. Orange: coincidence count per emitted trial, with 95% Wilson intervals. The references and acquired points need not coincide.

Expand the fit and raw trials to inspect the numerical evidence.

Fit and interpretation

Count-only Gaussian fit

$\text{—}$

Visibility / baseline from counts

$\text{—}$

Complete the scan, or acquire all four settings, to see an inference.

Inspect counts and individual trials

Delay bins recomputed from raw clicks

| Delay (ps) | Trials | Coincidences | Fraction |
| --- | --- | --- | --- |

Physics tutorial

## When two alternatives cancel

**Background** One photon enters each input port. There are two ways to end up with one photon in each output: both photons reflect, or both pass through. When the splitter is balanced and the input modes are identical, the amplitudes for these two ways cancel.

**Why it matters** The coincidence dip tests how indistinguishable the two input modes are. Detector loss, accidental clicks and extra photon pairs can change the recorded dip, but they do not change the ideal interference law for a single pair.

Start with the essentials

- **Focus question**: Can a narrow electronic time gate make orthogonally polarized photons interfere?
- **One-sentence intuition**: Optical overlap and electronic event selection do different jobs. Change delay and polarization one at a time, then compare the ideal output probabilities with the coincidences counted from the recorded click times.

### Core mathematical model

#### Internal mixture and HOM visibility

$$
M_{\mathrm{int}}=\operatorname{Tr}(\rho^2),\qquad P_{11}(0)=\tfrac12[1-\operatorname{Tr}(\rho^2)]
$$

The two independent inputs have identical internal density operators. At a balanced splitter and matched envelope and polarization, a maximally mixed two-mode input has a coincidence floor of one quarter.

#### Normalized pure spectral modes

$$
f_j(\nu)=(2\pi\sigma_\nu^2)^{-1/4}e^{-(\nu-\nu_j)^2/(4\sigma_\nu^2)}
$$

Both inputs have Gaussian spectra with the same intensity standard deviation, in THz. Delay is in ps, so their product is dimensionless. The envelope view is only a sketch of the modes.

#### Mode overlap

$$
M=|\langle f_1|f_2\rangle|^2\cos^2\theta\,\operatorname{Tr}(\rho^2)=e^{-(2\pi\sigma_\nu\tau)^2-\Delta\nu^2/(4\sigma_\nu^2)}\cos^2\theta\,\operatorname{Tr}(\rho^2)
$$

A relative delay, a frequency offset or a polarization difference each makes the inputs distinguishable. The Gaussian envelopes have equal width. A separate internal two-mode state multiplies this overlap by its density-operator purity; these internal labels factor from the continuous delay.

#### Output probabilities for one photon pair

$$
P_{11}=T^2+R^2-2TRM,\quad P_{20}=P_{02}=TR(1+M),\quad R=1-T
$$

These are probabilities before detection, and they add up to one. The splitter is described by a real unitary matrix, which fixes the relative phase on reflection. The calculation does not subtract classical intensities.

#### How a coincidence is counted

$$
C_i=\mathbf1(\text{both click})\,\mathbf1(|t_{A,i}-t_{B,i}|\le w),\quad \widehat p=\frac{\sum_i C_i}{N}
$$

Every emitted trial is kept, including trials with no click. Each detector either clicks or stays silent and cannot count photons, and the electronic jitter is much wider than the optical pulse. Background adds an independent chance of a click in each gate. The table and the CSV use exactly this rule.

#### Fitting the dip width from counts

$$
p(\tau)=B[1-Ve^{-(2\pi\widehat\sigma_\nu\tau)^2}]
$$

For each width on a grid, the baseline and dip depth are fitted first, and the count likelihood then picks the width. The model bandwidth is not used. The fit is switched off when background or two-pair events are present, and weak fits or fits at the grid edge are reported as unresolved. No confidence interval is given for the fit.

### Common difficulties

#### Bunching does not mean the photons pick a path in advance

**Typical misconception** The two particles in the picture must pick the same route before they are measured.

**Better mental model** The scene shows input modes and output photon numbers. No hidden path is ever stored as if it had been observed.

#### A time gate cannot create optical overlap

**Typical misconception** Narrowing the gate makes the photons indistinguishable.

**Better mental model** The gate only filters click times that already exist. It cannot bring back amplitudes removed by orthogonal polarization or a spectral mismatch.

#### A dip alone cannot certify a source

**Typical misconception** For any source, the depth of the dip directly gives its purity or its timing resolution.

**Better mental model** For identical independent inputs with all other degrees of freedom matched, the ideal balanced HOM visibility equals internal-state purity. Mismatch, background and extra pairs also lower the contrast. Correlated pair preparation and calibrated device response require a source model.

### Run the experiment

1. 01

   #### Predict before counting

   Choose Arrive together, predict the output, then acquire one trial at a time, several times.

   **What to observe:** In the ideal balanced case, only one counter clicks. That click cannot tell you how many photons arrived at its port.

2. 02

   #### Make the photons distinguishable

   Choose Arrive apart, then Orthogonal polarization, and compare a batch from each case.

   **What to observe:** Coincidences come back. The photons must overlap in time and spectrum, and they must also share the same polarization.

3. 03

   #### Build the dip from clicks

   Start over and acquire a delay scan. Inspect the bins and export the raw CSV.

   **What to observe:** The orange points are computed from those clicks. The Wilson ranges show the uncertainty of a finite number of yes-or-no counts, and the gray line is a separate ideal reference.

4. 04

   #### Separate the effects of the apparatus

   Open the source and detector settings. Change the efficiency, gate width, background or two-pair fraction, then acquire again.

   **What to observe:** Loss and a narrow gate lower the recorded counts. Background and four-photon input can fill in the dip. When the single-pair assumptions fail, the fit is switched off.

Physical conclusion

Interference happens between amplitudes; the dip counts detector events selected by a fixed rule. The two are linked, but they are not the same quantity.

## Related experiments and articles

Quantum evidence · Reading path

### Bell tests and photon information

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

1. [Article **A photon announces when to look for its partner**](https://sandboxphysics.com/stories/quantum-evidence/heralded-photon-anticorrelation-gates/)
2. [Lab **Which Path & Quantum Eraser** Sort detections and look for conditional interference](https://sandboxphysics.com/labs/quantum-eraser/)
3. [Article **Two photons leave the beam splitter together**](https://sandboxphysics.com/stories/quantum-evidence/hong-ou-mandel-dip-mode-overlap/)
4. [Article **Dense coding sends three distinguishable messages with one photon**](https://sandboxphysics.com/stories/quantum-evidence/dense-coding-three-messages-resources/)
5. [Lab **Quantum Teleportation & Swapping** Send messages by dense coding and count errors, erasures and resources used](https://sandboxphysics.com/labs/quantum-teleportation/)
6. [Lab **Quantum State & Born Measurement** Rotate a single qubit](https://sandboxphysics.com/labs/qubit-state/)

Time-frequency quantum optics · Reading path

### From photon clicks to pulse-mode selection

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

1. [Article **What two detector clicks reveal about photon overlap**](https://sandboxphysics.com/stories/time-frequency-quantum-optics/clicks-and-overlap/)
2. [Article **How deep is the HOM dip for mixed photons?**](https://sandboxphysics.com/stories/time-frequency-quantum-optics/mixed-state-hom/)

Starter path · Step 6 of 6

## Start from a single measurement

You have reached the end of this path. [Browse every Quantum & fields Lab →](https://sandboxphysics.com/topics/quantum/#directory-search)

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)
