Phase Estimation in a Michelson Interferometer

A fringe pattern is read out through KK bins. The phase is to be estimated while the fringe frequency is a nuisance. Which detector positions should each bin collect?

1. The interferometer​

A Michelson interferometer splits a coherent beam into two arms and recombines the reflected beams on a detector. A slight tilt between the returning wavefronts makes their relative phase vary across the detector, so the intensity forms bright and dark bands, the fringes. A change in the optical path difference shifts the phase and moves the pattern sideways; measuring that shift is the purpose of the instrument.

Michelson interferometer benchLight from the source splits at the beam splitter into two arms, each folded back by a mirror, and the recombined beam falls on a segmented detector of 6 counters.mirrorsourcemirrorbeam splitterdetectorsegmented detector, 6 counters
Schematic optical layout. The segmented detector shows the equal-width baseline.

A real detector varies in illumination, efficiency and background across its surface. A readout through a few bins needs a few calibrated quantities instead of a model of every pixel. The choice of bins then decides how much information about the phase survives.

2. The model and its score​

The detector coordinate uu is scaled so that one fringe has length 2π2\pi; the detector spans 4 fringes, u∈[0,8π)u\in[0,8\pi). A detected photon lands at uu with density

p(u∣φ,ϵ)∝1+Vcos⁡ ⁣((1+ϵ)u+φ),p(u\mid\varphi,\epsilon) \propto 1+V\cos\!\bigl((1+\epsilon)u+\varphi\bigr),

with visibility V=V={}0.60. The phase φ\varphi is the parameter of interest. The small fractional frequency error ϵ\epsilon stretches the pattern across the detector, so an unknown ϵ\epsilon can partly imitate a phase shift.

ScoreQuant works with the score, the gradient of the log density with respect to the parameters. At the reference point (φ,ϵ)=(0,0)(\varphi,\epsilon)=(0,0),

sφ(u)=−Vsin⁡u1+Vcos⁡u,sϵ(u)=u sφ(u)−V.s_\varphi(u) = -\frac{V\sin u}{1+V\cos u}, \qquad s_\epsilon(u) = u\,s_\varphi(u)-V.

The phase score is largest on the slopes of a fringe, where a small shift changes the intensity most, and has opposite signs on the rising and the falling slope.

Phase score along the detector: a periodic curve over the four fringe periods, positive on one slope of each fringe, negative on the other, and zero at every bright and dark extremum.
Phase score sφ(u)s_\varphi(u) along the detector.

The score enters ScoreQuant as a function of the observation:

import numpy as np
import scorequant as sq

EXECUTION = sq.ExecutionConfig(backend="numpy", precision="float64", device="cpu")

VISIBILITY = 0.60
N_FRINGES = 4
U_MAX = 2.0 * np.pi * N_FRINGES

SCHEMA = sq.ScoreSchema(("phase", "fringe_frequency"))
INTEREST = SCHEMA.select("phase")


def fringe_density(observations):
u = np.asarray(observations)[:, 0]
return (1.0 + VISIBILITY * np.cos(u)) / U_MAX


def michelson_score(observations):
u = np.asarray(observations)[:, 0]
s_phase = -VISIBILITY * np.sin(u) / (1.0 + VISIBILITY * np.cos(u))
return np.column_stack([s_phase, u * s_phase - VISIBILITY])


provider = sq.ScoreFunction(
michelson_score,
provenance=sq.ScoreProvenance(kind="exact", reference_point=(0.0, 0.0)),
schema=SCHEMA,
)

3. Why equal segments fail​

The obvious readout cuts the detector into equal segments. A bin responds to the phase through the mean phase score of the positions it collects, so a segment spanning both slopes of a fringe adds contributions of opposite sign, and they largely cancel. With one segment per fringe they cancel exactly: the integral of a cosine over a full period does not depend on its phase, so the counts carry no information about φ\varphi at all.

Fringe intensity along the apertureFringe intensity across 4 fringes, overlaid with 4 equal detector segments.1.600.4002π4π6π8πPosition along the aperture, in fringes
Photon density along the detector at visibility 0.60, cut into 4 equal segments, one per fringe. A phase shift slides the curve sideways and leaves every count unchanged.

The reason is simple: the information is carried by the score, not by the position. Distant positions with the same score can share a bin; neighbours on opposite slopes must not.

4. Binning in score space​

The score maps each detector position to a point s(u)=(sφ(u), sϵ(u))s(u)=\bigl(s_\varphi(u),\,s_\epsilon(u)\bigr). The image is a curve with one loop per fringe, each longer than the last because the frequency score grows with uu.

The Michelson model in score space: the phase score on the horizontal axis against the fringe-frequency score on the vertical, drawn as four narrow loops from a common point near the origin, each longer than the last.
The detector mapped into score space. Each point of the curve is one position uu.

A partition into KK cells with probability masses WbW_b and mean scores μb\mu_b retains the Fisher information

Ibin=∑b=1KWb μbμb⊤.I_{\mathrm{bin}} = \sum_{b=1}^{K} W_b\,\mu_b\mu_b^\top .

A cell enters only through its mass and its mean score, so it should collect positions with similar scores: the cells belong in score space. When both parameters matter, the standard criterion is D-optimality, max⁡qlog⁡det⁡Ibin\max_q \log\det I_{\mathrm{bin}}, which values retained information in every direction at once.

The optimization works on a fine grid of detector nodes, each carrying the probability of its interval:

N_NODES = 8_000
step = U_MAX / N_NODES

u = (np.arange(N_NODES) + 0.5) * step
observations = u[:, None]
weights = fringe_density(observations) * step
scores = provider.score(observations, execution=EXECUTION)

5. The D-optimal partition​

optimize_partition assigns the nodes to KK cells by exact exchange: a node changes cell whenever that increases the determinant, until no single move does.

N_BINS = 6

d_partition = sq.optimize_partition(
scores,
weights=weights,
n_bins=N_BINS,
criterion=sq.DOptimality(),
config=sq.DExchangeConfig(seed=4),
execution=EXECUTION,
)

d_quantizer = d_partition.compile_quantizer(execution=EXECUTION)
new_scores = provider.score(np.array([[1.0], [7.0], [15.0]]), execution=EXECUTION)
new_bins_d = d_quantizer.predict_scores(new_scores, execution=EXECUTION)
Three panels. Top left: the raw score plane tinted by six convex cells with straight edges, the trajectory coloured by cell. Top right: the same cells after whitening, an ordinary Voronoi diagram of the cell means. Bottom: the same labels along the detector, a comb of many intervals above six equal segments.
The D-optimal cells in the score plane (left), after whitening by the binned Fisher matrix (right), and along the detector above the equal segments (bottom).

In an exchange-stable D-optimal partition with a nonsingular Fisher matrix, every node is strictly nearest the mean score of its own cell in the metric of the inverse binned Fisher matrix: the partition is a Mahalanobis–Voronoi partition of score space (user guide (opens in a new tab)). The 6 cells are therefore connected regions with straight boundaries. Along the detector, however, they form a comb, because the score curve passes through each cell several times.

The theorem also supplies a rule. The optimization labels only the grid nodes, but the Voronoi geometry assigns a bin to any score vector, so compile_quantizer turns the partition into a reusable readout u→s(u)→q(s(u))u \to s(u) \to q\bigl(s(u)\bigr).

6. Reporting the phase alone​

Usually only φ\varphi is reported, and ϵ\epsilon is estimated beside it because it can imitate a phase shift: the two scores are strongly correlated, 0.8720 at the reference point. The information about φ\varphi that survives estimating ϵ\epsilon from the same data is the profiled phase information

Iφ∣ϵ=Iφφ−Iφϵ2Iϵϵ.I_{\varphi\mid\epsilon} = I_{\varphi\varphi} - \frac{I_{\varphi\epsilon}^2}{I_{\epsilon\epsilon}}.

D-optimality spends cells on resolving ϵ\epsilon as carefully as φ\varphi; the profiled criterion DsD_s maximizes log⁡Iφ∣ϵbin\log I_{\varphi\mid\epsilon}^{\mathrm{bin}} instead. A partition is judged by the fraction of the unbinned profiled information it retains. For one parameter of interest ScoreQuant also computes a certified upper bound on that fraction for any KK-bin partition (API guide (opens in a new tab)), and its partition is the starting point of the exchange:

bound = sq.efficient_score_bound(
scores, interest=INTEREST, weights=weights, n_bins=N_BINS, execution=EXECUTION
)

ds_partition = sq.optimize_partition(
scores,
weights=weights,
n_bins=N_BINS,
criterion=sq.ProfiledDOptimality(interest=INTEREST),
config=sq.DExchangeConfig(seed=4),
initial_labels=bound.labels,
execution=EXECUTION,
)
Counters K
Aperture readout at 6 countersThe profiled rule is a comb of 25 intervals over the aperture and plain D a comb of 25; equal segments are 6 contiguous intervals on the same aperture.Profiled DsPlain DEqual segments01234Position along the aperture, in fringes
Aperture readout at 6 counters
BandStart (u)End (u)Counter
Profiled Ds0.00000.13193
Profiled Ds0.13190.53092
Profiled Ds0.53091.18441
Profiled Ds1.18442.75830
Profiled Ds2.75832.98141
Profiled Ds2.98143.10082
Profiled Ds3.10083.22013
Profiled Ds3.22013.43694
Profiled Ds3.43695.06115
Profiled Ds5.06115.88734
Profiled Ds5.88736.49683
Profiled Ds6.49687.18172
Profiled Ds7.18179.11061
Profiled Ds9.11069.34942
Profiled Ds9.34949.57873
Profiled Ds9.578711.70564
Profiled Ds11.705613.19783
Profiled Ds13.197815.22422
Profiled Ds15.224220.05283
Profiled Ds20.052821.77754
Profiled Ds21.777522.08853
Profiled Ds22.088522.42152
Profiled Ds22.421523.99551
Profiled Ds23.995524.87202
Profiled Ds24.872025.13273
Plain D0.00000.00315
Plain D0.00310.64401
Plain D0.64402.94370
Plain D2.94373.14161
Plain D3.14163.30185
Plain D3.30185.54182
Plain D5.54186.28635
Plain D6.28637.41101
Plain D7.41109.01950
Plain D9.01959.42481
Plain D9.42489.74845
Plain D9.748411.14642
Plain D11.146412.56955
Plain D12.569513.98951
Plain D13.989515.38444
Plain D15.384415.70801
Plain D15.708016.11325
Plain D16.113217.72493
Plain D17.724918.85275
Plain D18.852719.59101
Plain D19.591021.83094
Plain D21.830921.99111
Plain D21.991122.18915
Plain D22.189124.48873
Plain D24.488725.13275
Equal segments0.00004.18770
Equal segments4.18778.37861
Equal segments8.378612.56642
Equal segments12.566416.75413
Equal segments16.754120.94504
Equal segments20.945025.13275
Score space at 6 counters, profiled Ds against plain DThe same two labellings drawn in the space they were optimized in: the score curve, four loops of growing fringe-frequency score, with each counter a colour. Profiled Ds cuts across the loops to separate the phase score; plain D spends cells resolving the loops from one another.fringe-frequency scoreProfiled Dsphase score-0.7500.750-17017Plain Dphase score-0.7500.750-17017
The same two labellings drawn in the space they were optimized in: the score curve, four loops of growing fringe-frequency score, with each counter a colour. Profiled Ds cuts across the loops to separate the phase score; plain D spends cells resolving the loops from one another.
Phase information retained, after profiling, compared across 3 binning methodsHigher is better. The ScoreQuant row is drawn in the accent colour; the dashed line marks Certified ceiling at 0.9483.Equal segments0.2054Plain D0.7995Profiled Ds0.9483Certified ceiling: 0.948300.2000.4000.6000.8001Phase information retained, after profiling
Phase information retained, after profiling, compared across 3 binning methods
MethodPhase information retained, after profiling
Equal segments0.2054
Plain D0.7995
Profiled Ds (ScoreQuant)0.9483
Certified ceiling (reference ceiling)0.9483
All three partitions use 6 counters on the same node table; the dashed line is the certified ceiling, not a partition you could choose. Higher is better.
Committed result0.9483Committed profiled retention at 6 counters

Fetches the same node table the study used and runs optimize_partition with the profiled criterion for phase, the exact exchange solver, seed 4, and the efficient-score-bound start -- exactly how the committed sweep row was produced. The value should agree to the digits shown; summation order can differ in the last places.

With 6 bins, equal segments retain 0.2054 of the profiled phase information. The D-optimal partition retains 0.7995: much better, but it was built to resolve both parameters. The profiled partition retains 0.9483, equal to the certified ceiling of 0.9483 to the digits shown, so no partition of that size can do noticeably better. At the smallest budget, one segment per fringe, equal segments lose the phase entirely. The button reruns the profiled fit in your browser.

7. A reusable rule for the phase​

Three panels. Top: the score trajectory's four loops coloured by the six profiled cells, cut across the loops, with no shaded cells. Middle: the efficient score along the detector in the same colours. Bottom: label strips for the efficient-score start, the profiled partition and the soft-Voronoi rule.
The profiled-DsD_s labels on the score curve (top) and on the efficient score s^(u)\hat s(u) (middle); along the detector (bottom) for the efficient-score start, the profiled partition and the reusable rule fitted below.

Profiling changes the shape of the solution. The D cells separate the loops from one another, which is what resolving ϵ\epsilon requires. The profiled cells cut across the loops: they separate values of the efficient score s^=sφ−(Iφϵ/Iϵϵ) sϵ\hat s = s_\varphi - (I_{\varphi\epsilon}/I_{\epsilon\epsilon})\,s_\epsilon, the part of the phase sensitivity that the nuisance cannot reproduce. Intervals of this scalar, mapped back through the oscillating detector coordinate, give the fragmented comb at the bottom.

Unlike the D case, a finite profiled partition does not in general define a Voronoi rule; even a global optimum can violate the nearest-cell geometry of its own metric, so compile_quantizer refuses it (user guide (opens in a new tab)). A reusable profiled readout is fitted directly with fit_quantizer, from the continuous detector density and the same score; SoftVoronoiConfig fits a smooth score-space rule and hardens it into KK bins.

source = sq.IntegrationSource(
[[0.0, U_MAX]],
density=fringe_density,
quadrature=sq.GaussLegendreConfig(order=256),
)

ds_quantizer = sq.fit_quantizer(
source,
provider=provider,
n_bins=N_BINS,
criterion=sq.ProfiledDOptimality(interest=INTEREST),
config=sq.SoftVoronoiConfig(seed=4, initializer_restarts=8, max_iter=1000),
execution=EXECUTION,
)

new_bins_ds = ds_quantizer.predict_scores(new_scores, execution=EXECUTION)

The fitted rule retains 0.8794 of the profiled phase information, against 0.9483 for the finite partition, and its detector comb is simpler. The loss against the finite partition is the price of a rule that classifies new observations.

8. What the result means​

Equal detector segments lose phase information because the score changes sign within every fringe. Bins drawn in score space keep positions with similar scores together, wherever they lie on the detector. When both parameters matter, the D-optimal bins form a Voronoi diagram in score space and compile into a reusable rule. When only the phase is reported, the profiled criterion keeps as much phase information as any partition of the same size can.

The example also separates two tasks: optimize_partition labels a fixed weighted table, and fit_quantizer returns a rule for new observations. For D-optimality the first compiles into the second; for the profiled criterion the rule must be fitted, and it keeps somewhat less. Both tasks are described in the user guide (opens in a new tab).