Session 01 — Solving the detector by matrix inversion: cavities, loops, and transfer functions
Spine placement: Block 1 (The Interferometer) → optics/matrix_methods, session 1 of 3.
This is the session where the curriculum’s organizing idea — “the detector is a hierarchy of
linear systems” — becomes a concrete, repeatable computational recipe.
The recipe (one method, used everywhere below):
Draw the system as a directed graph of fields/signals (nodes) and couplings (edges).
Write the node-coupling (“adjacency”) matrix M by inspection of the drawing.
Invert: solve
(I − M) x = x_in, i.e.x = (I − M)⁻¹ x_in. The inverse is the closed-loop response of the whole system.A Fabry–Perot cavity, a SISO feedback loop, and (later) a full interferometer are the same calculation with a bigger matrix.
Commissioning question¶
“When I push on a mirror or step the laser frequency, how much does the field inside the arm cavity actually move — and how fast can my control loop correct it?”
Every answer in commissioning is some entry of an inverted matrix. This session teaches you to build that matrix from a drawing and read the answer off the inverse.
Learning objectives¶
Participants can:
Draw a two-mirror cavity as a field-node graph and write its coupling matrix
Mby inspection.Solve the cavity by matrix inversion and show the result equals the analytic self-consistency solution
E = t₁E_in /(1 − r₁r₂e^{2iφ}).Recognize that a SISO feedback loop is the identical construction, and read the sensitivity
S = 1/(1+PC)and complementary sensitivityT = PC/(1+PC)directly off(I − M)⁻¹.Compute a frequency response in the audio-sideband (small-signal) approximation by evaluating the inverted system at
s = iΩ, and extract the cavity pole.Explain why “scaling up” to MIMO / a full interferometer changes only the size of
M, not the method.
Retrieval warm-up¶
(Answers at the end of this note.)
In our convention (
exp(−iωt), propagationexp(+ikL)), what is the one-way phase a field accumulates traversing a cavity of lengthLat frequencyω?A cavity is “resonant” when the round-trip field reinforces the input. In one sentence, why is that a feedback condition rather than a static one?
For a single-pole low-pass response, what happens to gain and phase as frequency passes the pole?
Scope¶
Included
The draw → coupling-matrix → invert recipe.
Two-mirror Fabry–Perot cavity: circulating field, reflected field, buildup vs detuning.
The cavity ↔ feedback-loop equivalence (round-trip gain
r₁r₂e^{2iφ}is an open-loop gain).SISO closed-loop transfer functions
S,Tfrom the matrix inverse.Frequency response via the audio-sideband (small-signal) approximation; the cavity pole.
Excluded (named here so you know where they live)
RF modulation / PDH error signals →
optics/pdh_signals.Michelson topology and the dark port →
optics/ifo_topology.Multi-DOF control design (loop shaping, stability margins) →
controls/lsc,foundations/feedback_basics.Higher-order spatial modes →
optics/spatial_modes.
Core model¶
1. The system is a graph; the matrix is its adjacency¶
A linear optical/control system is a directed graph: nodes are complex amplitudes (fields or signals), edges carry a complex gain. Each node equals the sum of its incoming edges plus any external injection:
is the gain of the edge from node into node — read straight off the drawing;
it is the (complex-weighted) adjacency matrix. Solving is one numpy.linalg.solve, and the
inverse is the closed-loop response: every node’s response to every injection at
once.
Go deeper — the inverse is a sum over all physical paths
When the loop gain is below unity (spectral radius ), the inverse is the Neumann series
The entry of sums the gain products of every directed walk of length from to , so is the sum over all paths from to — physically every route the wave can take, including every number of round trips. For the cavity below, the terms are the -bounce contributions and is exactly the geometric buildup series . “Invert the matrix” and “sum the multiple-reflection series” are the same statement.
2. Fabry–Perot cavity¶
Mirrors ITM , ETM ; one-way phase . Four nodes around the
round trip, with one sign convention that matters: a field reflecting off the HR/cavity
side of a mirror picks up (off the substrate side, ); transmission is real. (This is the
unitary convention in shared/code/conventions.py.)
leaves the ITM toward the ETM; reaches the ETM,
reflects back; returns to the ITM,
the ITM closes the loop: .
By inspection,
The drawing is the matrix: each directed edge below is one nonzero entry of (edge gain from node into node is ), and the round trip carries the two HR-side reflection signs (ITM) and (ETM).
Caption: the Fabry–Perot field graph. Read straight off this drawing — the four loop edges , , , are exactly the four nonzero entries of above; the injection into is , and the reflected field leaves toward the laser.
Solving reproduces the textbook result — but we never derive it by hand; we invert.
Go deeper — closed forms, buildup, and over/under/critical coupling
Eliminating nodes gives , hence the circulating field
and the field reflected back toward the laser, , becomes
On resonance the power builds up by . The reflected amplitude encodes the coupling:
under-coupled : ;
critically coupled : — all incident light enters, none reflects;
over-coupled (the LIGO arm case, ETM ≈ perfect): , .
Energy is conserved: (the notebook asserts this). With a naive “ on both sides” convention the mirror is non-unitary and exceeds 1 — keep that as a sanity check on any field model you build.
Resonance is a feedback condition. The denominator is . As the loop gain approaches unity and the field diverges — exactly a feedback loop approaching instability. That is the bridge to the next part.
3. SISO feedback loop — the same drawing¶
Plant , controller , error , actuation , output , reference , disturbance :
Three nodes ; edges (gain -1), (), (); injections into , into :
Drawn as a block diagram, this is the same graph: the comparison node forms , the controller and plant are the forward edges, and the output feeds back with gain -1 (negative feedback) — the optical analogue of the round-trip signs above.
Caption: the SISO feedback loop as a block diagram. The summing node computes the error ; drives the plant; the disturbance adds at the plant output to make ; and returns through the -1 feedback edge. This is the same three-node graph whose coupling matrix is written above.
The inverse hands you the closed-loop transfer functions with no extra algebra:
Go deeper — reading S and T off (I−M)⁻¹
Substituting, , and . So the columns of acting on are literally and . This is the same recipe as the cavity: the round-trip gain plays the role of the loop gain , and is the common denominator. A resonant cavity is an optical feedback loop.
4. Transfer functions: the audio-sideband (small-signal) approximation¶
So far ’s entries were numbers (one frequency). For a frequency response we let a quantity wiggle at audio frequency and ask how the steady state responds — the small-signal picture. A real modulation at places audio sidebands on the carrier at ; in the linear regime each sideband propagates independently, so we re-evaluate the same matrix with frequency-dependent edges and read the response at offset .
Loop: make functions of and evaluate at ⇒ , the Bode response.
Cavity: the round-trip gain at sideband offset is ; the circulating field rolls off as a single pole , with the cavity pole .
Go deeper — where the cavity pole comes from
On resonance the carrier sees ; a sideband at offset sees , so the normalized response is . With , the half-power point () is where , i.e. . For this is , i.e.
The notebook extracts from the -3 dB point and matches this to ~0.00%. Higher finesse ⇒ more buildup but a lower ⇒ less control bandwidth — the commissioning trade-off.
Concept questions (ConcepTests)¶
You double the ITM transmissivity
T₁(cavity becomes “leakier”). Predict, before computing: does the cavity polef_cgo up or down, and does on-resonance buildup go up or down?In the loop matrix, the
y→eedge has gain−1(negative feedback). What single sign change inMwould turn this into positive feedback, and what would the inverse do nearPC → 1? (Connect this back to cavity resonance.)
Common misconceptions¶
“Matrix inversion is just a fancier way to write the formula I already know.” The point is the opposite: you stop deriving formulas. You draw, fill in
M, invert. The same code solves a cavity, a loop, and an interferometer.“Resonance and feedback are different topics.” They are the same denominator
1 − (loop gain).“Audio sidebands are an RF/PDH thing.” RF sidebands are added deliberately for sensing (later). Audio sidebands are just the small-signal content of any slow modulation — they are how a transfer function exists at all.
“A higher-finesse cavity is always better.” Higher finesse means more buildup but a lower pole — less control bandwidth. Commissioning lives in this trade-off.
Laptop block (30 min) — Predict → Model → Measure → Explain¶
Notebook: notebooks/optics/matrix_methods/session_01_matrix_inversion.ipynb.
Imports the canonical conventions from shared/code/conventions.py. The notebook fades from a
worked example → guided completion → an independent task; each part has an analytic
check (assert) so you get private, immediate pass/fail feedback.
Predict — sketch circulating power vs detuning, and the reflected-field phase through resonance, before running anything.
Model (worked) — build the cavity coupling matrix
M(φ)by inspection; solve(I − M)E = x_in.Measure — sweep detuning; overlay the matrix solution on the analytic Airy curve (they must coincide to machine precision); compute FSR, finesse, and the cavity pole.
Guided — build the SISO loop matrix and confirm
(I − M)⁻¹reproducesSandT.Independent — compute the cavity frequency response in the audio-sideband approximation, extract
f_cnumerically, and compare toFSR/(2𝓕).Explain — write one or two sentences reconciling your prediction with the result.
Mandatory figures (produced by the notebook):
Circulating power vs detuning (Airy curve), matrix vs analytic overlaid.
Complex reflectivity vs detuning (magnitude and phase flip through resonance).
|H(Ω)|vs frequency showing the cavity pole.Condition number of
(I − M)vs detuning (why near-resonance is numerically delicate).
Exit prompt¶
In your own words (2–3 sentences): what is the same, and what is different, between solving a Fabry–Perot cavity and solving a feedback loop? If you can answer this, you can read the next two sessions as “the matrix just got bigger.”
Go deeper / refresher¶
Refresher — if
exp(−iωt)/exp(+ikL)conventions feel shaky, skimshared/code/conventions.py(it is short and is the single source of truth).Go deeper — session 2 turns
(P, C)and the optical nodes into matrices (MIMO): the same(I − M)⁻¹becomes a closed-loop response matrix. Session 3 grows the optical graph to a Michelson with arm cavities — a biggerM, identical recipe.This session implements the field/cavity content of the optics seed lectures L01–L02; the audio-sideband viewpoint sets up the RF/PDH treatment in
optics/pdh_signals.
Retrieval warm-up — answers¶
φ = kL = ωL/cone way;2φfor a round trip.The circulating field appears on both sides of its own equation (
E₁ = t₁E_in + r₁r₂e^{2iφ}E₁): the output feeds back into the input, so the steady state is a self-consistency (fixed-point) condition, not a one-pass calculation.At the pole the gain is down 3 dB (×1/√2) and the phase lag is 45°; well above it gain rolls off ∝ 1/Ω and phase approaches 90°.