Foundations·Part 11 of 12
Circuits as matrices
The circuits of this series are linear: the complex amplitude of the light at each output is a weighted sum of the amplitudes at the inputs, with weights that do not depend on how much light enters. A circuit with two inputs and two outputs is therefore described completely by a matrix of complex numbers, and a circuit with inputs and outputs by an matrix. This article builds these matrices from the components of the previous articles and shows how connecting components multiplies them; the lab computes every circuit in this way.
A component as a matrix
Write the complex amplitudes at a component’s inputs as a vector and those at its outputs as . For a linear component,
The matrix is the component’s transfer matrix. Its entry is the amplitude that arrives at output for light of amplitude 1 at input : rows belong to outputs, columns to inputs. Each entry is an amplitude, not a power. The fraction of the power that goes from input to output is , and the powers of different inputs cannot be added in this way when the inputs are coherent: the amplitudes add first, as in the article Interference.
The components of the series have simple matrices. A waveguide of length multiplies the amplitude by , a phase shifter by ; two waveguides side by side form a diagonal matrix. A directional coupler with power coupling mixes two amplitudes (Splitters and combiners):
Connecting components
When the outputs of one component feed the inputs of the next, the amplitudes leaving the first are the amplitudes entering the second. A chain of components , then , then therefore has the matrix
a cascade, with the first component on the right, since it acts on the input vector first. The order matters: matrix products do not commute. A phase shifter placed before a coupler changes the phase relation of the light it mixes; the same phase shifter placed after the coupler only delays one of its outputs.
The MZI of the previous article, The Mach-Zehnder interferometer, is the cascade of a coupler, two arms and a coupler, . Figure 1 shows the product with numbers. Choosing an entry of shows how it arises.
Each entry of a product is a sum over the paths through the circuit: , one term for each arm the light can take from input to output . The matrix product carries out, for every pair of input and output at once, the adding of phasors that the article Interference introduced. At , the two terms of are and : the two paths to the bar output cancel.
Lossless means unitary
A lossless circuit keeps the total power: for every input vector, . Written with the conjugate transpose , the total output power is , so the condition holds for all inputs exactly when
A matrix with this property is unitary. Its columns are vectors of length 1, since each input’s light leaves somewhere, and they are orthogonal to each other. The coupler of Eq. (2) is unitary for every , and so are the phase matrices; products of unitary matrices are unitary, so every circuit built from lossless parts is. A circuit that loses light satisfies the weaker condition that is at most : no input vector gains power [1].
The scattering matrix
Real circuits are not always a simple chain. Light can travel in both directions in a waveguide, it can return to where it came from in a loop such as a ring resonator, and a component’s ports are not fixed as inputs or outputs. The general description is the scattering matrix (S-matrix). It lists every port of a component and relates the amplitudes of the waves entering all ports to those of the waves leaving them. For a directional coupler it is a matrix in which the transfer matrix appears twice, once for each direction.
For passive components made of ordinary materials, the S-matrix is symmetric, : light from port reaches port with the same amplitude as light from reaches . This property is reciprocity; only components with magnetic materials or magnetic fields, such as optical isolators, break it [1].
The lab builds a circuit from the S-matrices of its components and the list of their connections. From these it computes the S-matrix of the whole circuit, including the light that circulates in loops, at one wavelength at a time. Every power shown in the lab is of that matrix, times the power of the laser.
Matrices from meshes of MZIs
A single MZI with a phase shifter at one input sets both the splitting ratio and a phase: it can produce any unitary matrix up to phases at its outputs. Meshes of such elements go further. Any unitary matrix of size can be built from beam splitters and phase shifters [2], and a rectangular mesh does so with MZIs, arranged so that light passes through about half as many of them as in earlier designs [3]. Programmable photonic circuits use such meshes [4], and such a mesh has carried out the matrix multiplications of a small neural network [5]. The lab’s Clements mesh examples are meshes of this kind.
How do we model itOptional · unitarity, and the circuit formula the lab solves
The coupler is unitary. With from Eq. (2),
Why powers cannot be added. For light entering both inputs of a unitary , the power at output is
The last term is the interference term; it vanishes only if the two inputs are incoherent.
Circuits with loops. Let be the block-diagonal matrix of all components’ S-matrices, the connection matrix, with if port is connected to port , and the matrix that selects the circuit’s external ports. The waves leaving all ports satisfy : every wave leaving a component comes either from a connected component or from outside. Solving for gives the circuit’s S-matrix,
For a chain without loops this reduces to the product of Eq. (3); the inverse accounts for light that returns, such as the light circulating in a ring. The lab solves this system at each wavelength.
- A linear circuit is described by a matrix of complex amplitudes; its entry takes light from input to output , and is the fraction of power.
- Connecting components multiplies their matrices, with the first component on the right; each entry of the product sums the amplitudes of all paths.
- A lossless circuit has a unitary matrix, and meshes of MZIs can produce any unitary matrix.
References
- 1Chrostowski, L., Hochberg, M. (2015). Silicon Photonics Design. Cambridge University Press. doi:10.1017/CBO9781316084168
- 2Reck, M., Zeilinger, A., Bernstein, H. J., Bertani, P. (1994). Experimental realization of any discrete unitary operator. Physical Review Letters 73, 58. doi:10.1103/PhysRevLett.73.58
- 3Clements, W. R., Humphreys, P. C., Metcalf, B. J., Kolthammer, W. S., Walmsley, I. A. (2016). Optimal design for universal multiport interferometers. Optica 3, 1460. doi:10.1364/OPTICA.3.001460 (open access)
- 4Bogaerts, W., Pérez, D., Capmany, J., Miller, D. A. B., Poon, J., Englund, D., Morichetti, F., Melloni, A. (2020). Programmable photonic circuits. Nature 586, 207. doi:10.1038/s41586-020-2764-0
- 5Shen, Y., Harris, N. C., Skirlo, S., Prabhu, M., Baehr-Jones, T., Hochberg, M., Sun, X., Zhao, S., Larochelle, H., Englund, D., Soljačić, M. (2017). Deep learning with coherent nanophotonic circuits. Nature Photonics 11, 441. doi:10.1038/nphoton.2017.93
Approximations used on this page: APX-001 lossless components by default, APX-004 wavelength-independent coupling ratio.