Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Gram matrices and state overlaps

A Gram matrix records all pairwise inner products of a list of vectors and is always positive semidefinite.

Edition released Coverage: Overview · Technical · Research
On this page

Definition and purpose

For vectors |psi_j>, define G_jk=<psi_j|psi_k>. The diagonal entries are squared norms and the off-diagonal entries are overlaps. For normalized states, the diagonal is one. If a vector matrix V has the states as columns, G=V-dagger V, proving positivity and relating its rank to the dimension of their span.

Gram matrices appear in state discrimination, variational subspaces and numerical representations with nonorthogonal basis states. They do not encode arbitrary independent pairwise similarities: positivity constrains which overlap tables can correspond to actual vectors.

Fully solved example

Use |psi_1>=|0>, |psi_2>=|1>, and |psi_3>=|+>. The Gram matrix is [[1,0,1/sqrt(2)],[0,1,1/sqrt(2)],[1/sqrt(2),1/sqrt(2),1]]. Its eigenvalues are 2,1,0. The zero eigenvalue reflects the linear relation |psi_3>=(|psi_1>+|psi_2>)/sqrt(2), so three listed states span only a two-dimensional space.

For coefficients c, the norm of sum_j c_j|psi_j> is c-dagger G c. It is not generally sum_j |c_j|^2 because the states are not an orthonormal basis. For c=(1,0,1), the squared norm is 2+sqrt(2), including the overlap cross term.

Limits and misconception controls

Phases in overlaps matter. Replacing every G_jk by its magnitude can change positivity or eliminate information relevant to interference. Rephasing individual vectors changes the Gram matrix by a diagonal-unitary conjugation while leaving appropriate physical invariants unchanged.

A nearly singular overlap matrix can make generalized eigenvalue problems numerically unstable. Rank thresholds should reflect measurement or floating-point uncertainty.

Triple-overlap phases constrain feasible state lists

Consider a proposed Gram matrix with unit diagonal and all off-diagonal magnitudes r. A convenient phase convention is G = [[1,r,r],[r,1,r exp(iφ)],[r,r exp(−iφ),1]]. Its two-by-two principal minors are all 1−r², but its determinant is 1−3r²+2r³ cos φ. This last term is the real part of a cyclic product of three overlaps. Rephasing individual vectors changes the separate overlap phases while preserving that cyclic product.

At r = 1/2 and φ = 0, the matrix is (I+J)/2, where J is the three-by-three all-ones matrix. Its eigenvalues are two, one half, and one half, requiring a three-dimensional span. At φ = π, the eigenvalues become 3/2,3/2,0. These overlaps can be realized by the qubit vectors ψ_1 = (1,0), ψ_2 = (1/2,√3/2), and ψ_3 = (1/2,−√3/2). Their second and third overlap is −1/2. The same three overlap magnitudes thus support different span dimensions when their invariant phase changes.

For r = 0.7, the phase-zero determinant is 0.216, while the phase-π determinant is −1.156. Every two-vector overlap still has magnitude below one, but the latter table is impossible for any vectors in any Hilbert-space dimension. A negative Gram determinant cannot be repaired by adding unused coordinates: every genuine Gram matrix remains positive semidefinite after embedding. This gives a concrete consistency test for reconstructed overlap data.

Constructing a realization and identifying equivalent families

A positive Gram matrix can be factored as G = V†V by diagonalizing it and taking square roots of its nonzero eigenvalues. The columns of V then realize the proposed overlaps in a space whose dimension is rank(G). Any two families with the same Gram matrix are related by an isometry between their spans. Define the candidate map on a linear combination by Σ_j c_jψ_j ↦ Σ_j c_jφ_j. If a combination vanishes on the first side, its norm squared is c†Gc = 0, so it also vanishes on the second side. The map is well defined and preserves every inner product.

Extending this map to a unitary on larger equal-dimensional ambient spaces requires choosing its action on the unused orthogonal complements. Thus the Gram matrix fixes the relative geometry of the family, not a unique ambient coordinate system or a unique physical control operation. If state vectors are specified only as rays, their individual phase conventions must be aligned before directly comparing Gram matrices.

A complete unambiguous-discrimination construction

Suppose the three linearly independent states have the phase-zero Gram matrix (I+J)/2. Seek a physical transformation with the same success probability p for every input, producing an orthogonal success label j and a common failure flag. Inner-product preservation requires the failure vectors to have Gram matrix G−pI. This matrix must be positive semidefinite, so p cannot exceed the smallest eigenvalue of G, namely one half.

The bound is achievable. Map ψ_j to √(1/2)|j,s>+√(1/2)|f>, where the three successful vectors are mutually orthogonal and orthogonal to the shared failure vector. The output Gram matrix has diagonal one and every off-diagonal overlap one half, exactly matching the input. The span-isometry argument proves the map extends to a physical isometry. Measuring success versus failure and then the successful label identifies every input without error on successful branches, with probability one half. Failure reveals no label in this symmetric construction.

By contrast, the phase-π matrix has a zero eigenvalue, so no uniform p greater than zero can satisfy G−pI ≥ 0. That does not prohibit every partial identification strategy: it rules out the particular requirement of positive equal success probability for all three labels. The optimization criterion and which inputs must be identified are essential parts of the statement.

An estimated overlap matrix needs uncertainty information before a negative eigenvalue is interpreted. If the unknown true matrix differs from the estimate by Hermitian E with Frobenius norm at most δ, then every eigenvalue can shift by at most δ, since operator norm is bounded by Frobenius norm. An estimated minimum eigenvalue of −0.02 with δ = 0.01 therefore rules out a positive Gram matrix inside that error ball. A value of −0.002 under the same error bound does not. Projecting an estimate onto the positive cone produces a feasible mathematical table but does not prove that the original calibration model or stated uncertainty was correct.

Weighted Gram matrices and mixed-state spectra

For an ensemble, put √p_jψ_j in the columns of W. Then ρ = WW† and the weighted Gram matrix is W†W. Their nonzero eigenvalues agree because multiplying an eigenvector by W or W† transfers each nonzero eigenvalue between the two spaces. The matrices need not have the same dimension or the same number of zero eigenvalues.

For probabilities 0.2, 0.3, 0.5 on |0⟩, |1⟩, |+⟩, the state is [[0.45, 0.25], [0.25, 0.55]]. Its eigenvalues are (1±√0.26)/2. The three-by-three weighted Gram matrix has these eigenvalues plus zero, so it computes the same state entropy. Overlap geometry determines feasibility. Ensemble weights also determine the average-state spectrum. Neither a Gram entry nor its phase is itself a preparation probability.

Sources

  • John Watrous · · Textbook material · cs.uwaterloo.ca
    Verification scope

    The Theory of Quantum Information, Chapter 1: Mathematical preliminaries
    John Watrous · · Textbook material · cs.uwaterloo.ca

    Citation identity checked ·

    Background reference; this record does not claim a full independent peer review of the encyclopedia. Original exposition and newly constructed calculations are not copied from the source.

    The Theory of Quantum Information: Chapter 1, Mathematical preliminaries
    John Watrous · · Manuscript · Author manuscript · cs.uwaterloo.ca

    Selected text checked ·

    Chapter introduction, finite-dimensional linear-algebra definitions and Caratheodory theorem were inspected. The author explicitly describes the chapter as review material, not a primary source for all mathematical results.

    Selected passages and metadata were checked; this does not certify every sentence in the encyclopedia, constitute comprehensive literature review, or establish external peer review. Original worked examples are separately recomputed.

  • John Watrous · · Textbook material · cs.uwaterloo.ca
    Verification scope

    The Theory of Quantum Information: Chapter 2, Basic notions of quantum information
    John Watrous · · Manuscript · Author manuscript · cs.uwaterloo.ca

    Selected text checked ·

    Full-text PDF available; selected state, measurement, channel and dilation definitions used as formalism background. Individual elementary extensions and numerical examples were constructed independently.

    Selected passages and metadata were checked; this does not certify every sentence in the encyclopedia, constitute comprehensive literature review, or establish external peer review. Original worked examples are separately recomputed.

  • Lu-Ming Duan, Guang-Can Guo · · Research paper · Preprint recorded · arXiv · DOI 10.1103/PhysRevLett.80.4999
    Verification scope

    Selected text checked ·

    Metadata, full-text Gram-matrix isometry lemma, linear-independence condition for finite known alphabets, and equation (12) two-state optimal equal success probability inspected.

    Metadata and specified passages verified; not an exhaustive proof review or external scientific approval. Original derivations and examples are independently authored.