On paper, this module's story is complete: decompose the matrix, set the phases, ship the chip. In
the lab, a fabricated mesh greets its first power-up very differently. Every waveguide came out of
the fab a few nanometres wide or narrow of nominal, so every MZI sits at an unknown phase offset —
set all heaters to zero and the mesh implements not the identity but a random unitary of the
universe's choosing. Drive one thermal
The "compiler" was built two lessons ago. Given a target unitary
Then reality interposes a translation layer. A phase of "
Suppose calibration leaves each phase with a small independent residual error of standard
deviation
(the exact constant depends on convention and on where in the mesh each error sits — errors in
central MZIs hurt more than edge ones — but the scaling is the story). Read the exponent like an
engineer: fidelity is set by (number of phases) × (error per phase)². Play with the
slider and watch the same per-phase error that is harmless at
The scaling has teeth: quadrupling the mesh's linear size multiplies its phase count —and hence the exponent — by roughly sixteen, demanding per-phase accuracy four times better just to stand still. This is the honest reason photonic processors did not leap from 4×4 demos to 1024×1024 products in a product cycle, and why everything below exists.
Worse than independent errors: the knobs are not even independent. A thermo-optic shifter is a
resistor heating a waveguide, and heat diffuses — driving heater
The most elegant escape, though, dodges the problem entirely: self-configuration.
In protocols introduced by David Miller, the mesh is set up one MZI at a time using only
local, physical feedback: inject the appropriate input, watch a monitor detector on one
port, and adjust the two knobs of one MZI until that detector nulls; repeat down the mesh in the
decomposition's own elimination order. The procedure needs no knowledge of any offset,
response curve or crosstalk — each null is a physical fact, not a computed setting, so every
imperfection is absorbed automatically. It is the Givens elimination executed by photons instead
of floating point. The same philosophy scales up in
One last twist: the same hardware error hurts different targets unequally. The mesh's
phase errors amount to a perturbation
A well-conditioned target (
Around 2013, Stanford's David Miller — a lifetime deep in the physics of optical interconnects —
published a deceptively simple observation. Suppose light arrives at a chip in some arbitrary,
even unknown, superposition across several waveguides, and you would like all of its
power gathered into one. Put a photodiode on the port you want dark, and adjust the nearest MZI's
knobs until that diode reads zero; move to the next MZI and the next diode; repeat. When the last
diode nulls, all the light — by pure energy conservation — has been herded into the one remaining
port, and the mesh has, without any calculation, physically measured and inverted the
unknown input state. No calibration tables, no crosstalk model, no knowledge of the errors the
procedure just silently absorbed. Run backwards, the same sweep programs a mesh to any desired
unitary, column by column. Miller's protocols turned "calibrate ten thousand analog knobs" from a
metrology nightmare into a for-loop over photodiodes, and they are a direct ancestor of the
self-configuring, drift-chasing control layers in today's commercial photonic processors — the
subject the capstone module's
The tempting mental model — characterise the chip at the factory, burn the table to flash, done — fails for photonic meshes on three separate clocks. Seconds to minutes: thermal drift. Phases depend on temperature so strongly that the computation itself disturbs them: reprogram half the mesh and the changed heater load warms the other half off its settings. Hours to days: environment — ambient swings, package stress, humidity creeping into claddings. Months to years: aging of heaters and materials. Production systems therefore treat calibration as a process, not an event: temperature servos on the package, monitor taps sprinkled through the mesh, background dither loops continuously re-nulling while the chip computes, periodic full re-characterisation. Budget the control electronics accordingly — in mature designs the tuning-and-monitoring layer rivals the photonics in complexity and, for thermal meshes, dominates the standing power draw. A mesh is never "calibrated"; it is only ever being calibrated.
Take stock of what this module built: beamsplitters are unitary matrices; two phases make an MZI
a programmable 2×2;