Dual-Rail Photonic Qubits: Encoding a Qubit in Two Paths

Dual-Rail Photonic Qubits: Encoding a Qubit in Two Paths

A single photon across two optical modes can encode a qubit. See how a balanced beam splitter coherently mixes the paths into a superposition.

A qubit does not have to be stored in two energy levels of one atom. In photonic quantum computing, it can be encoded in which of two optical modes contains a single photon. This is called dual-rail encoding.

One photon, two rails

Let modes a and b be two paths through a chip or interferometer. The logical basis is:

  • |0_L⟩ = |1⟩_a |0⟩_b: one photon in path a
  • |1_L⟩ = |0⟩_a |1⟩_b: one photon in path b

A general qubit is α|0_L⟩ + β|1_L⟩, with |α|² + |β|² = 1. The photon is not a tiny classical ball that secretly chose a path. Before measurement, its two path amplitudes can remain coherent, and their relative phase affects later interference.

What a balanced beam splitter does

A beam splitter mixes the two optical modes. In one common phase convention, its action on the dual-rail amplitudes is represented by:

B(θ, φ) = [[cos θ, -e^(-iφ) sin θ], [e^(iφ) sin θ, cos θ]]

For θ = π/4, an input photon in path a leaves with equal-magnitude amplitudes in both paths. Measuring which path the photon takes gives probability one half for either result. Other optical conventions put factors of i on some ports; these phase choices matter when gates are composed, but can be tracked with phase shifters.

Here is a small NumPy statevector calculation for one balanced mixing step:

import numpy as np

def beam_splitter(theta, phi=0.0):
    c, s = np.cos(theta), np.sin(theta)
    return np.array([[c, -np.exp(-1j * phi) * s],
                     [np.exp(1j * phi) * s, c]], dtype=complex)

rail_a = np.array([1, 0], dtype=complex)
B = beam_splitter(np.pi / 4, phi=0.0)
output = B @ rail_a
probabilities = np.abs(output) ** 2
print(np.round(output, 3))
print(np.round(probabilities, 3))

The amplitudes are about [0.707, 0.707], and the probabilities are [0.5, 0.5]. The key is that the amplitudes are still available to interfere in later parts of the circuit. A beam splitter does not simply toss a classical coin.

From paths to a circuit

Beam splitters and phase shifters can be combined to implement single-qubit transformations on dual-rail states. Building a two-qubit gate is harder because photons interact weakly with each other. Linear-optical designs can use extra photons and measurement outcomes to herald an entangling operation. A recent photonic quantum computing review explains these encodings and optical components, while Kok and colleagues' review surveys linear-optical quantum computing more broadly.