Overview
Quantum mechanics of finitely many qubits is linear algebra over the complex numbers. States are unit vectors or positive semidefinite operators of unit trace, evolutions are unitary matrices, measurements are families of positive operators, and noise is a linear map on matrices. Almost every argument in quantum information therefore reduces, at some point, to a handful of facts about operators on a finite-dimensional complex inner-product space: which operators can be diagonalised in an orthonormal basis, how an arbitrary matrix factors into unitary and positive pieces, how to measure the size of a matrix, and how operators on a composite system relate to operators on its parts.
This page collects those facts with complete statements and proofs. The standard references are Horn and Johnson for matrix theory, Bhatia for norms and matrix inequalities, and chapter 2 of Nielsen and Chuang and chapter 1 of Watrous for the selection that quantum information uses. Infinite dimensions, needed for oscillators and bosonic codes, are the subject of functional analysis; algorithms for computing these decompositions are in numerical methods.
Intuition
A Hermitian matrix is the matrix version of a real number, a unitary the version of a phase , and a positive semidefinite matrix the version of a nonnegative number. The spectral theorem makes this literal: in a suitable orthonormal basis each of them is a diagonal matrix whose entries are real numbers, phases or nonnegative numbers. Anything one can do to a number, such as take its square root, logarithm or exponential, one can then do to such a matrix entry by entry in that basis. That is how , and are defined.
A general matrix is not diagonal in any orthonormal basis, but it is diagonal between two different orthonormal bases: it sends one orthonormal family to another, stretching each direction by a nonnegative factor, the singular value. That is the singular value decomposition. Grouping the "rotate" and "stretch" parts gives the polar decomposition, the matrix version of writing a complex number as .
Sizes of matrices come from the singular values: their sum (the trace norm) measures how well two quantum states can be told apart, their root-sum-of-squares (the Hilbert–Schmidt norm) is the easiest to compute, and the largest one (the operator norm) bounds how much a matrix can amplify any vector.
Prerequisites
Vector spaces, linear maps, bases, determinants and eigenvalues over . The lessons Complex amplitudes and Gates and unitaries introduce the notation used here: kets, bras, linear in the second argument, and for the adjoint.
Mathematical Definitions
Throughout, and are complex inner-product spaces of finite dimension, and is the space of linear maps , with . The adjoint of is the unique with for all , ; in orthonormal bases it is the conjugate transpose. An operator is
- normal if ;
- Hermitian (self-adjoint) if ;
- positive semidefinite, , if for every ; one writes when (the Löwner order);
- unitary if ; a map with is an isometry;
- an orthogonal projection if .
The tensor product has dimensions, the products of basis vectors as a basis, and , . Its matrices are Kronecker products, with the first factor most significant, which matches the big-endian qubit ordering used throughout the Commons. The partial trace is the linear map that discards one factor.
The sizes of operators are measured by the Schatten norms.
Let be a linear map between finite-dimensional complex inner-product spaces with singular values (singular value decomposition). For the Schatten -norm is
and (with all norms of the zero map equal to ). Three cases carry their own names:
- , the trace norm . For Hermitian it is the sum of the absolute values of the eigenvalues; half the trace norm of the difference of two density operators is the trace distance.
- , the Hilbert–Schmidt or Frobenius norm in any pair of orthonormal bases. It is the norm of the Hilbert–Schmidt inner product .
- , the operator norm (spectral norm) .
Each is a norm on . Each is unitarily invariant, for unitaries (or isometries) and of the right sizes, and . They satisfy and , and is non-increasing in .
That obeys the triangle inequality for every is not obvious from the definition; it follows from the duality in Hölder's inequality. Proofs are in chapter IV of Bhatia; chapter 1 of Watrous states the properties used in quantum information.
- Finite-dimensional spaces. The infinite-dimensional versions define the trace-class and Hilbert–Schmidt operators of functional analysis.
Theorems
Decompositions
Let be a complex inner-product space of finite dimension and let . Then is normal, , if and only if there is an orthonormal basis of and complex numbers with
Grouping equal eigenvalues gives the spectral decomposition , where the are orthogonal projections with and . The set of distinct eigenvalues and the projections are uniquely determined by , and each is a polynomial in .
For a normal :
- is Hermitian () if and only if every ;
- is positive semidefinite ( for all ) if and only if every ;
- is unitary if and only if every ;
- is an orthogonal projection () if and only if every .
Every positive semidefinite operator is Hermitian, so it is normal and these statements apply to it. For a function defined on one sets (the functional calculus); this is how , and are defined.
Simultaneous diagonalisation. If are normal and pairwise commute, there is one orthonormal basis of consisting of eigenvectors of all of them.
The statement is in section 2.5 of Horn and Johnson and is Theorem 2.1 of Nielsen and Chuang; Bhatia develops the consequences for matrix inequalities.
- The space is a complex inner-product space of finite dimension; over the reals the statement holds for symmetric operators only.
Proof · Proof of the finite-dimensional spectral theorem
Schur triangularisation. Every is upper triangular in some orthonormal basis. By the fundamental theorem of algebra the characteristic polynomial of has a root , so has a unit eigenvector . Extend it to an orthonormal basis; in that basis the first column of is . Apply the same step to the compression of to , which has dimension , and induct.
A normal triangular matrix is diagonal. Let be upper triangular with . Compare the entries: , while . Equality forces for . Then is block diagonal with blocks and an upper triangular normal block of size , and induction gives that is diagonal. Since Schur's basis is orthonormal, a normal is diagonal in an orthonormal basis. Conversely, gives .
Uniqueness. Let be the sum of the with . Then is the orthogonal projection onto the eigenspace , which depends only on . By Lagrange interpolation there is a polynomial with and at the other eigenvalues, and .
Special classes. Because the are mutually orthogonal and nonzero, two expressions and are equal only if for all . Now , and . So iff every is real, iff every , and iff every . For positivity, , which is for all iff every (take ). A positive semidefinite is Hermitian: is the difference of a real number and its conjugate, hence for all , and by polarisation an operator whose quadratic form vanishes identically is zero.
Commuting families. Induct on . If every is a multiple of the identity there is nothing to prove. Otherwise pick with at least two distinct eigenvalues. Each commutes with , hence with every spectral projection , and since is Hermitian, also commutes with . So each eigenspace is invariant under and , the restriction of to has adjoint equal to the restriction of and is therefore normal, and the restrictions still commute. Each has smaller dimension than , so the induction hypothesis gives a common orthonormal eigenbasis of each ; their union is one for .
The argument is the one in section 2.3 (Schur) and section 2.5 (normal matrices) of Horn and Johnson.
Let and be complex inner-product spaces of finite dimensions and , and let be linear with rank . Then there are orthonormal vectors , orthonormal vectors and numbers such that
The singular values are uniquely determined: are the nonzero eigenvalues, with multiplicity, of (and of ). The vectors satisfy and ; the span and the span the range of .
In matrix form, every factors as with and unitary and zero except for , . One also sets for when a full list of singular values is wanted.
The factors are not unique: when singular values coincide, any unitary rotation inside the corresponding subspaces, applied to the and together, gives another decomposition, and even for distinct values the pair can be multiplied by a common phase. A textbook statement is in section 2.6 of Horn and Johnson; applied to the coefficient matrix of a bipartite pure state it is the Schmidt decomposition, as noted in section 2.5 of Nielsen and Chuang.
- Finite-dimensional complex inner-product spaces; the real case holds with real orthogonal factors.
Proof · Proof of the singular value decomposition
The operator is positive semidefinite, since . By the spectral theorem there is an orthonormal basis of with and . Let be the number of positive .
For , , so . For put and . These are orthonormal:
Since ,
The range of is spanned by the orthonormal, hence independent, vectors , so . Also , and has the same nonzero eigenvalues as . For uniqueness, any decomposition of the stated form gives , a spectral decomposition, so the are the positive eigenvalues of with multiplicity. Completing and to orthonormal bases gives the unitaries and of the matrix form. The theorem is proved in section 2.6 of Horn and Johnson.
Let be a complex inner-product space of finite dimension and . Define the absolute value , the unique positive semidefinite square root of . Then:
- Polar decomposition. There is a unitary on withThe factor is unique. If is invertible, is unique as well; otherwise is fixed only on the range of .
- Variational formula. With , the sum of the singular
values of (the trace norm),and the maximum is attained at for any unitary from part 1.
The decomposition is Theorem 2.3 of Nielsen and Chuang and is treated in section 7.3 of Horn and Johnson; the variational formula appears in chapter 1 of Watrous. It is the key step in the proof of Uhlmann's theorem and in the construction of the recovery map in the Knill–Laflamme conditions.
- The operator acts on one finite-dimensional complex inner-product space (square matrices).
Proof · Proof of the polar decomposition and the trace-norm formula
Write the singular value decomposition and let . Then , whose unique positive semidefinite square root is (if is any positive semidefinite square root, with distinct , then with distinct ; by uniqueness of spectral projections in the spectral theorem the and the , hence , are fixed by ).
Part 1. The orthogonal complements of and both have dimension ; choose orthonormal bases and of them and set , a unitary. Then . Similarly and . If with unitary and , then , so ; if moreover is invertible so is , and .
Part 2. For any unitary ,
because and are unit vectors. For , , so every term equals and the bound is attained. The polar and singular value decompositions are treated in chapter 7 of Horn and Johnson.
Two projections
Let and be orthogonal projections on a finite-dimensional complex inner-product space . Then is an orthogonal direct sum
of subspaces with , each invariant under both and . On every one-dimensional , and act as or . On every two-dimensional there are unit vectors with
and is an eigenvalue of with eigenvector .
In the two-dimensional blocks the product of the two reflections is a rotation by angle . This is the geometry behind amplitude amplification and Grover's algorithm, and the reason the singular value transformation and qubitization reduce to blocks indexed by singular values. In quantum complexity it is the tool of Marriott and Watrous for amplifying QMA verifiers without copying the witness. The decomposition goes back to Camille Jordan's 1875 work on the geometry of dimensions, where the angles appear as the principal angles between two subspaces; the operator-theoretic version for two subspaces of a Hilbert space goes back at least to Dixmier (1948) and is best known from Halmos.
- Finite-dimensional complex inner-product space; the infinite-dimensional analogue (Halmos's two-subspace theorem) needs a direct integral rather than a direct sum.
- P and Q are orthogonal projections, that is P = P squared = P dagger, and likewise for Q.
Proof · Proof of Jordan's lemma for two projections
Induct on ; the case is empty. It suffices to find one nonzero subspace of dimension at most two, invariant under and , on which and have the stated form: since and are Hermitian, is then invariant too, the restrictions of and to are again orthogonal projections, and the induction hypothesis applies to .
Case . Take any unit eigenvector of ; it spans a one-dimensional invariant subspace on which both act as or .
Case . The operator is positive semidefinite and maps into itself, so by the spectral theorem there is a unit vector with , . Let . It is invariant:
Also .
If , then with because is a projection, and both operators act on as or .
If , then and is not a multiple of . On the range of is and the range of is , so both restrictions are rank-one orthogonal projections: and with . Their overlap is . Since is neither parallel nor orthogonal to (it is nonzero, not parallel, and ), and with .
In a block with at angle , a direct computation in an orthonormal basis shows that has determinant and trace , so it is the rotation by . Marriott and Watrous use this two-dimensional construction, starting from an eigenvector of the analogue of , in their amplification argument; the induction above is a standard argument written out here in full.
Norm inequalities
For conjugate exponents and operators of the same shape, , where is the Schatten norm. Moreover the bound is attained:
The case is the Cauchy–Schwarz inequality for the Hilbert–Schmidt inner product. The case , reads : for a Hermitian observable and Hermitian , , which bounds how much the expectation value of can change between two states by their trace distance. Attaining the maximum for is the variational formula for the trace norm.
The inequality follows from von Neumann's trace inequality combined with the scalar Hölder inequality; equality is reached by built on the singular vectors of with (or on the top singular vector when ). Proofs are in chapter IV of Bhatia; the statement used in quantum information is in chapter 1 of Watrous.
- A and B are linear maps between the same pair of finite-dimensional complex inner-product spaces.
- The exponents are conjugate, with the convention 1/infinity = 0.
More generally, for and of rank ,
Both sides are statements about the vector of nonzero singular values, because is its norm (Schatten norm). The left inequality holds because is non-increasing in : after scaling so that , every , so . The right inequality is the scalar Hölder inequality applied to with exponents and its conjugate. Both are tight: the left one for rank one, the right one when all nonzero singular values are equal.
The chain in the formula above is the cases . A consequence used often: for -dimensional density operators, , so a small Hilbert–Schmidt distance implies a small trace distance only up to a dimension factor, which for qubits is . These inequalities are standard; see chapter IV of Bhatia and chapter 1 of Watrous.
- A is a linear map between finite-dimensional complex inner-product spaces and r is its rank (r may be replaced by any upper bound such as the smaller dimension).
Identities used constantly
Fix an orthonormal basis of , let , and let denote the transpose in this basis, . The key step is
after which gives the first equality, and the second follows by the same step with the roles of the factors exchanged.
Vectorisation. Define , a linear isometry from with the Hilbert–Schmidt inner product onto . Then
and the same holds for rectangular , and of compatible sizes. With this convention , the one used in chapter 1 of Watrous.
Uses: it shows that a maximally entangled state is invariant under for every unitary ; it underlies the Choi–Jamiołkowski isomorphism and the correction step of teleportation; and it converts statements about operators into statements about bipartite vectors, as in the proof of the Schmidt decomposition from the singular value decomposition.
- A and B are operators on C^d and the transpose is taken in the same orthonormal basis that defines the vector Gamma.
- Gamma is not normalised; the maximally entangled unit vector is Gamma divided by the square root of d.
The Pauli strings , , satisfy
Indeed , and for single-qubit Paulis if and otherwise, because is then a phase times , or , all of which are traceless. So the strings are orthogonal for the Hilbert–Schmidt inner product . They are in number, hence a basis, and expanding in an orthogonal basis gives the formula. Since every Pauli string is Hermitian, is Hermitian if and only if every coefficient is real, and .
For a density operator the coefficient of is , and the other coefficients are the expectation values ; for one qubit this is the Bloch representation. The same expansion shows that a code correcting the errors , and on a set of qubits corrects every operator supported there, the discretisation step of quantum error correction, and it is the starting point of the Pauli twirl. See section 10.3 of Nielsen and Chuang for its use in error correction.
- A is any linear operator on the n-qubit space, of dimension 2 to the n.
- The sum runs over the 4^n Pauli strings without phases.
Worked Examples
SVD, polar decomposition and norms of a matrix
Take
The eigenvalues of are and , with eigenvectors and . So the singular values are and . The left singular vectors are
which are orthonormal, as the proof of the SVD guarantees. Checks: and .
The norms are , and , and the comparison chain with reads .
For the polar decomposition, and :
is a rotation by , and , the maximum in the variational formula.
Jordan blocks of a Grover search
Let , let be the uniform superposition, and let project onto the span of marked basis states. With , , so is an eigenvector with and the Jordan block containing it is spanned by and , at angle with . For and , and . The product of the two reflections rotates by in this plane; with the usual sign conventions this is the rotation by per iteration that drives Grover's algorithm.
Applications
- States. A density operator is a positive semidefinite operator of unit trace; its spectral decomposition is a canonical ensemble, and its eigenvalues define the von Neumann entropy.
- Entanglement. The SVD of the coefficient matrix of a bipartite pure state is the Schmidt decomposition.
- Distinguishability. The trace norm gives the trace distance and the Helstrom bound; the polar decomposition proves Uhlmann's theorem for the fidelity.
- Channels. The transpose trick underlies the Choi–Jamiołkowski isomorphism and the Choi–Kraus theorem.
- Error correction. The Pauli expansion turns arbitrary errors into Pauli errors (quantum error correction, stabilizer codes); the Knill–Laflamme proof diagonalises a Hermitian matrix and uses a polar decomposition.
- Algorithms. Jordan's lemma and the SVD organise amplitude amplification, quantum signal processing and the quantum singular value transformation.
Limitations and Common Pitfalls
- Eigenvalues are not singular values unless the matrix is normal. The matrix has both eigenvalues but singular values and ; it is not diagonalisable at all. Bounds stated with eigenvalues for Hermitian matrices usually need singular values in general.
- Functions do not respect the Löwner order. does not imply : for and , is positive semidefinite but has determinant . Functions that do preserve the order, such as for and , are the operator monotone functions treated in functional analysis; this is why entropy inequalities need care.
- The transpose depends on a basis, and so does the partial transpose used in the PPT criterion; its spectrum does not, but its matrix does. The transpose trick holds only for the basis that defines .
- Positivity over the reals is weaker. Over , for all does not make symmetric; over , for all forces .
- Normalisations differ. Some texts normalise the Hilbert–Schmidt inner product by , call the rather than the Schmidt coefficients, or order Kronecker products little-endian (as Qiskit does). Check before combining formulas.
- Dimension factors hide in norm conversions. Converting a Hilbert–Schmidt error into a trace-norm error costs , up to on qubits; a bound that looks small in one norm can be useless in the other.
- Finite dimension is used. Existence of eigenvectors, the spectral theorem as a finite sum and the equivalence of all norms fail or change form for operators on infinite dimensional spaces, such as the position and number operators of an oscillator.