Stage 01 / 04

Eigenvalue Resolution

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.

Σ(t) = R(tθ)T Λ R(tθ)
t = 0: original frame. t = 1: eigenframe (diagonal).
Diagonalization t = 0.00
OriginalEigenframe
Stage 02 / 04

The Conjugation Sandwich

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.

A½ B A½
Conjugates B into A's geometry. The eigenvalues of this product determine the BW distance.
Conjugation t = 0.00
B originalA½BA½
Stage 03 / 04

The BW Geodesic

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.

γ(t) = A½ [(1−t)I + t(A−½BA−½)½]2 A½
The covariance ellipse morphs along this path, not along the Euclidean interpolation.
Geodesic parameter t = 0.00
A0.5B

Drag the slider or press auto-play to watch the ellipse traverse the BW geodesic. A faint trail shows intermediate positions.

Stage 04 / 04

Fidelity as Principal Angle

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.

d2BW(A, B) = tr(A) + tr(B) − 2 tr(A½BA½)½
Fidelity F = tr(A½BA½)½ measures overlap. Maximum when A = B.
B rotation angle θ = 0°
45°90°
B aspect ratio λ21 = 0.30
ElongatedCircular

The same conjugation pattern shows up in quantum measurement: ⟨O⟩ = tr(UOU ρ). 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.

The BW metric is one of two natural metrics on the SPD manifold (the other being affine-invariant). Both are used in Riemannian BCI literature. The A-Gate's measurement geometry corresponds to the BW metric because the quantum fidelity between density matrices is the Bures fidelity.
← Invariants Home ↑ Bures Manifold →