Linear-Optical Quantum Computing

Linear-optical quantum computing begins from an almost paradoxical promise: that light alone — steered through nothing more exotic than beam splitters, phase shifters and mirrors — could be coaxed into universal quantum computation. Photons are the natural flying qubit. They decohere slowly, they carry information at cc across a chip or a continent, and a century of optical engineering already knows how to make, route and detect them. But this same aloofness is the problem. Photons barely interact: one passing through glass picks up only a phase, and two meeting at a beam splitter interfere without exerting any controllable force on each other. The whole evolution generated by passive optics is a single-particle unitary acting linearly on the mode operators, and no such transformation — however cleverly composed — can produce the deterministic entangling two-qubit gate that universality demands. That is the central tension of the field, and for a decade it looked fatal. The resolution, due to Knill, Laflamme and Milburn in 2001, is that you do not need a nonlinear Hamiltonian if you are willing to measure. Detecting an ancilla photon, and keeping only the runs with the right heralding click, projects the signal onto a state you could otherwise reach only with a genuine optical nonlinearity. The catch is that the right click happens only sometimes — the entangling operation becomes probabilistic but heralded. KLM's deeper trick is to make those failures harmless through gate teleportation and error correction, pushing the success probability arbitrarily close to one. This article develops the mode picture, the nonlinear-sign gate, the permanent that makes these "simple" devices classically intractable, and the modern pivot to cluster-state and fusion-based photonics.

Key takeaways
  • Linear-optical quantum computing (LOQC) encodes each qubit in single photons — usually as a dual-rail pair of modes — and processes them with passive linear optics: beam splitters, phase shifters and mirrors, plus single-photon sources and photon-number-resolving detectors.
  • Passive optics realizes only a single-particle unitary U∈U(m)U\in U(m) on the mm mode operators, so no deterministic two-photon entangling gate exists; the Knill–Laflamme–Milburn (KLM) protocol supplies the missing nonlinearity through measurement-induced heralding rather than a Kerr Hamiltonian.
  • The elementary nonlinear-sign (NS) gate flips the sign of the two-photon amplitude and succeeds with probability 1/41/4; a CZ from two NS gates succeeds with probability 1/161/16, and gate teleportation lifts this to n/(n+1)→1n/(n+1)\to 1, so LOQC is universal and scalable in principle.
  • Any mm-mode interferometer is a unitary on the mode operators built from (m2)\binom{m}{2} two-mode elements (Reck 1994, Clements 2016), yet its action on Fock space is a matrix permanent — a #P-hard object that makes non-universal linear optics classically intractable (boson sampling).
  • Modern photonic architectures front-load the nondeterminism into offline resource-state preparation (cluster-state and fusion-based computing); photon loss, source indistinguishability and detector efficiency are the practical DiVincenzo bottlenecks.
  • Key idea: passive linear optics can only rotate the mode operators — a single-particle map that is not universal — and KLM supplies the missing nonlinearity not in the Hamiltonian but in the act of measurement, with teleportation and error correction promoting these probabilistic heralded gates to deterministic, scalable computation.
The core insight

Linear optics realizes only single-particle (passive) unitaries on the mode operators, which is not universal for quantum computation; KLM supplies the missing nonlinearity in the act of measurement — heralded ancilla detection projects the signal onto a state related by an effective nonlinear phase — and teleportation plus error correction promote these probabilistic, heralded gates to deterministic, scalable computation.

Where this lives today

Almost no one builds literal KLM circuits — the compounding 1/161/16 gate probabilities are unforgiving — but KLM's machinery is the backbone of the entire photonic roadmap. The dominant strategy is to spend the probabilistic linear-optical entangling operations offline, stitching small photonic entangled states into large cluster states and then running measurement-based quantum computation, which needs only single-qubit measurements once the resource exists. PsiQuantum and Xanadu pursue fusion-based quantum computing, in which deterministically generated few-photon resource states are joined by probabilistic fusion gates (Hong–Ou–Mandel measurements), with percolation theory guaranteeing that a connected computational lattice survives the random gate failures. On the quantum-advantage front, boson sampling and its Gaussian variant turned the permanent rule into experiments — the Jiuzhang photonic samplers reported output distributions argued to be beyond classical reach, directly exploiting the same non-interacting physics that makes LOQC non-universal. The very same primitives — Bell-state measurement by two-photon interference, entanglement swapping, heralded entanglement generation — are the engine of quantum repeaters and the emerging quantum internet, since photons are the only practical flying qubit. The open problems are squarely engineering-as-physics: near-deterministic, indistinguishable single-photon sources; photon-number-resolving detectors at efficiency η→1\eta\to1; and low-loss integrated waveguides, because in a heralded architecture every lost photon is a silent error, and loss — not decoherence — is the linear-optical wall.

The physical picture

Picture a beam splitter as a rotation that mixes two field modes, and a phase shifter as a rotation about a different axis. Compose enough of them and you generate the whole group U(m)U(m) acting on the mm mode operators. But this is a single-particle rotation: send nn photons through and each one feels the same little rotation independently, after which bosonic statistics let the outputs interfere. No matter how the elements are stacked, the photons never push on one another, so two dual-rail qubits cannot be made to entangle deterministically. Linear optics is powerful enough to reach any point in U(m)U(m) and yet, on the exponentially larger computational Hilbert space, it is impotent by itself. The single genuinely two-photon effect that passive optics does offer is interference. When two indistinguishable photons meet at a balanced beam splitter, the amplitude for them to leave in separate ports cancels exactly — they bunch. This Hong–Ou–Mandel effect is the entangling primitive on which every linear-optical Bell measurement and fusion gate is built, and its visibility is the working measure of photon indistinguishability. The first figure makes the cancellation concrete.

Figure
Hong–Ou–Mandel interference: two indistinguishable photons, one in each input port of a 50:50 beam splitter, always leave together — the coincidence amplitude vanishes and the output is the bunched superposition of both-in-port-one minus both-in-port-two over √2, the entangling primitive behind every linear-optical Bell measurement
Two photons in — the coincidence term cancels, so they always exit together input a₁†a₂†|0⟩ mode 1 mode 2 50:50 BS |2,0⟩ |0,2⟩ |1,1⟩ coincidence amplitude = 0 |ψ⟩ = (|2,0⟩ − |0,2⟩)/√2 both photons bunch into one output port

Measurement is what supplies the missing push. Add an ancilla photon, interfere it with the signal, detect it, and keep only the runs with a chosen click pattern; conditioned on that herald the signal is left in a state that no passive network could have produced — carrying a Kerr-like π\pi phase on its two-photon component. You pay for this with probability, because the herald fires only sometimes. The genius of KLM is to arrange the computation so that "sometimes" becomes "almost always": apply the gate offline to an entangled resource and teleport the data qubit through it, so a failure merely teleports the qubit out unharmed and can be retried, with the heralded success climbing toward one as the resource grows. The second figure is the punchline — the ladder from a 1/41/4-probability gate to near-determinism.

Figure
The escape from nondeterminism: a single nonlinear-sign gate succeeds with probability 1/4, a CZ built from two of them with (1/4)² = 1/16, but gate teleportation through an n-photon entangled resource raises the heralded success to n/(n+1) — 0.50 at n = 1, 0.90 at n = 9, 0.99 at n = 99 — approaching determinism before error correction removes the rest
From a 1/4 gate to near-determinism: heralding, then teleportation NS gate — heralded sign flip on |2⟩ P = 1/4 CZ = two NS gates in an interferometer P = (1/4)² = 1/16 gate teleportation through n-photon resource P = n/(n+1) → 1 P = 1 n=1 · 0.50 n=9 · 0.90 n=99 · 0.99 resource size n → heralded success P = n/(n+1)

A useful mental accounting underlies all of this: in LOQC linear optics is cheap (deterministic, abundant) while entanglement is expensive (probabilistic, heralded, consumed). Every architecture is a scheme for spending cheap operations to manufacture and protect expensive entanglement. And the sting in the tail is that these "simple" passive devices are not simple to simulate: the amplitude to scatter nn input photons into a given output pattern is a matrix permanent, whose evaluation is #P-hard. A non-interacting optical network, utterly unable to compute by itself, nonetheless samples from a distribution believed classically intractable — non-universality and classical hardness coexisting in the same box.

The core equations

A beam splitter is generated by a two-mode "hopping" Hamiltonian; exponentiating it gives the passive unitary that mixes two modes. This is the atom of every linear-optical network.

U^BS=exp⁡ ⁣[θ ( eiϕa1†a2−e−iϕa1a2† )](1)\hat U_{\mathrm{BS}}=\exp\!\big[\theta\,(\,e^{i\phi}a_1^{\dagger}a_2-e^{-i\phi}a_1 a_2^{\dagger}\,)\big] \qquad (1)

where: aj,aj†a_j,a_j^{\dagger} — annihilation/creation operators of optical mode jj; θ\theta — mixing angle, with transmissivity T=cos⁡2θT=\cos^2\theta and reflectivity R=sin⁡2θR=\sin^2\theta; ϕ\phi — relative phase of the splitter. Reading it: the generator only moves a photon between modes, so it conserves total photon number and acts one photon at a time. Conjugating the mode operators by U^BS\hat U_{\mathrm{BS}} turns the abstract exponential into a concrete 2×22\times 2 rotation — the Heisenberg picture that makes "linear optics" literal.

U^† ⁣(a1a2) ⁣U^=(cos⁡θeiϕsin⁡θ−e−iϕsin⁡θcos⁡θ) ⁣(a1a2)(2)\hat U^{\dagger}\!\begin{pmatrix}a_1\\a_2\end{pmatrix}\!\hat U=\begin{pmatrix}\cos\theta & e^{i\phi}\sin\theta\\-e^{-i\phi}\sin\theta & \cos\theta\end{pmatrix}\!\begin{pmatrix}a_1\\a_2\end{pmatrix} \qquad (2)

where: the matrix is an element of U(2)U(2); at θ=π/4, ϕ=0\theta=\pi/4,\ \phi=0 it is the balanced (50:50) splitter that sends a1→(a1+a2)/2a_1\to(a_1+a_2)/\sqrt2. Reading it: the operators transform linearly among themselves — a single-particle map — which is exactly why passive optics cannot entangle by itself. The nonlinear-sign gate is the one operation that lies outside passive optics. It leaves the vacuum and one-photon amplitudes alone but flips the sign of the two-photon amplitude, a Kerr-like π\pi phase applied to ∣2⟩|2\rangle only.

NS: α0∣0⟩+α1∣1⟩+α2∣2⟩ ⟼ α0∣0⟩+α1∣1⟩−α2∣2⟩(3)\mathrm{NS}:\ \alpha_0|0\rangle+\alpha_1|1\rangle+\alpha_2|2\rangle\ \longmapsto\ \alpha_0|0\rangle+\alpha_1|1\rangle-\alpha_2|2\rangle \qquad (3)

where: ∣n⟩|n\rangle — Fock state of nn photons in one mode; αn\alpha_n — amplitude of the nn-photon component. Reading it: this photon-number-dependent phase is precisely the nonlinearity linear optics cannot supply deterministically, so NS must be built with ancillas and heralding — and it succeeds only with probability 1/41/4. Two NS gates, one in each arm of a balanced interferometer, convert the two-photon bunching term into the conditional phase of a controlled-Z, hence a CNOT up to local Hadamards.

CZ=[ NS⊗NS ] inside a balanced Mach–Zehnder,PCZ=(14)2=116(4)\mathrm{CZ}=\big[\,\mathrm{NS}\otimes\mathrm{NS}\,\big]\ \text{inside a balanced Mach–Zehnder},\qquad P_{\mathrm{CZ}}=\Big(\tfrac14\Big)^2=\tfrac1{16} \qquad (4)

where: CZ\mathrm{CZ} maps ∣11⟩→−∣11⟩|11\rangle\to-|11\rangle on dual-rail qubits; both NS gates must herald success independently, so the probabilities multiply. Reading it: 1/161/16 per two-qubit gate is far too low to scale directly — the reason teleportation and error correction are indispensable. A full mm-mode interferometer is just the product of its two-mode blocks: one unitary scattering matrix acting on the mode operators, decomposable into a fixed count of elements.

bj=∑k=1mUjk ak,U∈U(m),#elements=(m2)=m(m−1)2(5)b_j=\sum_{k=1}^{m}U_{jk}\,a_k,\quad U\in U(m),\qquad \#\text{elements}=\binom{m}{2}=\frac{m(m-1)}{2} \qquad (5)

where: UjkU_{jk} — scattering amplitude from input mode kk to output mode jj; mm — number of modes. Reading it: the Reck and Clements decompositions realize any U(m)U(m) with (m2)\binom{m}{2} beam splitters and phase shifters — universality over the mode operators, not over the computational space. The bridge from that innocuous mode matrix to computational hardness is the permanent rule: many-photon transition amplitudes are permanents of submatrices of UU.

⟨n1′,…,nm′∣ U^LO ∣n1,…,nm⟩=Perm(US,T)∏jnj! nj′!(6)\langle n_1',\dots,n_m'|\,\hat U_{\mathrm{LO}}\,|n_1,\dots,n_m\rangle=\frac{\mathrm{Perm}(U_{S,T})}{\sqrt{\prod_j n_j!\,n_j'!}} \qquad (6)

where: Perm(A)=∑σ∏iAiσ(i)\mathrm{Perm}(A)=\sum_{\sigma}\prod_i A_{i\sigma(i)} is the permanent (the determinant without alternating signs); US,TU_{S,T} is the submatrix picked out by the input/output occupations nj,nj′n_j,n_j'. Reading it: permanents are #P-hard, so sampling the output of a random interferometer is classically intractable — boson sampling — even though the device is non-universal. Finally, gate teleportation is the lever that beats the 1/161/16 wall: apply the gate to an entangled ancilla offline, then teleport the data qubit through it.

Pgate=nn+1 →n→∞ 1(7)P_{\mathrm{gate}}=\frac{n}{n+1}\ \xrightarrow[n\to\infty]{}\ 1 \qquad (7)

where: nn — number of photons in the entangled teleportation resource ∣tn⟩|t_n\rangle; a failed gate merely teleports the qubit out unharmed (a heralded, recoverable event). Reading it: enlarging the resource drives the heralded success toward one, and quantum error correction removes the residual failures, restoring full scalability.

Derivation AThe Hong–Ou–Mandel dip from beam-splitter algebra

The goal is to derive, from nothing but the balanced beam-splitter map on creation operators, why two indistinguishable photons entering opposite ports of a 50:50 splitter never emerge in separate ports — the coincidence amplitude vanishes identically and the output is the bunched state (∣2,0⟩−∣0,2⟩)/2(|2,0\rangle-|0,2\rangle)/\sqrt2. This single cancellation is the two-photon interference that underlies every linear-optical Bell measurement, fusion gate and entanglement-swapping node, and its visibility is the operational definition of photon indistinguishability, so it is worth seeing exactly where the minus sign comes from.

Step 1. Write the balanced-splitter action on the creation operators of the two input ports, a1†→12(b1†+b2†)a_1^{\dagger}\to\tfrac1{\sqrt2}(b_1^{\dagger}+b_2^{\dagger}) and a2†→12(b1†−b2†)a_2^{\dagger}\to\tfrac1{\sqrt2}(b_1^{\dagger}-b_2^{\dagger}), the Heisenberg form of equation (2) at θ=π/4,ϕ=0\theta=\pi/4,\phi=0. Why: linear optics is a linear map on operators, so a two-photon input is handled by substituting these single-operator rules and expanding.

Step 2. Substitute into the one-photon-each input state, a1†a2†∣0⟩→12(b1†+b2†)(b1†−b2†)∣0⟩a_1^{\dagger}a_2^{\dagger}|0\rangle\to\tfrac12(b_1^{\dagger}+b_2^{\dagger})(b_1^{\dagger}-b_2^{\dagger})|0\rangle. Why: the coincidence configuration ∣1,1⟩|1,1\rangle is the product of one creation operator in each output, so we track exactly how it is produced or destroyed by the expansion.

Step 3. Expand the operator product, 12(b1†2−b1†b2†+b2†b1†−b2†2)∣0⟩\tfrac12\big(b_1^{\dagger 2}-b_1^{\dagger}b_2^{\dagger}+b_2^{\dagger}b_1^{\dagger}-b_2^{\dagger 2}\big)|0\rangle. Because bosonic operators commute, b2†b1†=b1†b2†b_2^{\dagger}b_1^{\dagger}=b_1^{\dagger}b_2^{\dagger}, and the two cross terms cancel. Why: the cross terms are precisely the ∣1,1⟩|1,1\rangle coincidence amplitude — their exact cancellation is the Hong–Ou–Mandel effect, not an approximation.

Step 4. Use b†2∣0⟩=2 ∣2⟩b^{\dagger 2}|0\rangle=\sqrt2\,|2\rangle on the surviving terms to get 12(∣2,0⟩−∣0,2⟩)\tfrac1{\sqrt2}\big(|2,0\rangle-|0,2\rangle\big). Why: the normalized output has zero weight on ∣1,1⟩|1,1\rangle, so a coincidence detector never clicks on both outputs — the photons always bunch, and any residual coincidence signal measures their partial distinguishability. *As a check, the permanent of the 2×22\times2 balanced-splitter matrix equals 12(1⋅(−1)+1⋅1)=0\tfrac12(1\cdot(-1)+1\cdot1)=0, confirming the vanishing ∣1,1⟩|1,1\rangle amplitude via the permanent rule of equation (6).*

Go deeper · Derivation B · 2 minWhy the nonlinear-sign gate succeeds only one time in four
Derivation BWhy the nonlinear-sign gate succeeds only one time in four

The goal is to show that the canonical KLM nonlinear-sign gate — a three-mode interferometer fed by one ancilla photon and one vacuum ancilla, with success heralded by detecting exactly one photon in the first ancilla and none in the second — implements the map of equation (3) with a uniform amplitude of 1/21/2, so that its success probability is ∣1/2∣2=1/4|1/2|^2=1/4 regardless of the input qubit state. This 1/41/4 is not an artifact of a poor design: it is the optimal success probability for a heralded NS gate using a single ancilla photon, and it sets the whole probabilistic budget of KLM computing.

Step 1. Fix the setup: the signal mode carries α0∣0⟩+α1∣1⟩+α2∣2⟩\alpha_0|0\rangle+\alpha_1|1\rangle+\alpha_2|2\rangle, ancilla A holds one photon, ancilla B is vacuum, and the three modes are mixed by a fixed interferometer whose beam-splitter angles are tuned once and for all. Why: only the n=0,1,2n=0,1,2 signal sector matters because a dual-rail qubit puts at most two photons through the gate, and NS need only be correct on that sector.

Step 2. Impose the heralding projection — one photon detected in A, zero in B — and collect the conditioned signal amplitudes. The interferometer is tuned (beam-splitter reflectivities set by the KLM condition, one arm near R=12R=\tfrac12 with a π\pi-phase leg) so that the three conditioned amplitudes come out as 12α0\tfrac12\alpha_0, 12α1\tfrac12\alpha_1 and −12α2-\tfrac12\alpha_2. Why: the vacuum and single-photon terms pass with a common factor while the two-photon term picks up an extra minus sign, because the two-photon input opens a second, destructively interfering path through the ancilla — the interference is doing the work a Kerr medium would.

Step 3. Read off the map: up to the common factor c=12c=\tfrac12 the output is c (α0∣0⟩+α1∣1⟩−α2∣2⟩)c\,(\alpha_0|0\rangle+\alpha_1|1\rangle-\alpha_2|2\rangle), which is exactly NS\mathrm{NS} applied to the input and then scaled by cc. Why: a single state-independent constant multiplying the correct NS output is what "a heralded gate" means — the herald selects the runs on which the ideal gate has been applied.

Step 4. Compute the probability from normalization: because the same cc multiplies every component, the norm of the conditioned state is ∣c∣2|c|^2 times the input norm, so PNS=∣c∣2=14P_{\mathrm{NS}}=|c|^2=\tfrac14, independent of α0,α1,α2\alpha_0,\alpha_1,\alpha_2. Why: state-independence is essential — a gate whose success probability depended on the unknown input would leak information and could not be used as a subroutine; every other herald pattern is a benign, announced failure. *The amplitude c=1/2c=1/2 and success probability PNS=1/4P_{\mathrm{NS}}=1/4 are the standard tight values for the single-ancilla NS gate.*

Go deeper · Derivation C · 1 minAny interferometer from beam splitters — the Reck and Clements meshes
Derivation CAny interferometer from beam splitters — the Reck and Clements meshes

The goal is to establish that an arbitrary mm-mode linear-optical unitary U∈U(m)U\in U(m) can be built from exactly (m2)\binom{m}{2} two-mode beam-splitter-plus-phase elements, so that passive optics is universal over the mode operators even though it is not universal for quantum computation. The construction is the optical analogue of triangularizing a matrix by Givens rotations, and the element count it produces is what a chip designer literally lays out in silicon photonics, so both the existence and the number matter.

Step 1. Define the two-mode building block Tij(θ,ϕ)T_{ij}(\theta,\phi) that acts as a U(2)U(2) beam splitter and phase on modes i,ji,j and as the identity on all others — an embedded Givens rotation inside U(m)U(m). Why: every physically available operation is of this local two-mode form, so any decomposition must be a product of such blocks if it is to be realizable.

Step 2. Choose the angles of a single TijT_{ij} to null one chosen off-diagonal entry of UU, exactly as a Givens rotation zeroes a subdiagonal entry in a QR factorization. Why: a two-mode unitary has two free real parameters, precisely enough to set one complex matrix element to zero, so the elimination is always possible.

Step 3. Apply a sequence of such nullings to reduce UU to a diagonal matrix DD of residual phases; inverting the sequence writes U=D∏(i,j)TijU=D\prod_{(i,j)}T_{ij}. Why: the ordered product of two-mode elements times a layer of single-mode phase shifters reconstructs the original unitary, giving a concrete optical circuit.

Step 4. Count: there are (m2)=m(m−1)/2\binom{m}{2}=m(m-1)/2 off-diagonal entries to eliminate, so exactly that many TijT_{ij} are needed. Reck's triangular mesh has optical depth 2m−32m-3, while Clements' rectangular mesh achieves the same count with depth mm, halving the worst-case number of lossy layers a photon must traverse. Why: for a fixed count the shallower mesh loses fewer photons, which is the dominant practical concern, so the Clements layout is now standard on integrated photonic chips. *For example, at m=6m=6 the count is (62)=15\binom{6}{2}=15 elements, with Reck depth 2m−3=92m-3=9 versus Clements depth m=6m=6.*

Limiting cases

The regimes below map out what linear optics can and cannot do, and where the practical walls are.

CaseResultMeaning
No ancillas / no measurementbj=∑kUjk ak, U∈U(m)b_j=\sum_k U_{jk}\,a_k,\ U\in U(m)Pure passive optics: only single-particle unitaries; no deterministic entangling gate, so the model is non-universal and (for product inputs) efficiently classically simulable.
Bare NS and CZPNS=14, PCZ=116P_{\mathrm{NS}}=\tfrac14,\ P_{\mathrm{CZ}}=\tfrac1{16}Heralded gates work but with fixed low probability; direct concatenation multiplies failure and cannot scale.
Teleported gatePgate=nn+1→1P_{\mathrm{gate}}=\frac{n}{n+1}\to 1An nn-photon entangled resource makes the heralded gate near-deterministic; error correction removes the rest.
Many photons in a random UUamplitude ∝Perm(US,T)\propto\mathrm{Perm}(U_{S,T})Non-universal yet classically hard: sampling is #P-related (boson sampling), the basis of photonic quantum-advantage claims.
Ideal detectors and sourcesη→1, pdark→0\eta\to1,\ p_{\mathrm{dark}}\to0Correctness assumes number-resolving detectors at unit efficiency; finite η\eta turns heralded successes into undetected errors — the dominant real-world limit.

Worked examples

1 · The probability budget of a KLM CNOT (fully worked)

A KLM CZ is assembled from two independent NS gates. Find its success probability. Then, using gate teleportation with an nn-photon resource, find how large nn must be to reach a 99%99\% heralded success, and compare with 99.9%99.9\%.

Step 1. Each NS gate heralds success with PNS=1/4P_{\mathrm{NS}}=1/4 (derivation 2). The two NS gates in the interferometer must both succeed, and they are heralded independently, so the CZ probability is the product PCZ=(1/4)2=1/16=0.0625P_{\mathrm{CZ}}=(1/4)^2=\mathbf{1/16}=0.0625. Directly chaining even a handful of such gates is hopeless: ten CZ gates in series would succeed only with probability (1/16)10≈9×10−13(1/16)^{10}\approx 9\times10^{-13}.

Step 2. Gate teleportation replaces the direct gate with one applied offline to an nn-photon entangled resource; the heralded success is Pgate=n/(n+1)P_{\mathrm{gate}}=n/(n+1) (equation 7). Setting n/(n+1)=0.99n/(n+1)=0.99 and solving, 0.99(n+1)=n⇒0.99=0.01 n⇒n=990.99(n+1)=n\Rightarrow 0.99=0.01\,n\Rightarrow n=\mathbf{99}. So a 9999-photon resource already makes each teleported gate succeed 99%99\% of the time.

Step 3. For 99.9%99.9\%, set n/(n+1)=0.999⇒n=999n/(n+1)=0.999\Rightarrow n=\mathbf{999}. The cost scales as n≈1/(1−P)n\approx 1/(1-P), a gentle (linear-in-inverse-error) growth — cheap compared with the exponential collapse of direct concatenation. The bare CZ is 1/16, but teleportation buys 0.99 at n = 99 and 0.999 at n = 999, and error correction then mops up the remaining failures.

2 · Recovering Hong–Ou–Mandel from the permanent rule, and the hardness gap

Use the permanent rule (equation 6) to compute the ∣1,1⟩→∣1,1⟩|1,1\rangle\to|1,1\rangle amplitude for a balanced beam splitter, confirming the HOM cancellation. Then estimate the classical cost of a single 5050-photon boson-sampling amplitude.

Step 1. For one photon in each of two modes the relevant submatrix is the whole balanced-splitter matrix U=12(111−1)U=\tfrac1{\sqrt2}\begin{pmatrix}1&1\\1&-1\end{pmatrix}, and all occupations are 00 or 11 so the normalization ∏nj! nj′!=1\sqrt{\prod n_j!\,n_j'!}=1. The amplitude is Perm(U)=12(1⋅(−1)+1⋅1)=0\mathrm{Perm}(U)=\tfrac12\big(1\cdot(-1)+1\cdot1\big)=\mathbf{0} — the coincidence vanishes, exactly the HOM result from derivation 1, now read off a permanent.

Step 2. Scale up to n=50n=50 photons in 5050 occupied modes: the amplitude is the permanent of a 50×5050\times50 complex submatrix. The best known exact algorithms (Ryser, Glynn) cost of order n 2nn\,2^{n} arithmetic operations. For n=50n=50 that is about 50×250≈5.6×101650\times2^{50}\approx\mathbf{5.6\times10^{16}} operations.

Step 3. Contrast with a determinant of the same size, computable by elimination in ∼n3=503=1.25×105\sim n^{3}=50^{3}=\mathbf{1.25\times10^{5}} operations. The permanent is more than eleven orders of magnitude more expensive — and a boson sampler must effectively produce many such amplitudes at once. The same non-interacting optics that cannot compute a CNOT produces amplitudes (permanents) that are exponentially hard to evaluate classically — the engine of boson-sampling quantum advantage.

Physics of the portrait

Linear-optical quantum computing has no single discoverer of a law; its portrait is the theorist who saw that measurement could stand in for interaction, and who turned an impossibility proof into a scalable architecture.

Origins · 1 minEmanuel Knill and how this was discovered
EK
Emanuel Knill
lead author of the 2001 KLM scheme for scalable linear-optical quantum computing · measurement-induced nonlinearity, fault tolerance, and quantum error correction

By 2000 the conventional wisdom was that optical quantum computing was dead in the water: photons do not interact, and the strong Kerr nonlinearities needed for a two-photon gate are ruinously weak at the single-photon level. Emanuel Knill, working at Los Alamos with Raymond Laflamme and the Australian quantum-optics theorist Gerard J. Milburn, overturned that verdict in a single 2001 Nature paper. Their insight was that the nonlinearity need not live in the Hamiltonian at all: a photon-counting measurement on an ancilla mode is itself a nonlinear operation on the signal, and conditioning on a particular click implements, on the surviving runs, the very Kerr-like sign flip that passive optics forbids. From this they built the nonlinear-sign gate (success 1/41/4), the CZ (success 1/161/16), and — crucially — a way out of the probabilistic trap: teleport the data qubit through a gate applied offline to an entangled resource, so failures become heralded and recoverable, with success rising as n/(n+1)n/(n+1) and the residue cleaned up by quantum error correction. Knill's fingerprints are all over modern quantum information beyond LOQC: the Knill–Laflamme conditions that define when a code can correct a given error set, foundational work on fault-tolerance thresholds, and benchmarking protocols now standard on every quantum processor. The KLM paper's lasting lesson is conceptual rather than architectural — few labs build raw KLM circuits — but the idea that measurement and feedforward can synthesize interactions absent from the Hamiltonian reshaped how the whole field thinks about building gates.

History
1987
— Hong, Ou and Mandel observe the two-photon coincidence dip at a beam splitter
1994
— Reck, Zeilinger, Bernstein and Bertani decompose any U(m) into beam splitters and phase shifters
2001
— Knill, Laflamme and Milburn prove linear optics with measurement is universal and scalable
2011
— Aaronson and Arkhipov formalize boson sampling and its classical hardness
2020
— Jiuzhang reports Gaussian-boson-sampling quantum advantage with photons

Going further

Texts. Nielsen & Chuang, Quantum Computation and Quantum Information, §7.4 (optical implementations) · Kok, Munro, Nemoto, Ralph, Dowling & Milburn, "Linear optical quantum computing with photonic qubits", Rev. Mod. Phys. 79, 135 (2007) — the standard review · Knill, Laflamme & Milburn, "A scheme for efficient quantum computation with linear optics", Nature 409, 46 (2001) — the founding paper · Preskill, Lecture Notes on Quantum Computation, Ch. 9 · Reck et al., Phys. Rev. Lett. 73, 58 (1994) and Clements et al., Optica 3, 1460 (2016) for the interferometer meshes · Aaronson & Arkhipov, "The Computational Complexity of Linear Optics", Theory of Computing 9, 143 (2013). The key numerical results in this article are: the HOM cancellation expressed as Perm\mathrm{Perm} of the balanced 2×22\times2 splitter =0=0; the NS-gate amplitude 1/21/2 and probability 1/41/4, and the CZ probability 1/161/16; the teleported-gate scaling n/(n+1)n/(n+1), giving n=99n=99 for 99%99\% and n=999n=999 for 99.9%99.9\%; the Reck/Clements element count (m2)\binom{m}{2}, with 1515 elements and depths 99 (Reck) versus 66 (Clements) at m=6m=6; and the permanent cost ∼n 2n≈5.6×1016\sim n\,2^n\approx5.6\times10^{16} at n=50n=50 versus n3=1.25×105n^3=1.25\times10^5 for a determinant.

Prerequisites. Photonic Qubits · KLM Protocol · DiVincenzo Criteria. Leads to. Measurement-Based Quantum Computing · Boson Sampling · Photonic Cluster States.

Ask the tutor: Ask me to walk through the NS-gate interferometer amplitude by amplitude, or to show how a failed teleported gate leaves the data qubit recoverable.

If linear optics cannot entangle photons, how can KLM claim universality?

The claim is not that passive optics alone is universal — it provably is not — but that passive optics supplemented by single-photon sources, ancillas, and photon-counting measurement with feedforward is. The measurement is the active ingredient: detecting an ancilla in a definite photon number is a nonlinear operation on the signal, and conditioning on the right outcome applies, on those runs, the sign flip that no beam splitter can. Because the outcome is heralded, failures are known and can be corrected or retried. So universality lives in the combination of linear optics and measurement, not in the optics by itself.

What exactly is the "nonlinearity" that measurement provides?

A deterministic two-qubit gate needs a photon-number-dependent phase — physically, a Kerr medium in which the phase acquired by one mode depends on how many photons are in another. At the single-photon level such Kerr effects are far too weak. KLM's substitute is effective, not material: when you interfere the signal with an ancilla and detect the ancilla, the different photon-number components of the signal interfere along different paths to the detected outcome, and the surviving conditioned state carries a relative phase that depends on photon number — a π\pi phase on the two-photon term for the NS gate. No Kerr medium is present; the interference plus projection manufactures the same effect probabilistically.

Is the 1/4 success probability of the NS gate fundamental or just a bad design?

For a nonlinear-sign gate heralded by a single ancilla photon, 1/41/4 is the optimal success probability — you cannot do better within that resource class, and KLM's construction achieves it. You can raise per-gate success by using more ancilla photons and entanglement, which is exactly what gate teleportation does, driving the effective success to n/(n+1)n/(n+1). So 1/41/4 is fundamental to the simplest heralded NS gate but not to LOQC as a whole; the architecture is designed precisely so that this low number never appears as a per-logical-gate cost.

Does boson sampling being hard mean a linear-optical computer is universal?

No — and the coexistence is the interesting part. Boson sampling shows that sampling the output distribution of a fixed random interferometer is classically intractable, because the amplitudes are permanents. But sampling from a hard distribution is not the same as being able to run an arbitrary algorithm: a boson sampler cannot be programmed to factor a number or search a database. It is a special-purpose device that is hard to simulate yet not universal. Universal LOQC needs the extra ingredients — adaptive measurement, feedforward, and error correction — that a passive boson sampler lacks.

Why did the field move from raw KLM circuits to cluster states and fusion?

Because probabilities multiply. A logical algorithm might need thousands of two-qubit gates; at 1/161/16 each, chaining them directly gives an astronomically small success probability, and the teleportation overhead to fix every gate inline is enormous. Cluster-state and fusion-based schemes reorganize the work: they spend the probabilistic entangling operations offline to build a large entangled resource once, tolerating individual failures through percolation and renormalization, and then compute with cheap deterministic single-qubit measurements. The nondeterminism is not eliminated but relocated to resource preparation, where retries are affordable.

Is photon loss or photon distinguishability the bigger problem?

Both are serious, but loss is usually the harder wall. Distinguishability — photons not being perfectly identical — degrades the Hong–Ou–Mandel interference that entangling gates rely on, lowering fidelity, and it can be pushed down with better sources and spectral filtering. Loss is more insidious in a heralded architecture: when a photon vanishes, the herald you were counting on may simply not fire, or worse, fire spuriously, turning a known success into an undetected error. Because thresholds for loss-tolerant photonic error correction are demanding, near-unit-efficiency detectors and ultra-low-loss components are the make-or-break engineering targets.

Are photons good qubits by the DiVincenzo criteria?

Photons are superb on some criteria and awkward on others. They excel at coherence (little decoherence in flight) and at "flying qubit" transmission — they are the natural carriers for a quantum internet. Single-qubit gates (phase shifters, beam splitters) are easy and low-noise. Where they struggle is the deterministic two-qubit gate, which is exactly why LOQC exists as a subject; and scalable initialization and readout demand deterministic single-photon sources and high-efficiency number-resolving detectors that are still being perfected. LOQC is the sustained effort to satisfy the DiVincenzo criteria for light despite the missing deterministic interaction.

Before this

Where this leads