The Bures-Wasserstein (BW) metric defines the geometry under which the invariant hierarchy is measured. This page walks through the metric's components on 2×2 SPD matrices: eigenvalue resolution, the conjugation sandwich A½BA½, the BW geodesic, and fidelity as a principal angle. Formulas follow Bhatia, Jain, and Lim (2019), "On the Bures-Wasserstein distance between positive definite matrices."
← Back to Invariants
A 2×2 symmetric positive definite matrix Σ = QΛQT can be continuously rotated into its own eigenframe. The slider below interpolates from the original matrix (with off-diagonal entries) to the diagonal form. The ellipse on the left shows the covariance shape; the matrix on the right shows the entries. Notice that the trace tr(Σ) = λ1 + λ2 remains constant throughout, since eigenvalues are basis-invariant.
The BW distance between two SPD matrices A and B involves the product A½ B A½. This "sandwich" conjugates B into A's eigenframe. The animation below shows B (right panel) morphing continuously into A½BA½. A is fixed on the left. The ghost outline of the original B persists for comparison. A's eigenaxes are drawn as dashed lines on the right panel so you can see the target frame.
The shortest path between two SPD matrices under the BW metric is not a straight line in matrix space. The geodesic γ(t) interpolates between A (t=0) and B (t=1) through the curved SPD manifold. The formula (equation 39 in Bhatia-Jain-Lim) involves the matrix square root and inverse square root of A.
Drag the slider or press auto-play to watch the ellipse traverse the BW geodesic. A faint trail shows intermediate positions.
The BW distance decomposes into trace terms and a fidelity term: d2(A, B) = tr(A) + tr(B) − 2F(A, B), where F(A, B) = tr(A½BA½)½. For 2×2 matrices, fidelity captures how aligned the two ellipses are. Rotate B's eigenframe and adjust its aspect ratio to see how fidelity and distance respond.
The same conjugation pattern shows up in quantum measurement: ⟨O⟩ = tr(U†OU ρ). The A-Gate is a specific U built from PN-neuron-derived gates. The QNFM framework uses this connection to read tangent-space projections of the patient-specific covariance shift through a fixed quantum measurement basis.