EpistemicPhysics
All articles
Field trip · Light · Quantum

When evidence puts on sunglasses

Follow a two-by-two matrix from an evidence ledger into polarizing sunglasses, quantum qubits, and wave interference.

Open a drawer on a physicist’s workbench, and you might find three curious objects:

  1. A pair of polarized sunglasses designed to cut glare from the ocean.
  2. A notebook recording the outcomes of Bernoulli coin flips.
  3. A cryogenic chip hosting superconducting quantum qubits.

At first glance, these three items seem to belong to entirely separate domains of science. The sunglasses belong to classical electromagnetic optics. The notebook belongs to Bayesian statistics. The chip belongs to quantum information.

Yet when I wrote down the mathematical matrices governing all three systems, the walls between them dissolved: they are governed by the exact same geometric equations.

In all three systems, the state is represented by a positive semidefinite two-by-two Hermitian matrix. The trace records total intensity or evidence, or is fixed to 1 for a normalized qubit, while four times the determinant gives the squared mass coordinate of the shared cone. And an invertible physical filter, with its overall intensity scale factored out, corresponds to an exact Lorentz transformation in special relativity.

Let us put on our mathematical sunglasses and watch the unified geometry of light, belief, and quantum information come into focus.

The Hermitian matrix: Pauli spins and the light cone

Let us begin with our familiar two-channel Beta evidence notebook.

Suppose an observer records Y positive trials and N negative trials. Adding the standard neutral prior of half a count per channel yields the parameters α=Y+1/2 and β=N+1/2.

Define the total concentration τ and the signed balance x:

τ=α+β,x=α−β.

In our earlier studies, we found that the invariant epistemic rest mass squared is given by the difference of squares:

m2=τ2−x2=4αβ.

Now arrange these two positive counts along the diagonal of a two-by-two matrix:

M=(α00β)=12(τ+x00τ−x).

Let us compute the fundamental matrix invariants:

  • The trace (the sum of the diagonal entries): tr⁡(M)=α+β=τ.
  • The determinant: det(M)=αβ−0=αβ.

Multiplying the determinant by 4 reveals our familiar relativistic interval:

4det(M)=4αβ=τ2−x2=m2.

The squared epistemic rest mass of a belief is four times the determinant of its evidence matrix!

Now give the notebook three spatial dimensions. Instead of a single balance coordinate x, let the belief point along a three-dimensional spatial vector x=(x1,x2,x3)T∈R3.

We can package this full three-dimensional state into a 2×2 complex matrix using the Pauli spin matrices:

σ1=(0110),σ2=(0−ii0),σ3=(100−1),

where i2=−1.

Define the general evidence matrix M as:

M=12(τI+x⋅σ)=12(τ+x3x1−ix2x1+ix2τ−x3).

Notice that M is Hermitian: it equals its own conjugate transpose (M†=M).

Let us calculate the trace and determinant of this general matrix:

tr⁡(M)=(τ+x3)+(τ−x3)2=τ. det(M)=14[(τ+x3)(τ−x3)−(x1−ix2)(x1+ix2)]=14[τ2−x32−(x12+x22)]=τ2−‖x‖24.

Multiplying by 4 yields:

4det(M)=τ2−‖x‖2=m2.

The eigenvalues of M are:

λ±=τ±‖x‖2.

A matrix is positive semidefinite (M≥0) if and only if both its eigenvalues are non-negative.

Because λ+≥λ−, this requires λ−≥0, which means:

τ≥‖x‖.

The condition that an evidence matrix is positive semidefinite is mathematically identical to the condition that a point lies inside the future light cone of Minkowski spacetime!

The physics of sunglasses: Stokes parameters and polarization

Now take off the mathematician’s hat and step out into the sunlight.

Light is a transverse electromagnetic wave. In a beam propagating along the z-axis, the electric field vector oscillates within the two-dimensional (x,y) plane.

Write the complex electric field components as a two-entry Jones vector:

E(t)=(Ex(t)Ey(t)).

To describe real, partially polarized sunlight, we take the time average of the outer product, forming the optical coherency matrix J:

J=⟨EE†⟩=(⟨|Ex|2⟩⟨ExEy∗⟩⟨Ex∗Ey⟩⟨|Ey|2⟩).

Here the angle brackets denote a time average, and the asterisk denotes complex conjugation.

Now decompose this coherency matrix into four real numbers: the famous Stokes parameters (S0,S1,S2,S3):

J=12(S0+S3S1−iS2S1+iS2S0−S3).

Compare this with our evidence matrix M:

  • S0=τ is the total optical intensity of the beam.
  • S3=x3 measures horizontal versus vertical linear polarization.
  • S1=x1 measures diagonal linear polarization at +45∘ versus −45∘.
  • S2=x2 measures right versus left circular polarization.

The degree of polarization P∈[0,1] is the normalized length of the spatial polarization vector:

P=S12+S22+S32S0=‖x‖τ.

Look at what this correspondence reveals:

  1. A completely unpolarized beam (P=0): Light waves oscillate randomly in all directions. The spatial vector vanishes (x=0). The coherency matrix is proportional to the identity: J=τ2I. The invariant mass is maximized: m=τ. An unpolarized beam is a balanced, high-mass state of maximal entropy!
  2. A fully polarized beam (P=1): Light oscillates in a single pure state (such as horizontal linear polarization). The spatial length matches the intensity: ‖x‖=τ. The determinant vanishes: det(J)=0. The invariant mass is zero: m=0. A fully polarized beam travels on the lightlike boundary of the cone!
A little light mixer

Same brightness. A different kind of beam.

Bundle A is horizontal. Turn bundle B, change its share, and watch their independent intensities combine.

Angle of bundle B 90°
Intensity in bundle A 50%
Total intensity 8 units
Degree of polarization
0.0%
Cone quantity m
8.00
Normalized purity
0.500
P=‖x‖τ,mτ=1−P2
The doubled-angle circleHV45°135°ABmixturePrincipal intensitiesMajor 4.00Minor 4.00
The mixture lies between A and B. Its distance from the center is its degree of polarization. In evidence coordinates this is the normalized balance length; for a qubit it is the Bloch vector length. The same point carries all three readings. The bar divides the total intensity between the matrix's two principal directions; the pale part is the smaller share.

One matrix, three readings

Use the light matrix J as the evidence matrix M, then divide by its total intensity to get the qubit matrix ρ. A qubit is a two-state quantum system; its Bloch vector v locates the normalized matrix in the unit ball. Each row follows the current slider settings.

Light
Evidence coordinates
Normalized qubit
Total intensityS08.00
Total amountτ8.00
Trace set to onetr⁡ρ1.00
Polarization degreeP0.000
Balance / amount‖x‖/τ0.000
Bloch vector length‖v‖0.000
One minus degree²1−P21.000
Relative cone quantity²m2/τ21.000
Twice the purity loss2(1−tr⁡ρ2)1.000

Color follows the quantity across the three columns. The trace, tr, adds diagonal entries; “purity” means tr(ρ²). These are exact matrix identities; interpreting the total as a count of trials requires an evidence model.

In the interactive laboratory above, adjust the optical intensities and polarization angles. Watch how independent bundles of horizontal and vertical light mix: their diagonal elements sum, their phase fluctuations cancel, and the state settles into the interior of the light cone.

The quantum qubit: Impurity as epistemic rest mass

Now move from classical optics to a quantum computer.

A qubit is a two-level quantum system spanned by the computational basis states |0⟩ and |1⟩.

In quantum mechanics, a general mixed state is described by a density matrix ρ. A density matrix is defined by two mathematical conditions:

  1. It is positive semidefinite: ρ≥0.
  2. It has unit trace: tr⁡(ρ)=1.

We can obtain a valid quantum density matrix simply by dividing our evidence matrix M by its trace τ:

ρ=Mτ=12(I+v⋅σ),

where v=x/τ is the Bloch vector, living inside the unit Bloch ball (‖v‖≤1).

Now compute the quantum purity of this state:

γpure=tr⁡(ρ2).

Using the Pauli matrix identity (v⋅σ)2=‖v‖2I:

ρ2=14(I+2v⋅σ+‖v‖2I)⟹tr⁡(ρ2)=1+‖v‖22.

Now compare quantum purity with our relativistic rest mass:

m2τ2=1−‖v‖2=1−(2tr⁡(ρ2)−1)=2(1−tr⁡(ρ2)).

Look at that identity:

m2τ2=2(1−tr⁡(ρ2)).

The fractional epistemic rest mass squared is exactly twice the loss of quantum purity!

In quantum information:

  • A pure state (tr⁡(ρ2)=1) sits on the surface of the Bloch sphere (‖v‖=1). Its rest mass vanishes: m=0.
  • A maximally mixed state (tr⁡(ρ2)=1/2) sits at the exact center of the Bloch sphere (v=0). Its rest mass reaches its upper bound: m=τ. When the qubit and its environment form a pure joint state, this is also maximum entanglement between them.

Fractional epistemic rest mass measures quantum impurity exactly! For a subsystem of a pure joint state, that same mixedness also measures entanglement; a classical mixture can have the same impurity without entanglement.

This suggests an evidence-aware extension of the usual qubit picture: retain both ρ and τ. The density matrix tells us the normalized state; the extra scale remembers how much supported that description. Whether that scale records detected photons, accumulated trials, or a deliberately designed learning quantity depends on the experiment. Our matrix has room for all three stories.

Step inside the Bloch ball

Imagine the pure states as spots painted on a globe. Mixing states lets us travel inward, all the way to the balanced center. Choose an analyzer direction n, a unit vector, and ask whether the state passes that directional test. The quantum probability is

p+=1+v⋅n2.

The evidence matrix gives directional weights q±=(τ±x⋅n)/2. Dividing by their total τ produces exactly the same pair of probabilities. In the laboratory below, move the rose state and the teal analyzer, then compare the two columns. The Bloch-ball account in IBM’s quantum information course develops this state geometry from density matrices.

One positive matrix, two coordinate scales

Aim for an outcome inside the Bloch ball

1 / 3 · Aim a likely outcome. Turn the teal analyzer until the + outcome is about 85%. Drag the ball or use the direction controls.

Preparing the 3D ball…

v₁ / v₂v₁ / v₃v₂ / v₃
+ outcome 50.0%− outcome 50.0%
State vAnalyzer nProjection v · n

Drag over the ball to aim the analyzer toward its visible surface. Turn the view to aim from another side. The direction buttons and angle fields provide keyboard alternatives.

Exact directions and view controls

Analyzer direction

Evidence amount, matrices and the probability rule
Evidence amount τ 8

v = (0.000, 0.000, 1.000),   n = (1.000, 0.000, 0.000)

Evidence matrix M

M=(8.000.000.000.00)
Trace τ
8
4 det M = m²
0.000

Qubit state ρ = M / τ

ρ=(1.000.000.000.00)
Trace
1
4 det ρ = (m / τ)²
0.000

Directional evidence weights

q±=τ±x⋅n2

q+ = 4.000, q− = 4.000

Qubit outcome probabilities

p±=1±v⋅n2

q+ / τ = 0.500, q− / τ = 0.500

The projection v · n = 0.000 gives the same normalized answer in both columns. Purity is 1.000 and fractional mass m / τ = 0.000. This point lies on the pure-state surface.

Here x = τv, and the unit vector n selects a measurement axis. The matrix is Hermitian because its off-diagonal entries are complex conjugates. Increasing τ scales the evidence matrix while its normalized qubit state stays fixed. This correspondence specifies state geometry and measurement probabilities; dynamics, preparation, and the state after a measurement need their own physical rules.

Try the center first: every analyzer returns equal probabilities. Then move to the surface and point the analyzer along the state. What must happen when you point it in the opposite direction? Finally, increase τ while leaving the point still. The evidence matrix grows, while its normalized quantum state stays in place.

Ask the light a directional question

Return to the optical bench with linearly polarized light at angle θ and an ideal polarizer at angle a. Malus’s law says that the transmitted intensity is multiplied by cos2⁡(a−θ). If only a fraction P of the input is in that linear polarization and the remaining fraction is unpolarized, the transmitted fraction becomes

IoutIin=1−P2+Pcos2⁡(a−θ).

Here is the surprising change of coordinates: a physical polarization line has no arrowhead, so rotating it by 180∘ brings it back to the same state. On the Bloch disk, that makes a full 360∘ turn. In our Stokes convention the vectors are v=P(sin⁡2θ,0,cos⁡2θ) and n=(sin⁡2a,0,cos⁡2a). Their dot product is Pcos⁡[2(a−θ)]. The identity cos2⁡u=(1+cos⁡2u)/2 now puts Malus’s law and the qubit probability on the very same curve.

Malus's law meets a qubit measurement

Turn the analyzer, watch both answers.

A polarizer asks light a directional question. Drag the rose source axis or the teal analyzer axis. The left disk shows physical polarization angles; the right shows the same preparation and question in Bloch coordinates.

Angles in the optical bench

0°90°Turn the incident linear polarization: drag or use arrow keysSTurn the physical analyzer axis: drag or use arrow keysAθ = 25° · a = 70°

A line has the same polarization after a 180° turn.

Directions in the Bloch disk

v₁v₃Turn the analyzer in the doubled-angle Bloch disk: drag or use arrow keysA2θ = 50° · 2a = 140°

This is the v₂ = 0 slice of the full ball. The rose vector has length P.

Source orientationAnalyzer axis

The input is a mixture: fraction P has linear polarization θ; fraction 1 − P is unpolarized. The analyzer angle is a. Both angles are measured from horizontal. Arrow keys move the focused handles by 1°; Shift moves by 10°.

0.000.250.500.751.000°45°90°135°180°Transmitted fraction / pass probabilityAnalyzer angle aMove the analyzer along the shared transmission curve: drag or use arrow keysA
Optical transmissionQubit pass probability

Mixed-light Malus law

IoutIin=1−P2+Pcos2⁡(a−θ)50.0%

Qubit measurement rule

ppass=1+v⋅n250.0%

Both descriptions predict 50.0% transmission. For the ideal polarizer used here, any transmitted light is fully polarized along the analyzer axis.

A simulated batch turns the expected fraction into individual pass / fail outcomes.

The doubled-angle identity gives v · n = P cos[2(a − θ)], so the two plotted curves agree exactly. The ideal polarizer is a projector: its Jones matrix acts as J′ = LJL†, and the pass probability is its output trace divided by the input trace. Each simulated photon is freshly prepared in the same state and measured once; counts fluctuate around the expected value.

Cross the physical axes and watch the Bloch directions become opposites. With fully polarized input, no light passes; with unpolarized input, half passes at every orientation. An ideal polarizer also prepares any transmitted light along its own axis. That state change comes from the projector used in the optical model, an additional physical rule beyond the shared matrix geometry.

Optical filters as Lorentz boosts: The SL(2, C) isomorphism

How does a beam of light change when it passes through an optical device, such as a polarizing filter?

In wave optics, a linear optical element (a polarizer, waveplate, or attenuator) acts on the electric field vector through a complex 2×2 Jones matrix L:

E′=LE.

The coherency matrix transforms according to:

J′=⟨E′(E′)†⟩=⟨LEE†L†⟩=L⟨EE†⟩L†=LJL†.

Now take the determinant of both sides:

det(J′)=det(LJL†)=det(L)det(J)det(L†)=|detL|2det(J).

Notice what happens when the optical element has a determinant of unit magnitude: |detL|=1.

The determinant of the coherency matrix is invariant:

det(J′)=det(J)⟹m′=m!

Removing an irrelevant overall phase sets detL=1. The group of complex 2×2 matrices with this unit determinant is SL(2,C).

In mathematical physics, SL(2,C) is the double cover of the restricted Lorentz group SO+(1,3)! Every unimodular optical Jones matrix corresponds to an exact Lorentz transformation in spacetime.

To see this explicitly, factor out the overall attenuation of an optical partial polarizer (a dichroic filter) that favors horizontal over vertical polarization:

L=(er/200e−r/2),

where r>0 is the filter strength. Notice that detL=er/2e−r/2=1.

Apply this filter to an evidence matrix M:

M′=LML†=(er/200e−r/2)12(τ+x300τ−x3)(er/200e−r/2)=12(er(τ+x3)00e−r(τ−x3)).

Now compute the new total intensity τ′ and new balance x3′:

τ′=er(τ+x3)+e−r(τ−x3)2=τ(er+e−r2)+x3(er−e−r2)=τcosh⁡r+x3sinh⁡r. x3′=er(τ+x3)−e−r(τ−x3)2=x3(er+e−r2)+τ(er−e−r2)=x3cosh⁡r+τsinh⁡r.

Look at those two equations:

τ′=τcosh⁡r+x3sinh⁡r,x3′=x3cosh⁡r+τsinh⁡r.

These are the exact equations for a relativistic Lorentz boost along the x3 axis!

The determinant-normalized part of this partial polarizer literally performs a Lorentz velocity boost on the beam’s coherency state! An ideal polarizer lies at the singular limit, beyond any finite boost.

For a passive optical device, we can multiply L by an overall attenuation factor so neither field component is amplified. That factor changes the total transmitted intensity. Likewise, a quantum filter is represented by a measurement operator K satisfying K†K≤I, where I is the identity matrix. Its selected output is KρK†/ppass, with passage probability ppass=tr⁡(KρK†). Keeping the passage count beside the normalized output gives the geometry a physical experimental record.

Could attention work like this? A system amplifies distinctions in one direction, changes its normalized belief, and records how much input passed through. That is a concrete design for an attention mechanism: learn a matrix filter, carry its transmitted amount, and watch its trajectory through the cone.

Complex amplitudes: When evidence learns to interfere

Let us take one final leap into the quantum world.

In classical Bayesian statistics, evidence is always real and additive: you count positive trials α and negative trials β.

What happens if we take the square roots of these counts and combine them into a single complex number?

Define the complex epistemic amplitude:

ψ=α+iβ.

Let us compute the squared modulus of this amplitude:

|ψ|2=(α)2+(β)2=α+β=τ.

The squared modulus is the total evidence τ!

Now compute the square of ψ (without taking the absolute value):

ψ2=(α+iβ)2=(α)2−(β)2+2iαβ=(α−β)+2iαβ.

Substitute our coordinates x=α−β and m=2αβ:

ψ2=x+im.

Look at that identity:

Squaring the complex amplitude ψ automatically places the signed balance x on the real axis and the epistemic rest mass m on the imaginary axis!

Its modulus is:

|ψ2|=x2+m2=x2+(τ2−x2)=τ2=τ.

The entire geometry of the light cone is encoded in the complex square of a single number!

The Bhattacharyya overlap: Quantum interference between beliefs

Now consider what happens when two observers combine their amplitudes.

In classical probability, if Observer 1 has parameters (α1,β1) and Observer 2 has parameters (α2,β2), pooling independent data adds their observed counts and retains their shared prior once: τclassical=τ1+τ2−n0, with n0=1 here.

Now suppose they combine their quantum amplitudes first:

ψtotal=ψ1+ψ2=(α1+α2)+i(β1+β2).

Now calculate the total effective evidence |ψtotal|2:

|ψtotal|2=(α1+α2)2+(β1+β2)2.

Expanding the squares:

|ψtotal|2=(α1+β1)+(α2+β2)+2α1α2+2β1β2=τ1+τ2+2(α1α2+β1β2).

Substitute the predicted probabilities p1=α1/τ1 and p2=α2/τ2:

|ψ1+ψ2|2=τ1+τ2+2τ1τ2[p1p2+(1−p1)(1−p2)].

Look at the bracketed expression:

B(p1,p2)=p1p2+(1−p1)(1−p2).

In statistics and information theory, this is the celebrated Bhattacharyya coefficient, which measures the geometric overlap between two probability distributions!

  • If the two observers agree completely (p1=p2), the overlap is B=1. The interference is fully constructive: |ψ1+ψ2|2=τ1+τ2+2τ1τ2=(τ1+τ2)2.
  • If the two observers hold mutually contradictory, dogmatic beliefs (p1=1 and p2=0), the overlap vanishes: B=0. The cross-term disappears, leaving only classical addition: τ1+τ2.
  • If we introduce an arbitrary quantum relative phase eiϕ between the two arguments (ψtotal=ψ1+eiϕψ2), the cross-term can even become negative, producing destructive interference!

Destructive interference between arguments allows an autonomous intelligence to cancel out correlated biases and eliminate redundant noise, exactly like noise-canceling headphones.

Picture an inference engine with two ledgers: one for accumulated support, another for phase relationships between routes through an argument. Contradictory routes might cancel in one output channel and reinforce in another. A repeated explanation could change timing without manufacturing a new independent observation. The experiment would be to build such an engine and compare its predictions with ordinary count pooling.

Looking through the lens

We began with three seemingly unrelated objects on a workbench: sunglasses, coin tosses, and qubits.

By following the mathematics without compromise, we discovered that:

  • An evidence ledger forms a positive semidefinite Hermitian matrix M, with invariant Minkowski interval m2=4detM.
  • Optical polarization parameters are the exact physical counterparts of epistemic evidence coordinates.
  • Qubit purity is directly linked to spacetime geometry: fractional epistemic rest mass measures quantum impurity.
  • Invertible partial polarizers, after factoring out overall attenuation, act via SL(2,C), performing exact relativistic Lorentz boosts on transmitted beams.
  • Complex epistemic amplitudes ψ=α+iβ generate the light cone through their square (ψ2=x+im), while their sum reproduces quantum interference governed by the Bhattacharyya overlap.

The sunglasses, the notebook, and the qubit have given us a shared workbench: positive matrices for states, determinants for cone geometry, filters for selective transformation, and amplitudes for possible interactions.

The universe does not store its physical laws in separate compartments. The same light cone that bounds the cosmic speed of light stabilizes our beliefs, polarizes the sunset over the sea, and guides the quantum computer into the future. Next time a polarizer turns a patch of sky dark, there is a small mathematical universe worth imagining behind the lens.