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 2×22 \times 2 matrix of complex numbers, and a circuit with NN inputs and outputs by an N×NN \times N 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 a\mathbf{a} and those at its outputs as b\mathbf{b}. For a linear component,

b=T a,bi=∑jTij aj.(1)\mathbf{b} = T\,\mathbf{a}, \qquad b_i = \sum_j T_{ij}\, a_j. \tag{1}

The matrix TT is the component’s transfer matrix. Its entry TijT_{ij} is the amplitude that arrives at output ii for light of amplitude 1 at input jj: rows belong to outputs, columns to inputs. Each entry is an amplitude, not a power. The fraction of the power that goes from input jj to output ii is ∣Tij∣2|T_{ij}|^2, 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 LL multiplies the amplitude by eiβLe^{i\beta L}, a phase shifter by eiΔφe^{i\Delta\varphi}; two waveguides side by side form a diagonal matrix. A directional coupler with power coupling κ2\kappa^2 mixes two amplitudes (Splitters and combiners):

D=(eiφ000eiφ1),C=(tiκiκt),t=1−κ2.(2)D = \begin{pmatrix} e^{i\varphi_0} & 0 \\ 0 & e^{i\varphi_1} \end{pmatrix}, \qquad C = \begin{pmatrix} t & i\kappa \\ i\kappa & t \end{pmatrix}, \quad t = \sqrt{1-\kappa^2}. \tag{2}

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 T1T_1, then T2T_2, then T3T_3 therefore has the matrix

T=T3 T2 T1,(3)T = T_3\, T_2\, T_1, \tag{3}

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, S=CDCS = C D C. Figure 1 shows the product with numbers. Choosing an entry of SS shows how it arises.

S (select an entry)
=
0.710.71i0.71i0.71
coupler 2
·
1.00i0.000.001.00
arms: heater
·
0.710.71i0.71i0.71
coupler 1

S₁₀, from in0 to out1, is the sum of two paths:
through the upper arm −0.50
through the lower arm 0.50i
sum −0.50 + 0.50i, power |S₁₀|² = 50 %

upper-arm path, then lower-arm path, and their sum

Rows are outputs, columns are inputs: S₁₀ takes light from in0 to out1. Light passes coupler 1 first, so its matrix stands on the right.

At a phase difference of 0.50π, the entry S₁₀ is −0.50 + 0.50i, the sum of −0.50 through the upper arm and 0.50i through the lower arm.

Figure The Mach-Zehnder interferometer as the product of the matrices of its parts, with 50:50 couplers. An entry of SS is the sum of two terms, one for each arm; the phasor diagram adds them.APX-001, APX-004

Each entry of a product is a sum over the paths through the circuit: Sij=∑kCikDkkCkjS_{ij} = \sum_k C_{ik} D_{kk} C_{kj}, one term for each arm kk the light can take from input jj to output ii. The matrix product carries out, for every pair of input and output at once, the adding of phasors that the article Interference introduced. At Δφ=0\Delta\varphi = 0, the two terms of S00S_{00} are 1/21/2 and −1/2-1/2: the two paths to the bar output cancel.

Lossless means unitary

A lossless circuit keeps the total power: for every input vector, ∑i∣bi∣2=∑j∣aj∣2\sum_i |b_i|^2 = \sum_j |a_j|^2. Written with the conjugate transpose T†T^\dagger, the total output power is a†T†Ta\mathbf{a}^\dagger T^\dagger T \mathbf{a}, so the condition holds for all inputs exactly when

T†T=I.(4)T^\dagger T = I. \tag{4}

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 κ\kappa, 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 T†TT^\dagger T is at most II: 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 4×44 \times 4 matrix in which the 2×22 \times 2 transfer matrix appears twice, once for each direction.

For passive components made of ordinary materials, the S-matrix is symmetric, S=STS = S^\mathsf{T}: light from port jj reaches port ii with the same amplitude as light from ii reaches jj. 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 ∣Sij∣2|S_{ij}|^2 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 2×22 \times 2 unitary matrix up to phases at its outputs. Meshes of such elements go further. Any unitary matrix of size N×NN \times N can be built from beam splitters and phase shifters [2], and a rectangular mesh does so with N(N−1)/2N(N - 1)/2 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.

Key idea
A linear optical circuit is a matrix of complex amplitudes: connecting circuits multiplies their matrices, and the power at an output is the squared magnitude of a sum of amplitudes.
How do we model itOptional · unitarity, and the circuit formula the lab solves

The coupler is unitary. With CC from Eq. (2),

C†C=(t−iκ−iκt)(tiκiκt)=(t2+κ2itκ−iκt−iκt+itκκ2+t2)=I.\begin{aligned} C^\dagger C &= \begin{pmatrix} t & -i\kappa \\ -i\kappa & t \end{pmatrix} \begin{pmatrix} t & i\kappa \\ i\kappa & t \end{pmatrix} \\ &= \begin{pmatrix} t^2 + \kappa^2 & i t\kappa - i\kappa t \\ -i\kappa t + i t\kappa & \kappa^2 + t^2 \end{pmatrix} = I. \end{aligned}

Why powers cannot be added. For light entering both inputs of a unitary TT, the power at output ii is

∣Ti0a0+Ti1a1∣2=∣Ti0∣2∣a0∣2+∣Ti1∣2∣a1∣2+2Re⁡(Ti0a0Ti1∗a1∗).|T_{i0} a_0 + T_{i1} a_1|^2 = |T_{i0}|^2 |a_0|^2 + |T_{i1}|^2 |a_1|^2 + 2\operatorname{Re}(T_{i0} a_0 T_{i1}^* a_1^*).

The last term is the interference term; it vanishes only if the two inputs are incoherent.

Circuits with loops. Let S\mathbf{S} be the block-diagonal matrix of all components’ S-matrices, C\mathbf{C} the connection matrix, with Ckl=1C_{kl} = 1 if port kk is connected to port ll, and P\mathbf{P} the matrix that selects the circuit’s external ports. The waves leaving all ports satisfy b=S(Cb+Paext)\mathbf{b} = \mathbf{S}(\mathbf{C}\mathbf{b} + \mathbf{P}\mathbf{a}_\text{ext}): every wave leaving a component comes either from a connected component or from outside. Solving for b\mathbf{b} gives the circuit’s S-matrix,

Scircuit=PT(I−SC)−1S P.S_\text{circuit} = \mathbf{P}^\mathsf{T} (I - \mathbf{S}\mathbf{C})^{-1} \mathbf{S}\,\mathbf{P}.

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.

In short
  1. A linear circuit is described by a matrix of complex amplitudes; its entry TijT_{ij} takes light from input jj to output ii, and ∣Tij∣2|T_{ij}|^2 is the fraction of power.
  2. Connecting components multiplies their matrices, with the first component on the right; each entry of the product sums the amplitudes of all paths.
  3. A lossless circuit has a unitary matrix, and meshes of MZIs can produce any unitary matrix.
Next · FoundationsThe MZI in practiceWhat Mach-Zehnder interferometers are used for on real chips, and what limits them: imperfect couplers, loss, wavelength, heat and size.Read nextBuild it in the labClements mesh 4 × 4Open the mesh of six MZIs; it applies a 4 × 4 unitary matrix to the light in its waveguides.Open the lab

References

  1. 1Chrostowski, L., Hochberg, M. (2015). Silicon Photonics Design. Cambridge University Press. doi:10.1017/CBO9781316084168
  2. 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
  3. 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)
  4. 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
  5. 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.