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

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Singular-value decomposition

Singular-value decomposition factors any finite matrix into two unitary changes of basis and a diagonal nonnegative singular-value matrix.

Also called SVD

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

Definition and relevance

For an m by n complex matrix M, an SVD is M=U Sigma V-dagger, where U and V are unitary and Sigma has nonnegative entries on its rectangular diagonal. The singular values are square roots of eigenvalues of M-dagger M. Unlike eigenvalue decomposition, SVD exists for every finite matrix, including rectangular and nonnormal matrices.

In quantum information it constructs Schmidt decompositions, defines trace norms, quantifies low-rank approximations, and appears in matrix-function algorithms. Singular values are not generally eigenvalues.

Fully solved example

Take M=[[1,1],[0,0]]. Then M-dagger M=[[1,1],[1,1]], with eigenvalues 2 and 0. The singular values are sqrt(2) and zero. Choose the first right singular vector |+> and the first left singular vector |0>; M=sqrt(2)|0><+|. The matrix's ordinary eigenvalues are 1 and 0, showing that eigenvalues and singular values differ.

For a normalized bipartite coefficient matrix M/sqrt(2), the singular values become 1 and 0. The corresponding state is |0>|+>, a product state. The same calculation therefore connects matrix factorization to Schmidt rank.

Approximation and limits

Keeping the largest r singular values gives an optimal rank-r approximation in the Frobenius norm and operator norm under their standard formulations. The discarded squared singular values determine the Frobenius error. In a normalized pure-state Schmidt truncation, retained weight and subsequent renormalization must be reported; dropping small coefficients silently changes the state.

Degenerate singular values allow nonunique singular vectors. Numerical comparisons should focus on subspaces or reconstructed matrices. A tiny singular value may indicate a genuinely small physical contribution or numerical noise; the interpretation depends on precision and estimation uncertainty.

A rectangular complex example separates left and right singular vectors

Consider the three-by-two matrix M = [[4,4i],[2,−2i],[0,0]]/√2. Let u₀ = (1,0,0), u₁ = (0,1,0), v₀ = (1,−i)/√2, and v₁ = (1,i)/√2. Both pairs are orthonormal in their respective spaces. Direct substitution gives M = 4|u₀⟩⟨v₀|+2|u₁⟩⟨v₁|.

The singular values are four and two. M sends v₀ to 4u₀ and v₁ to 2u₁, while M† sends u₀ to 4v₀ and u₁ to 2v₁. The unused output direction u₂ = (0,0,1) lies in the kernel of M†. There is no corresponding input direction because the input space has only two dimensions and M has full column rank.

The eigenvalues of M†M are sixteen and four, whereas those of MM† are sixteen, four, and zero. Their nonzero spectra agree, but their dimensions and zero-eigenvalue multiplicities need not. This is why singular-value statements remain useful for rectangular maps even when an ordinary eigenvalue equation for M itself is unavailable.

The pseudoinverse solves a specific least-squares problem

Invert only the nonzero singular values and reverse the dyads. The pseudoinverse is M⁺ = |v₀⟩⟨u₀|/4+|v₁⟩⟨u₁|/2, or [[1/4,1/2,0],[−i/4,i/2,0]]/√2. It satisfies M⁺M = I₂ and MM⁺ = diag(1,1,0), the projector onto the range of M.

For target b = (1,2,3), the least-squares solution is x = M⁺b = (5/4,3i/4)/√2. Multiplication gives Mx = (1,2,0). The residual b−Mx is (0,0,3), with Euclidean norm three, and it is orthogonal to every possible output Mz. Any other output adds a range-space error orthogonal to that residual, increasing the squared error.

The solution has squared norm 17/16. Because M has full column rank, this least-squares minimizer is unique. If a matrix has a nontrivial input kernel, the pseudoinverse instead selects the minimizer with smallest input norm; adding a kernel vector would leave the output unchanged but increase the norm of that orthogonal component.

Truncating singular values trades accuracy for stability

Keeping only the term 4|u₀⟩⟨v₀| gives a rank-one approximation. The discarded matrix is 2|u₁⟩⟨v₁|, so both its operator norm and Frobenius norm are two. These two errors coincide here because the remainder has rank one. With several omitted singular values, the operator error is their maximum and the squared Frobenius error is their sum of squares.

Small singular values behave differently in inversion. For A = diag(1,ε), a target perturbation (0,δ) creates the solution component δ/ε. With ε = 10⁻⁴ and δ = 10⁻³, that component is ten. The original data perturbation is small, but the inverse amplifies it because the second input direction barely affects the output.

A truncated pseudoinverse that discards this second singular direction produces zero for that component and leaves residual δ. It avoids the factor 1/ε at the cost of ignoring a component that might contain genuine signal. This is a choice about data uncertainty and model resolution, not an algebraic identity claiming that all small singular values are unphysical.

Least squares and projection agree through the normal equation

The residual condition can be expressed as M†(Mx−b) = zero, or M†Mx = M†b. For this full-column-rank example, M†M is invertible, so x = (M†M)⁻¹M†b agrees with the pseudoinverse calculation. This identity does not mean that forming the normal equations is always numerically preferable. Squaring singular values changes the operator-norm condition number from four divided by two, namely two, to sixteen divided by four, namely four. In general the condition number is squared, making small singular directions harder to resolve when arithmetic or data are inexact. The SVD exposes those directions directly and keeps the source of any amplification explicit. The matrix formula for the exact solution and a stable method for evaluating it are distinct parts of a numerical analysis.

A Hermitian dilation turns singular values into paired eigenvalues

Form the five-by-five block matrix K = [[0,M],[M†,0]] on the direct sum of the three-dimensional output and two-dimensional input spaces. For each singular pair, the vectors (u_j,v_j)/√2 and (u_j,−v_j)/√2 have eigenvalues +s_j and −s_j. The remaining vector (u₂,0) has eigenvalue zero.

Thus K has spectrum −4,−2,0,2,4. The signs arise from coupling two direct-sum sectors; they do not mean that M has negative singular values. This construction is a Hermitian spectral representation of a rectangular map, with a direct-sum dimension of five rather than a tensor-product dimension of six.

The polar decomposition is M = W|M|, with |M| = 4|v₀⟩⟨v₀|+2|v₁⟩⟨v₁| and W = |u₀⟩⟨v₀|+|u₁⟩⟨v₁|. Here W is an isometry because M has full input rank. M itself cannot serve unscaled as a successful quantum-operation Kraus operator: M†M is not bounded above by I. A factor no larger than one-quarter is needed for that inequality.

The two nonzero singular directions are mapped with gains four and two. The third output component of b is outside the range. The Hermitian dilation turns the two nonzero singular values into eigenvalue pairs and retains a zero eigenvalue. A least-squares inverse is a different operation from a physically admissible probabilistic quantum map.

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.

  • MIT OpenCourseWare, Gilbert Strang, course instructor · · Lecture or course notes · ocw.mit.edu
    Verification scope

    Selected text checked ·

    Full-text pseudoinverse construction from singular values inspected. Source uses real matrices; the encyclopedia states the complex adjoint generalization through singular-value decomposition.

    Selected definitions and metadata verified; not a claim of exhaustive theorem review or external scientific approval. Original prose and independently constructed examples are used.

  • David Bindel · · Lecture or course notes · cs.cornell.edu
    Verification scope

    Selected text checked ·

    Official dated lecture inspected for QR, Gram–Schmidt residuals, cancellation and loss of orthogonality, Householder reflectors, and Givens rotations.

    Source mainly writes real transposes; encyclopedia complex examples consistently use adjoints and are recomputed separately. No source code or exercise is reproduced.

  • David Bindel · · Lecture or course notes · cs.cornell.edu
    Verification scope

    Selected text checked ·

    Dated full lecture inspected for least-squares ill-posedness, normal equations, Tikhonov penalty and truncated singular-value inversion.

    The source uses a lambda-squared penalty convention; glossary writes its own nonnegative coefficient explicitly. No data-fitting exercise or source example is reproduced.