콘텐츠로 이동

§ 2.1. Linear Algebra

2.1.1. Vector Spaces and Subspaces

Definition 2.1.1 : Complex vector space

The basic objects of linear algebra are vector spaces. The complex vector space of most interest to us is

\[ \mathbb{C}^{n}= \left\{\left(z_{1},\ldots,z_{n}\right)\mid z_{i}\in\mathbb{C}\right\} \]

The elements of a vector space are called vectors, and we will sometimes use the column matrix notation

\[ \left[\begin{array}{c} z_{1} \\ \vdots \\ z_{n} \end{array}\right] \]

in order to indicate a vector.

In \(\mathbb{C}^{n}\), vector addition is given by

\[ \left[\begin{array}{c} z_{1} \\ \vdots \\ z_{n} \end{array}\right]+ \left[\begin{array}{c} z_{1}^{\prime} \\ \vdots \\ z_{n}^{\prime} \end{array}\right] = \left[\begin{array}{c} z_{1}+z_{1}^{\prime} \\ \vdots \\ z_{n}+z_{n}^{\prime} \end{array}\right], \]

where the additions on the right are ordinary additions of complex numbers.

Scalar multiplication by a complex number \(z\in\mathbb{C}\) is given by

\[ z\left[\begin{array}{c} z_{1} \\ \vdots \\ z_{n} \end{array}\right] = \left[\begin{array}{c} z z_{1} \\ \vdots \\ z z_{n} \end{array}\right] \]

where \(z\) is a scalar, that is, a complex number, and the multiplications on the right are ordinary multiplications of complex numbers.

Physicists sometimes refer to complex numbers as c-numbers.

For convenience, we use the notation \(\left(z_{1}, \ldots, z_{n}\right)\) to denote a column matrix with entries \(z_{1}, \ldots, z_{n}\).

Concept 2.1.2: Quantum mechanical notation for a vector

The standard quantum mechanical notation for a vector in a vector space is the following.

\[ \begin{equation*} |\psi\rangle. \end{equation*} \]

Here, \(\psi\) is a label for the vector (any label is valid, although we prefer to use simple labels like \(\psi\) and \(\varphi\)). The \(|\cdot\rangle\) notation is used to indicate that the object is a vector.

The entire object \(|\psi\rangle\) is sometimes called a ket, although we won't use that terminology often.

Definition 2.1.3 : Zero vector

A vector space also contains a special zero vector, which we denote by \(0\). It satisfies the property that for any other vector \(|v\rangle\), \(|v\rangle+0=|v\rangle\).

Note that we do not use the ket notation for the zero vector - it is the only exception we shall make. The reason for making the exception is because it is conventional to use the 'obvious' notation for the zero vector, \(|0\rangle\), to mean something else entirely.

The scalar multiplication operation is such that \(z 0=0\) for any complex number \(z\).

Definition 2.1.4 : Vector subspace

A vector subspace of a vector space \(V\) is a subset \(W\) of \(V\) such that \(W\) is also a vector space. Equivalently, \(W\) is also closed under scalar multiplication and addition.

2.1.2. Bases and Linear Independence

Definition 2.1.5 : Spanning set, span, linear combination

A set of vectors \(|v_{1}\rangle, \ldots, |v_{n}\rangle\) is a spanning set for a vector space if every vector \(|v\rangle\) in that vector space can be written as a linear combination of vectors in that set.

\[ |v\rangle=\sum_{i} a_{i}|v_{i}\rangle. \]

In this case, we say the vectors \(|v_{1}\rangle, \ldots, |v_{n}\rangle\) span the vector space.

Example 2.1.6 : Two different spanning sets for \(\mathbb{C}^2\)

For example, a spanning set for the vector space \(\mathbb{C}^{2}\) is the set

\[ |v_{1}\rangle \equiv\left[\begin{array}{l} 1\\ 0 \end{array}\right] ; \quad|v_{2}\rangle \equiv\left[\begin{array}{l} 0\\ 1 \end{array}\right] \]

since any vector

\[ |v\rangle=\left[\begin{array}{l} a_{1}\\ a_{2} \end{array}\right] \]

in \(\mathbb{C}^{2}\) can be written as a linear combination \(|v\rangle=a_{1}|v_{1}\rangle+a_{2}|v_{2}\rangle\) of the vectors \(|v_{1}\rangle\) and \(|v_{2}\rangle\). We say that the vectors \(|v_{1}\rangle\) and \(|v_{2}\rangle\) span the vector space \(\mathbb{C}^{2}\).

Generally, a vector space may have many different spanning sets. A second spanning set for the vector space \(\mathbb{C}^{2}\) is the set

\[ |v_{1}\rangle \equiv \frac{1}{\sqrt{2}}\left[\begin{array}{l} 1\\ 1 \end{array}\right] ; \quad|v_{2}\rangle \equiv \frac{1}{\sqrt{2}}\left[\begin{array}{r} 1\\ -1 \end{array}\right] \]

since an arbitrary vector \(|v\rangle=\left(a_{1}, a_{2}\right)\) can be written as a linear combination of \(|v_{1}\rangle\) and \(|v_{2}\rangle\),

\[ |v\rangle=\frac{a_{1}+a_{2}}{\sqrt{2}}|v_{1}\rangle+\frac{a_{1}-a_{2}}{\sqrt{2}}|v_{2}\rangle . \]

Definition 2.1.7: Linearly dependent, linearly independent, basis, dimension, finite dimensional vector space

Let \(|v_{1}\rangle, \ldots, |v_{n}\rangle\) be a set of non-zero vectors. The vectors are linearly dependent if there exists a set of complex numbers \(a_{1}, \ldots, a_{n} \in \mathbb{C}\), with \(a_{i} \neq 0\) for at least one value of \(i\), such that

\[ a_{1}|v_{1}\rangle+a_{2}|v_{2}\rangle+\cdots+a_{n}|v_{n}\rangle=0. \]

A set of vectors is linearly independent if it is not linearly dependent. Any two sets of linearly independent vectors which span a vector space \(V\) contain the same number of elements. We call such a set a basis for \(V\).

A basis set always exists. The number of elements in the basis is defined to be the dimension of \(V\).

In these notes, we will only be interested in finite dimensional vector spaces.

2.1.3. Linear Operators and Matrices

Definition 2.1.8 : Linear operator, identity operator, zero operator

A linear operator between vector spaces \(V\) and \(W\) is a function \(A: V \rightarrow W\) which is linear in its inputs.

\[ A\left(\sum_{i} a_{i}|v_{i}\rangle\right)=\sum_{i} a_{i} A\left(|v_{i}\rangle\right) . \]

Usually we write \(A|v\rangle\) instead of \(A(|v\rangle)\).

When we say that a linear operator \(A\) is defined on a vector space \(V\), we mean that \(A\) is a linear operator from \(V\) to \(V\).

The identity operator, denoted \(I_{V}\), is defined by

\[ I_{V}|v\rangle \equiv|v\rangle \]

for all vectors \(|v\rangle\). Where no chance of confusion arises, we write \(I\) instead of \(I_{V}\).

The zero operator, denoted \(0\), maps all vectors to the zero vector, as

\[ 0|v\rangle \equiv 0. \]

It is clear from the definition that once the action of a linear operator \(A\) on a basis is specified, the action of \(A\) is completely determined on all inputs.

Definition 2.1.9 : Composition of linear operators

Suppose \(V\), \(W\), and \(X\) are vector spaces, and \(A: V \rightarrow W\) and \(B: W \rightarrow X\) are linear operators.

Then we use the notation \(B A\) to denote the composition of \(B\) with \(A\), defined by

\[ (B A)(|v\rangle) \equiv B(A(|v\rangle)). \]

Once again, we write \(B A|v\rangle\) as an abbreviation for \((B A)(|v\rangle)\).

Concept 2.1.10 : Matrix representation

The most convenient way to understand linear operators is in terms of their matrix representations. The linear operator and matrix viewpoints are completely equivalent. The matrix viewpoint may be more familiar to you. To see the connection, it helps to first understand that an \(m\) by \(n\) complex matrix \(A\) with entries \(A_{i j}\) is in fact a linear operator sending vectors in the vector space \(\mathbb{C}^{n}\) to the vector space \(\mathbb{C}^{m}\), under matrix multiplication of the matrix \(A\) by a vector in \(\mathbb{C}^{n}\). More precisely, the claim that the matrix \(A\) is a linear operator just means that

\[ A\left(\sum_{i} a_{i}|v_{i}\rangle\right)=\sum_{i} a_{i} A|v_{i}\rangle \]

is true as an equation where the operation is matrix multiplication of \(A\) by column vectors. Clearly, this is true!

We've seen that matrices can be regarded as linear operators. Can linear operators be given a matrix representation? In fact they can, as we now explain. This equivalence between the two viewpoints justifies our interchanging terms from matrix theory and operator theory throughout the book. Suppose \(A: V \rightarrow W\) is a linear operator between vector spaces \(V\) and \(W\). Suppose \(|v_{1}\rangle, \ldots,|v_{m}\rangle\) is a basis for \(V\) and \(|w_{1}\rangle, \ldots,|w_{n}\rangle\) is a basis for \(W\). Then for each \(j\) in the range \(1, \ldots, m\), there exist complex numbers \(A_{1 j}\) through \(A_{n j}\) such that

\[ A|v_{j}\rangle=\sum_{i} A_{i j}|w_{i}\rangle \]

The matrix whose entries are the values \(A_{i j}\) is said to form a matrix representation of the operator \(A\). This matrix representation of \(A\) is completely equivalent to the operator \(A\), and we will use the matrix representation and abstract operator viewpoints interchangeably. Note that to make the connection between matrices and linear operators we must specify a set of input and output basis states for the input and output vector spaces of the linear operator.

2.1.4. The Pauli Matrices

Definition 2.1.11 : Pauli matrices \(I\), \(X\), \(Y\), \(Z\)

Four extremely useful matrices are the Pauli matrices. These are \(2 \times 2\) matrices, written using several notations.

\[ \sigma_{0} \equiv I \equiv\left[\begin{array}{ll} 1 & 0 \\ 0 & 1 \end{array}\right] \]
\[ \sigma_{1} \equiv \sigma_{x} \equiv X \equiv\left[\begin{array}{ll} 0 & 1 \\ 1 & 0 \end{array}\right] \]
\[ \sigma_{2} \equiv \sigma_{y} \equiv Y \equiv\left[\begin{array}{rr} 0 & -i \\ i & 0 \end{array}\right] \]
\[ \sigma_{3} \equiv \sigma_{z} \equiv Z \equiv\left[\begin{array}{rr} 1 & 0 \\ 0 & -1 \end{array}\right] \]

Sometimes \(I\) is omitted from the list, with just \(X\), \(Y\), and \(Z\) known as the Pauli matrices.

2.1.5. Inner Products

Definition 2.1.12 : Inner product, inner product space

An inner product on a vector space \(V\) is a function \((\cdot, \cdot): V \times V \to \mathbb{C}\) that takes two vectors \(|v\rangle\) and \(|w\rangle\) to a complex number. For convenience, we often write it as \((|v\rangle,|w\rangle)\). In standard quantum-mechanical notation, the same value is written as \(\langle v \mid w\rangle\).

The function \((\cdot, \cdot)\) is an inner product iff it satisfies the following:

  1. Linearity in the second argument:

    \[ (|v\rangle, \sum_i \lambda_i |w_i\rangle) = \sum_i \lambda_i (|v\rangle, |w_i\rangle). \]
  2. Conjugate symmetry:

    \[ (|v\rangle,|w\rangle) = (|w\rangle,|v\rangle)^*. \]
  3. Positive definiteness:

    \[ (|v\rangle,|v\rangle) \ge 0, \]

    with equality if and only if \(|v\rangle=0\).

A vector space equipped with an inner product is called an inner product space.

Definition 2.1.13 : Dual vector

The notation \(\langle v|\) is used for the dual vector to the vector \(|v\rangle\). The dual is a linear operator from the inner product space \(V\) to the complex numbers \(\mathbb{C}\), defined by

\[ \langle v|(|w\rangle) \equiv\langle v \mid w\rangle \equiv(|v\rangle,|w\rangle). \]

The matrix representation of dual vectors is just a row vector. (It will be shown in Theorem 2.1.19.)

Theorem 2.1.14 : Conjugate-linearity in first argument

For vectors \(|w_i\rangle,|v\rangle\) and complex scalars \(\lambda_i\), any inner product is conjugate-linear in its first argument, i.e.

\[ \left(\sum_i \lambda_i |w_i\rangle,|v\rangle\right)=\sum_i \lambda_i^*\left(|w_i\rangle,|v\rangle\right). \]

Proof

By conjugate symmetry,

\[ \left(\sum_i \lambda_i |w_i\rangle,|v\rangle\right)=\left(|v\rangle,\sum_i \lambda_i |w_i\rangle\right)^*. \]

By linearity in the second argument,

\[ \left(|v\rangle,\sum_i \lambda_i |w_i\rangle\right)=\sum_i \lambda_i\left(|v\rangle,|w_i\rangle\right). \]

Taking the complex conjugate yields

\[ \left(\sum_i \lambda_i |w_i\rangle,|v\rangle\right)=\sum_i \lambda_i^*\left(|w_i\rangle,|v\rangle\right). \]

Definition 2.1.15 : Inner product in \mathbb{C}^n

In \(\mathbb{C}^{n}\), the inner product between \((y_{1},\ldots,y_{n})\) and \((z_{1},\ldots,z_{n})\) is defined by

\[ \left((y_{1},\ldots,y_{n}),(z_{1},\ldots,z_{n})\right) \equiv \sum_{i} y_{i}^{*} z_{i} =\left[y_{1}^{*}\cdots y_{n}^{*}\right]\left[\begin{array}{c} z_{1} \\ \vdots \\ z_{n} \end{array}\right] \]

Concept 2.1.16 : Hilbert space

Discussions of quantum mechanics often refer to Hilbert space. In the finite dimensional complex vector spaces that come up in quantum computation and quantum information, a Hilbert space is exactly the same thing as an inner product space. From now on we use the two terms interchangeably, preferring the term Hilbert space.

In infinite dimensions Hilbert spaces satisfy additional technical restrictions above and beyond inner product spaces, which we will not need to worry about.

Definition 2.1.17 : Orthogonal, orthonormal, norm, normalized, orthonormal set

  • Orthogonal vectors: Vectors \(|w\rangle\) and \(|v\rangle\) are orthogonal if their inner product is zero. For example, \(|w\rangle \equiv (1,0)\) and \(|v\rangle \equiv (0,1)\) are orthogonal with respect to the inner product defined by Definition 2.1.15.

  • Norm: The norm of a vector \(|v\rangle\) is

    \[ \begin{equation*} \||v\rangle \| \equiv \sqrt{\langle v \mid v\rangle} . \end{equation*} \]
  • Unit vector: A unit vector is a vector \(|v\rangle\) such that \(\||v\rangle \| = 1\). We also say that \(|v\rangle\) is normalized if \(\||v\rangle \| = 1\).

  • Normalizing a non-zero vector: For any non-zero vector \(|v\rangle\), the normalized form is

    \[ \frac{|v\rangle}{\||v\rangle \|} \]
  • Orthonormal set: A set \(|i\rangle\) of vectors indexed by \(i\) is orthonormal if each vector is a unit vector and distinct vectors in the set are orthogonal. Equivalently,

    \[ \langle i \mid j\rangle=\delta_{i j} \]

    where \(i\) and \(j\) are both chosen from the index set.

Theorem 2.1.18 : Gram-schmidt procedure

Suppose \(|w_{1}\rangle, \ldots, |w_{d}\rangle\) is a basis set for some vector space \(V\) with an inner product. There is a useful method, the Gram-Schmidt procedure, which can be used to produce an orthonormal basis set \(|v_{1}\rangle, \ldots, |v_{d}\rangle\) for the vector space \(V\). Define

\[ |v_{1}\rangle \equiv|w_{1}\rangle / \||w_{1}\rangle \| \]

and for \(1 \leq k \leq d-1\) define \(|v_{k+1}\rangle\) inductively by

\[ \begin{equation*} |v_{k+1}\rangle \equiv \frac{|w_{k+1}\rangle-\sum_{i=1}^{k}\langle v_{i} \mid w_{k+1}\rangle|v_{i}\rangle}{\||w_{k+1}\rangle-\sum_{i=1}^{k}\langle v_{i} \mid w_{k+1}\rangle|v_{i}\rangle \|} \end{equation*} \]

It is not difficult to verify that the vectors \(|v_{1}\rangle, \ldots, |v_{d}\rangle\) form an orthonormal set which is also a basis for \(V\). Thus, any finite dimensional vector space of dimension \(d\) has an orthonormal basis, \(|v_{1}\rangle, \ldots, |v_{d}\rangle\).

Proof

The vector in the numerator is orthogonal to each previously defined \(|v_i\rangle\) for \(1\le i\le k\) because each inner product with \(|v_j\rangle\) equals zero. Normalization makes \(|v_{k+1}\rangle\) unit length, and the construction proceeds inductively for \(k=1,\ldots,d-1\). The span is preserved by each subtraction step, so the resulting list of vectors spans \(V\).

From now on, when we speak of a matrix representation for a linear operator, we mean a matrix representation with respect to orthonormal input and output bases. We also use the convention that if the input and output spaces for a linear operator are the same, then the input and output bases are the same, unless noted otherwise.

Theorem 2.1.19 : Matrix representation of inner product and dual vector

Let \(|w\rangle=\sum_{i} w_{i}|i\rangle\) and \(|v\rangle=\sum_{j} v_{j}|j\rangle\) be representations of vectors \(|w\rangle\) and \(|v\rangle\) with respect to some orthonormal basis \(|i\rangle\). Since \(\langle i \mid j\rangle=\delta_{i j}\),

\[ \begin{align*} \langle v \mid w\rangle & =\left(\sum_{i} v_{i}|i\rangle, \sum_{j} w_{j}|j\rangle\right)=\sum_{i j} v_{i}^{*} w_{j} \delta_{i j}=\sum_{i} v_{i}^{*} w_{i} \\ & =\left[v_{1}^{*} \ldots v_{n}^{*}\right]\left[\begin{array}{c} w_{1} \\ \vdots \\ w_{n} \end{array}\right] \end{align*} \]

That is, the inner product of two vectors is equal to the vector inner product between two matrix representations of those vectors, provided the representations are written with respect to the same orthonormal basis. We also see that the dual vector from Definition 2.1.13, \(\langle v|\), has a nice interpretation as the row vector whose components are complex conjugates of the corresponding components of the column vector representation of \(|v\rangle\).

Definition 2.1.20 : Outer product

There is a useful way of representing linear operators which makes use of the inner product, known as the outer product representation.

Suppose \(|v\rangle\) is a vector in an inner product space \(V\), and \(|w\rangle\) is a vector in an inner product space \(W\). Define \(|w\rangle\langle v|\) to be the linear operator from \(V\) to \(W\) whose action is defined by

\[ (|w\rangle\langle v|)\left(|v^{\prime}\rangle\right) \equiv|w\rangle\langle v \mid v^{\prime}\rangle=\langle v \mid v^{\prime}\rangle|w\rangle \]

This notation is chosen so that \(|w\rangle\langle v \mid v^{\prime}\rangle\) may be read either as the result of the operator \(|w\rangle\langle v|\) acting on \(|v^{\prime}\rangle\), or as the result of multiplying \(|w\rangle\) by the complex number \(\langle v \mid v^{\prime}\rangle\), and these two meanings coincide.

Theorem 2.1.21 : Completeness relation

Let \(\{|i\rangle\}\) be an orthonormal basis for the vector space \(V\), and let an arbitrary vector be written as \(|v\rangle=\sum_i v_i|i\rangle\). Since \(\langle i \mid v\rangle = v_i\), we have

\[ \left(\sum_i |i\rangle\langle i|\right)|v\rangle = \sum_i |i\rangle\langle i \mid v\rangle = \sum_i v_i|i\rangle = |v\rangle. \]

Therefore for all vectors \(|v\rangle\), the operator \(\sum_i |i\rangle\langle i|\) returns \(|v\rangle\), so it equals the identity operator \(I\).

\[ \sum_i |i\rangle\langle i| = I. \]

This equation is known as the completeness relation.

Theorem 2.1.22 : Representing any operator in outer product notation

Suppose \(A:V \rightarrow W\) is a linear operator. Assume \(|v_{i}\rangle\) is an orthonormal basis for \(V\) and \(|w_{j}\rangle\) is an orthonormal basis for \(W\).

Using the completeness relation (Theorem 2.1.21) twice gives

\[ A = I_{W} A I_{V} \]

which expands as

\[ \begin{align*} &=\sum_{i j}|w_{j}\rangle\langle w_{j}| A|v_{i}\rangle\langle v_{i}|\\ &=\sum_{i j}\langle w_{j}| A|v_{i}\rangle|w_{j}\rangle\langle v_{i}|, \end{align*} \]

This is the representation of \(A\) in the outer product notation of Definition 2.1.20.

Thus \(A\) has matrix element \(\langle w_{j}| A|v_{i}\rangle\) in the \(i\)th column and \(j\)th row.

Theorem 2.1.23 : Cauchy-schwarz inequality

The Cauchy-Schwarz inequality is an important geometric fact about Hilbert spaces. It states that for any two vectors \(|v\rangle\) and \(|w\rangle\),

\[ |\langle v \mid w\rangle|^{2} \leq\langle v \mid v\rangle\langle w \mid w\rangle. \]

Proof

To see this, use the Gram-Schmidt procedure (Theorem 2.1.18) to construct an orthonormal basis \(|i\rangle\) for the vector space such that the first member of the basis \(|i\rangle\) is \(|w\rangle / \sqrt{\langle w \mid w\rangle}\). Using the completeness relation (Theorem 2.1.21), \(\sum_{i}|i\rangle\langle i|=I\), and dropping some non-negative terms gives

\[ \begin{align*} \langle v \mid v\rangle\langle w \mid w\rangle & = \sum_{i}\langle v \mid i\rangle\langle i \mid v\rangle\langle w \mid w\rangle \\ & \geq \frac{\langle v \mid w\rangle\langle w \mid v\rangle}{\langle w \mid w\rangle}\langle w \mid w\rangle \\ & = \langle v \mid w\rangle\langle w \mid v\rangle = |\langle v \mid w\rangle|^{2}. \end{align*} \]

Equality occurs if and only if \(|v\rangle\) and \(|w\rangle\) are linearly related, that is, \(|v\rangle=z|w\rangle\) or \(|w\rangle=z|v\rangle\), for some scalar \(z\).

2.1.6. Eigenvectors and eigenvalues

Definition 2.1.24 : Eigenvector, eigenvalue, characteristic function, eigenspace

An eigenvector of a linear operator \(A\) on a vector space is a non-zero vector \(|v\rangle\) such that \(A|v\rangle=v|v\rangle\), where \(v\in\mathbb{C}\) is known as the corresponding eigenvalue of \(A\). We will often use the same symbol \(v\) to denote the eigenvector label and to represent the associated eigenvalue.

We assume familiarity with the elementary properties of eigenvalues and eigenvectors, including how to find them using the characteristic equation.

The characteristic function is defined by

\[c(\lambda)=\operatorname{det}|A-\lambda I|,\]

where \(\operatorname{det}\) is the determinant function for matrices. It depends only on the operator \(A\), not on any particular matrix representation of \(A\). The solutions of the characteristic equation \(c(\lambda)=0\) are the eigenvalues of \(A\). By the fundamental theorem of algebra, every polynomial has at least one complex root, so every operator \(A\) has at least one eigenvalue and a corresponding eigenvector.

The eigenspace corresponding to an eigenvalue \(v\) is the set of vectors that have eigenvalue \(v\). It is a vector subspace of the vector space on which \(A\) acts.

Definition 2.1.25 : Diagonal representation

A diagonal representation for an operator \(A\) on a vector space \(V\) is a representation

\[ A=\sum_{i} \lambda_{i}|i\rangle\langle i|, \]

where the vectors \(|i\rangle\) form an orthonormal set of eigenvectors for \(A\), with corresponding eigenvalues \(\lambda_{i}\). An operator is said to be diagonalizable if it has a diagonal representation. In the next section we will find a simple set of necessary and sufficient conditions for an operator on a Hilbert space to be diagonalizable.

Diagonal representations are sometimes also known as orthonormal decompositions.

Definition 2.1.26 : Degenerate eigenspace

When an eigenspace is more than one dimensional, we say that it is degenerate.

For example, the matrix \(A\) defined by

\[ A \equiv \left[\begin{array}{lll} 2 & 0 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 0 \end{array}\right] \]

has a two-dimensional eigenspace corresponding to the eigenvalue \(2\). The eigenvectors \((1,0,0)\) and \((0,1,0)\) are said to be degenerate because they are linearly independent eigenvectors of \(A\) with the same eigenvalue.

Example 2.1.27: Eigendecomposition of the Pauli matrices

For the Pauli matrices from Definition 2.1.11, we have

\[ X= \begin{pmatrix} 0 & 1\\ 1 & 0 \end{pmatrix}, Y= \begin{pmatrix} 0 & -i\\ i & 0 \end{pmatrix}, Z= \begin{pmatrix} 1 & 0\\ 0 & -1 \end{pmatrix}. \]
  • The matrix \(X\) has eigenvalue pair \(+1,-1\) with eigenvectors \(|+_X\rangle=\frac{1}{\sqrt 2}\begin{pmatrix}1\\1\end{pmatrix}\) and \(|-_X\rangle=\frac{1}{\sqrt 2}\begin{pmatrix}1\\-1\end{pmatrix}\). Its diagonal representation is

    \[ X=\frac{1}{\sqrt2} \begin{pmatrix} 1&1\\ 1&-1 \end{pmatrix} \begin{pmatrix} 1&0\\ 0&-1 \end{pmatrix} \frac{1}{\sqrt2} \begin{pmatrix} 1&1\\ 1&-1 \end{pmatrix}. \]
  • The matrix \(Y\) has eigenvalue pair \(+1,-1\) with eigenvectors \(|+_Y\rangle=\frac{1}{\sqrt 2}\begin{pmatrix}1\\i\end{pmatrix}\) and \(|-_Y\rangle=\frac{1}{\sqrt 2}\begin{pmatrix}1\\-i\end{pmatrix}\). Its diagonal representation is

    \[ Y=\frac{1}{\sqrt2} \begin{pmatrix} 1&1\\ i&-i \end{pmatrix} \begin{pmatrix} 1&0\\ 0&-1 \end{pmatrix} \frac{1}{\sqrt2} \begin{pmatrix} 1&-i\\ 1&i \end{pmatrix}. \]
  • The matrix \(Z\) has eigenvalue pair \(+1,-1\) with eigenvectors \(|+_Z\rangle=\begin{pmatrix}1\\0\end{pmatrix}\) and \(|-_Z\rangle=\begin{pmatrix}0\\1\end{pmatrix}\). Its diagonal representation is

    \[ Z= \begin{pmatrix} 1&0\\ 0&-1 \end{pmatrix}. \]

2.1.7. Adjoints and Hermitian operators

Definition 2.1.28 : Adjoint (Hermitian conjugate)

Suppose \(A\) is any linear operator on a Hilbert space, \(V\). It turns out that there exists a unique linear operator \(A^{\dagger}\) on \(V\) such that for all vectors \(|v\rangle,|w\rangle \in V\),

\[ (|v\rangle, A|w\rangle)=\left(A^{\dagger}|v\rangle,|w\rangle\right) \]

This linear operator is known as the adjoint or Hermitian conjugate of the operator \(A\). From the definition it is easy to see that \((A B)^{\dagger}=B^{\dagger} A^{\dagger}\).

By convention, if \(|v\rangle\) is a vector, then we define \(|v\rangle^{\dagger} \equiv\langle v|\). With this definition it is not difficult to see that \((A|v\rangle)^{\dagger}=\langle v| A^{\dagger}\).

Theorem 2.1.29 : Anti-linearity of the adjoint

The adjoint operation is anti-linear,

\[ \left(\sum_{i} a_{i} A_{i}\right)^{\dagger}=\sum_{i} a_{i}^{*} A_{i}^{\dagger} . \]

Proof

From the defining relation of the adjoint in Definition 2.1.28, for all vectors \(\phi,\psi\),

\[ \langle \phi, \left(\sum_{i} a_i A_i\right)\psi \rangle = \sum_i a_i\langle \phi,A_i\psi\rangle = \sum_i \langle a_i^{*}A_i^{\dagger}\phi, \psi\rangle = \langle \sum_i a_i^{*}A_i^{\dagger}\phi, \psi\rangle. \]

By uniqueness of the adjoint, this equals

\[ \langle \left(\sum_i a_i A_i\right)^{\dagger}\phi,\psi\rangle. \]

Therefore

\[ \left(\sum_i a_i A_i\right)^{\dagger}=\sum_i a_i^{*}A_i^{\dagger}. \]

Theorem 2.1.30 : Matrix representation of adjoint

In a matrix representation of an operator \(A\), the matrix of its adjoint is the conjugate-transpose of the matrix of \(A\). This is written as

\[ A^{\dagger}=(A^{*})^T. \]

Proof

Let \(\{e_1,\dots,e_n\}\) be the orthonormal basis used to represent the matrices. Write \(A e_j=\sum_{i=1}^n a_{ij}e_i\) and \(A^{\dagger} e_i=\sum_{j=1}^n b_{ji}e_j\). By the definition of the adjoint in Definition 2.1.28, for all \(i,j\), we have

\[ \langle A e_j,e_i\rangle=\langle e_j,A^{\dagger}e_i\rangle. \]

The left side equals \(a_{ij}\) by the definition of matrix entries in this basis. Expanding the right side gives

\[ \langle e_j,\sum_{k=1}^n b_{ki}e_k\rangle=\sum_{k=1}^n \overline{b_{ki}}\langle e_j,e_k\rangle=\overline{b_{ji}}. \]

Hence \(a_{ij}=\overline{b_{ji}}\), so \(b_{ji}=\overline{a_{ij}}\) for all \(i,j\). Therefore every entry of the matrix of \(A^{\dagger}\) is the conjugate-transpose of the corresponding entry of \(A\), so \(A^{\dagger}=\overline{A}^T=(A^{*})^T\).

Definition 2.1.31 : Hermitian or self-adjoint operator

An operator \(A\) whose adjoint is \(A\) is known as a Hermitian or self-adjoint operator.

Definition 2.1.32 : Projector and orthogonal complement

Let \(W\) be a \(k\)-dimensional vector subspace of the \(d\)-dimensional vector space \(V\). Using the Gram-Schmidt procedure it is possible to construct an orthonormal basis \(|1\rangle, \ldots,|d\rangle\) for \(V\) such that \(|1\rangle, \ldots,|k\rangle\) is an orthonormal basis for \(W\). By definition,

\[ P \equiv \sum_{i=1}^{k}|i\rangle\langle i| \]

is the projector onto the subspace \(W\). It is easy to check that this definition is independent of the orthonormal basis \(|1\rangle, \ldots,|k\rangle\) used for \(W\). From the definition it can be shown that \(|v\rangle\langle v|\) is Hermitian for any vector \(|v\rangle\), so \(P\) is Hermitian, \(P^{\dagger}=P\). We will often refer to the "vector space" \(P\), as shorthand for the vector space onto which \(P\) is a projector.

The orthogonal complement of \(P\) is the operator

\[ Q \equiv I-P. \]

The operator \(Q\) is a projector onto the vector space spanned by \(|k+1\rangle, \ldots,|d\rangle\). This vector space is also called the orthogonal complement of \(P\), and may also be denoted by \(Q\).

Theorem 2.1.33 : \(P^2=P\) iff projector

A linear map \(P\) is a projector if and only if

\[ P^{2}=P. \]

Proof

Assume \(P\) is a projector. By Definition 2.1.32, there is a subspace \(W\) with an orthonormal basis \(|1\rangle,\ldots,|k\rangle\) such that

\[ P \equiv \sum_{i=1}^{k}|i\rangle\langle i|. \]

Then

\[ P^{2} =\left(\sum_{i=1}^{k}|i\rangle\langle i|\right) \left(\sum_{j=1}^{k}|j\rangle\langle j|\right) =\sum_{i,j=1}^{k}|i\rangle\langle i|j\rangle\langle j| =\sum_{i=1}^{k}|i\rangle\langle i| =P. \]

Conversely, assume \(P^{2}=P\). For any vector \(|v\rangle\), define the decomposition \(|v\rangle=|w\rangle+|u\rangle\) with \(|w\rangle=P|v\rangle\) and \(|u\rangle=|v\rangle-P|v\rangle\). Then \(P|w\rangle=|w\rangle\) and \(P|u\rangle=0\). Hence \(P\) acts as identity on the subspace \(W\equiv\operatorname{Im}(P)\) and annihilates the complementary subspace \(U\equiv\ker(P)\). Choose an orthonormal basis \(|1\rangle,\ldots,|k\rangle\) of \(W\) and extend it to an orthonormal basis of the whole space. In that basis, \(P=\sum_{i=1}^{k}|i\rangle\langle i|\). Therefore \(P\) is a projector by Definition 2.1.32.

Definition 2.1.34 : Normal operator

An operator \(A\) is said to be normal if \(A A^{\dagger}=A^{\dagger} A\).

Theorem 2.1.35 : Spectral decomposition

Any normal operator \(M\), in the sense of Definition 2.1.34, on a vector space \(V\) is diagonal with respect to some orthonormal basis for \(V\). Conversely, any diagonalizable operator is normal.


In outer product notation, a normal operator admits the representation

\[ M=\sum_{i} \lambda_{i}|i\rangle\langle i|, \]

where \(\lambda_{i}\) are the eigenvalues of \(M\), \(\{|i\rangle\}\) is an orthonormal basis for \(V\), and each \(|i\rangle\) is an eigenvector of \(M\) with eigenvalue \(\lambda_{i}\). Equivalently, in terms of projectors,

\[ M=\sum_{i} \lambda_{i} P_{i}, \]

where \(P_{i}\) is the projector from Definition 2.1.32 onto the \(\lambda_{i}\) eigenspace of \(M\). These projectors satisfy

\[ \sum_{i} P_{i}=I, \qquad P_{i} P_{j}=\delta_{i j} P_{i}. \]

Proof

The converse is immediate, so it suffices to prove the forward implication.

We proceed by induction on the dimension \(d\) of \(V\). The case \(d=1\) is trivial. Let \(\lambda\) be an eigenvalue of \(M\), let \(P\) be the projector onto the \(\lambda\) eigenspace, and let \(Q\) be the projector onto the orthogonal complement. Then

\[ M=(P+Q) M(P+Q)=P M P+Q M P+P M Q+Q M Q. \]

Since \(P M P=\lambda P\) and \(M\) maps the subspace \(P\) into itself, we have \(Q M P=0\). To show \(P M Q=0\), let \(|v\rangle\) lie in the subspace \(P\).

\[ M M^{\dagger}|v\rangle=M^{\dagger} M|v\rangle=\lambda M^{\dagger}|v\rangle. \]

Thus \(M^{\dagger}|v\rangle\) has eigenvalue \(\lambda\), so it lies in the subspace \(P\). Hence \(Q M^{\dagger} P=0\), and taking adjoints gives \(P M Q=0\). Therefore

\[ M=P M P+Q M Q. \]

It remains to show that \(Q M Q\) is normal. Using \(Q^{2}=Q\), together with \(Q M=Q M Q\) and \(Q M^{\dagger}=Q M^{\dagger} Q\), we obtain

\[ \begin{align*} Q M Q Q M^{\dagger} Q &=Q M Q M^{\dagger} Q \\ &=Q M M^{\dagger} Q \\ &=Q M^{\dagger} M Q \\ &=Q M^{\dagger} Q M Q \\ &=Q M^{\dagger} Q Q M Q, \end{align*} \]

so \(Q M Q\) is normal. By the induction hypothesis, \(Q M Q\) is diagonal with respect to some orthonormal basis for the subspace \(Q\). Since \(P M P=\lambda P\) is already diagonal with respect to some orthonormal basis for \(P\), it follows that \(M=P M P+Q M Q\) is diagonal with respect to some orthonormal basis for the whole space \(V\).

Theorem 2.1.36 : Normal matrix is hermitian iff its eigenvalues are real

Let \(A\) be a normal matrix. Then \(A\) is Hermitian if and only if all eigenvalues of \(A\) are real.

Proof

If \(A\) is Hermitian and \(A|v\rangle = \lambda|v\rangle\) for some nonzero \(|v\rangle\), then

\[ \lambda \langle v|v\rangle=\langle v|A|v\rangle=\langle v|A^{\dagger}|v\rangle =\langle Av|v\rangle=\lambda^{*}\langle v|v\rangle. \]

Since \(\langle v|v\rangle>0\), it follows that \(\lambda=\lambda^{*}\), so \(\lambda\) is real.

Conversely, suppose \(A\) is normal and all eigenvalues of \(A\) are real. By Theorem 2.1.35, \(A\) has a diagonal representation on an orthonormal basis:

\[ A=\sum_i \lambda_i |i\rangle\langle i|, \]

where each \(\lambda_i\in\mathbb{R}\). Therefore

\[ A^{\dagger}=\sum_i \lambda_i^{*}|i\rangle\langle i|=\sum_i \lambda_i|i\rangle\langle i|=A. \]

Hence \(A\) is Hermitian.

Definition 2.1.37 : Unitary operator

A matrix \(U\) is said to be unitary if \(U^{\dagger} U=I\). Similarly an operator \(U\) is unitary if \(U^{\dagger} U=I\).

Concept 2.1.38 : Unitary properties

An operator is unitary, as in Definition 2.1.37, if and only if each of its matrix representations is unitary.

A unitary operator also satisfies

\[ U U^{\dagger}=I, \]

so \(U\) is normal in the sense of Definition 2.1.34 and has a spectral decomposition by Theorem 2.1.35.

Proof

Assume a matrix representation \(A\) of \(U\) in an orthonormal basis is unitary. Then \(A^{\dagger}A=I\) and \(AA^{\dagger}=I\). For any vectors \(x,y\) with coordinate columns \(c,d\),

\[ (Ux,Uy)=(A c)^{\dagger}(A d)=c^{\dagger}A^{\dagger}A d=c^{\dagger}d=(x,y). \]

Hence \(U\) preserves the inner product and is a unitary operator. Conversely, if \(U\) is unitary, then \((Ux,Uy)=(x,y)\) for all \(x,y\). In an orthonormal basis this gives \(A^{\dagger}A=I\), so \(A\) is unitary. If \(C\) is any unitary change-of-basis matrix, then

\[ [U]_{B'}=C^{\dagger}AC, [U]_{B'}^{\dagger}[U]_{B'}=C^{\dagger}A^{\dagger}CC^{\dagger}AC=I, \]

so every matrix representation is unitary.

Taking \(A\) unitary gives \(A^{-1}=A^{\dagger}\), hence \(U^{-1}=U^{\dagger}\) and \(U U^{\dagger}=I\).

Theorem 2.1.39 : Unitary operators preserve inner products

Geometrically, unitary operators from Definition 2.1.37 are important because they preserve inner products between vectors.

\[ (|v\rangle, |w\rangle)=(U|v\rangle, U|w\rangle) \]

Proof

To see this, let \(|v\rangle\) and \(|w\rangle\) be any two vectors. Then the inner product of \(U|v\rangle\) and \(U|w\rangle\) is the same as the inner product of \(|v\rangle\) and \(|w\rangle\).

\[ (U|v\rangle, U|w\rangle)=\langle v| U^{\dagger} U|w\rangle=\langle v| I|w\rangle=\langle v \mid w\rangle \]

Concept 2.1.40 : Outer product representation of a unitary

Theorem 2.1.39 suggests the following elegant outer product representation of any unitary \(U\). Let \(|v_{i}\rangle\) be any orthonormal basis set. Define \(|w_{i}\rangle \equiv U|v_{i}\rangle\), so \(|w_{i}\rangle\) is also an orthonormal basis set, since unitary operators preserve inner products. Note that

\[ U=\sum_{i}|w_{i}\rangle\langle v_{i}| \]

Conversely, if \(|v_{i}\rangle\) and \(|w_{i}\rangle\) are any two orthonormal bases, then it is easily checked that the operator \(U\) defined by

\[ U \equiv \sum_{i}|w_{i}\rangle\langle v_{i}| \]

is a unitary operator in the sense of Definition 2.1.37.

Theorem 2.1.41 : Eigenvalues of unitary matrix

All eigenvalues of a unitary matrix, in the sense of Definition 2.1.37, have modulus \(1\); equivalently every eigenvalue can be written as \(e^{i\theta}\) for some \(\theta\in\mathbb{R}\).

Proof

Let \(U\) be unitary and let \(Uv=\lambda v\) for an eigenpair with \(v\neq 0\). Since \(U^{\dagger}U=I\), we have \(\|Uv\|^2=\langle Uv,Uv\rangle=\langle v,U^{\dagger}Uv\rangle=\langle v,v\rangle=\|v\|^2\). By the eigenvalue equation, \(\|Uv\|^2=\|\lambda v\|^2=|\lambda|^2\|v\|^2\). Combining the two equalities gives \(|\lambda|^2\|v\|^2=\|v\|^2\). Because \(v\neq 0\), we have \(\|v\|^2\neq 0\), so \(|\lambda|^2=1\) and therefore \(|\lambda|=1\). Hence \(\lambda=e^{i\theta}\) for some real \(\theta\).

Example 2.1.42 : Pauli matrices are hermitian and unitary

The Pauli matrices from Definition 2.1.11 are

\[ \sigma_x=\begin{pmatrix}0&1\\1&0\end{pmatrix},\quad \sigma_y=\begin{pmatrix}0&-i\\i&0\end{pmatrix},\quad \sigma_z=\begin{pmatrix}1&0\\0&-1\end{pmatrix}. \]

Each matrix is equal to its adjoint, so each is Hermitian.

\[ \sigma_x^*=\sigma_x,\quad \sigma_y^*=\sigma_y,\quad \sigma_z^*=\sigma_z. \]

Each matrix also squares to the identity,

\[ \sigma_x\sigma_x=\sigma_y\sigma_y=\sigma_z\sigma_z=I. \]

Therefore \(\sigma^*=\sigma^{-1}\) for \(\sigma\in\{\sigma_x,\sigma_y,\sigma_z\}\), and each Pauli matrix is unitary by Definition 2.1.37.

Theorem 2.1.43 : Change of basis matrix

Let \(A\) be an operator on \(V\) with matrix elements \(A'_{ij}=\langle v_i|A|v_j\rangle\) and \(A''_{ij}=\langle w_i|A|w_j\rangle\) in two orthonormal bases \((|v_i\rangle)\) and \((|w_i\rangle)\). Define \(C\) by \(C_{ij}=\langle v_i|w_j\rangle\). Then \(C\) is unitary in the sense of Definition 2.1.37 and \(A''=C^\dagger A' C\).

\[A''_{ij}=\sum_{k,\ell} C^*_{k i}A'_{k\ell}C_{\ell j}.\]

Proof

Since \(|w_j\rangle=\sum_\ell C_{\ell j}|v_\ell\rangle\) and \(\langle w_i|=\sum_k C^*_{k i}\langle v_k|\), we have

\[ A''_{ij}=\langle w_i|A|w_j\rangle= \sum_{k,\ell}C^*_{k i}A'_{k\ell}C_{\ell j} =\left(C^\dagger A' C\right)_{ij}. \]

Therefore \(A''=C^\dagger A' C\). Because each basis is orthonormal,

\[\sum_k C^*_{k i}C_{k j}=\delta_{ij}.\]

so \(C^\dagger C=I\).

Definition 2.1.44: Positive operator, positive definite operator

A positive operator \(A\) is defined to be an operator such that for any vector \(|v\rangle\), \((|v\rangle, A|v\rangle)\) is a real, non-negative number.

If \((|v\rangle, A|v\rangle)\) is strictly greater than zero for all \(|v\rangle \neq 0\), then \(A\) is positive definite.

Theorem 2.1.45 : Hermiticity of positive operators

Any positive operator, as in Definition 2.1.44, is necessarily Hermitian. Therefore, by the spectral decomposition in Theorem 2.1.35, it can be written as

\[ A=\sum_i \lambda_i |i\rangle\langle i|, \]

where all eigenvalues satisfy \(\lambda_i \ge 0\).

Proof

Let \(A\) be positive. Decompose \(A=B+i C\), where \(B=(A+A^{\dagger})/2\) and \(C=(A-A^{\dagger})/(2 i)\). Both \(B\) and \(C\) are Hermitian, so \(\langle\psi\rvert B \lvert\psi\rangle\) and \(\langle\psi\rvert C \lvert\psi\rangle\) are real.

By definition, positivity means that for every vector \(\lvert\psi\rangle\), the quadratic form \(\langle\psi\rvert A\lvert\psi\rangle\) is a real nonnegative number. Hence \(\langle\psi\rvert A\lvert\psi\rangle \in \mathbb{R}_{\ge 0}\) and therefore \(\operatorname{Im}\langle\psi\rvert A\lvert\psi\rangle=0\). Substituting \(A=B+i C\) gives

\[ \langle\psi\rvert A\lvert\psi\rangle=\langle\psi\rvert B\lvert\psi\rangle+i\langle\psi\rvert C\lvert\psi\rangle, \]

so the imaginary part is exactly \(\langle\psi\rvert C\lvert\psi\rangle\). Therefore for all \(\lvert\psi\rangle\), \(\langle\psi\rvert C\lvert\psi\rangle=0\).

For any vectors \(\lvert\psi\rangle,\lvert\phi\rangle\), we have both \(\langle\psi+\phi\rvert C\lvert\psi+\phi\rangle=0\) and \(\langle\psi+i\phi\rvert C\lvert\psi+i\phi\rangle=0\). Expanding the first equation gives \(\langle\psi\rvert C\lvert\phi\rangle+\langle\phi\rvert C\lvert\psi\rangle=0\). Expanding the second equation gives \(i\langle\psi\rvert C\lvert\phi\rangle-i\langle\phi\rvert C\lvert\psi\rangle=0\). Combining these equations yields \(\langle\psi\rvert C\lvert\phi\rangle=\langle\phi\rvert C\lvert\psi\rangle=0\). Therefore every matrix element of \(C\) is zero, so \(C=0\). Hence \(A=B\), so \(A\) is Hermitian.

Since \(A\) is Hermitian, it has a spectral representation

\[ A=\sum_i \lambda_i |i\rangle\langle i|, \]

and for each eigenvector \(\lvert i\rangle\), \(\lambda_i=\langle i\rvert A\lvert i\rangle\ge 0\), so each eigenvalue is nonnegative.

Theorem 2.1.46 : \(A^{\dagger}A\) is positive

For any operator \(A\), the operator \(A^{\dagger}A\) is positive in the sense of Definition 2.1.44.

Proof

For any vector \(|\psi\rangle\), we have \(\langle\psi, A^{\dagger}A|\psi\rangle\rangle = \langle A|\psi\rangle,A|\psi\rangle\rangle = \|A|\psi\rangle\|^2 \ge 0\), so \(A^{\dagger}A\) is positive.

2.1.8. Tensor Products

Definition 2.1.47 : Tensor product

Suppose \(V\) and \(W\) are vector spaces of dimension \(m\) and \(n\) respectively. For convenience we also suppose that \(V\) and \(W\) are Hilbert spaces. Then \(V \otimes W\) (read "\(V\) tensor \(W\)") is an \(mn\)-dimensional vector space.

The elements of \(V \otimes W\) are linear combinations of tensor products \(|v\rangle \otimes |w\rangle\) of elements \(|v\rangle\) of \(V\) and \(|w\rangle\) of \(W\). In particular, if \(|i\rangle\) and \(|j\rangle\) are orthonormal bases for the spaces \(V\) and \(W\) then \(|i\rangle \otimes |j\rangle\) is a basis for \(V \otimes W\).

We often use the abbreviated notations \(|v\rangle|w\rangle\), \(|v, w\rangle\), or \(|v w\rangle\) for the tensor product \(|v\rangle \otimes |w\rangle\). For example, if \(V\) is a two-dimensional vector space with basis vectors \(|0\rangle\) and \(|1\rangle\) then \(|0\rangle \otimes |0\rangle + |1\rangle \otimes |1\rangle\) is an element of \(V \otimes V\).

Definition 2.1.48 : Basic properties of tensor product

By definition the tensor product satisfies the following basic properties.

  1. For an arbitrary scalar \(z\) and elements \(|v\rangle\) of \(V\) and \(|w\rangle\) of \(W\).

    \[ z(|v\rangle \otimes|w\rangle)=(z|v\rangle) \otimes|w\rangle=|v\rangle \otimes(z|w\rangle). \]
  2. For arbitrary \(|v_{1}\rangle\) and \(|v_{2}\rangle\) in \(V\) and \(|w\rangle\) in \(W\).

    \[ \left(|v_{1}\rangle+|v_{2}\rangle\right) \otimes|w\rangle=|v_{1}\rangle \otimes|w\rangle+|v_{2}\rangle \otimes|w\rangle . \]
  3. For arbitrary \(|v\rangle\) in \(V\) and \(|w_{1}\rangle\) and \(|w_{2}\rangle\) in \(W\).

    \[ |v\rangle \otimes\left(|w_{1}\rangle+|w_{2}\rangle\right)=|v\rangle \otimes|w_{1}\rangle+|v\rangle \otimes|w_{2}\rangle . \]

Definition 2.1.49 : Tensor products of linear operators

For linear operators \(A\) on \(V\) and \(B\) on \(W\), their tensor product is the linear operator on \(V \otimes W\) denoted \(A \otimes B\). On pure tensors, it is defined by

\[ (A \otimes B)(|v\rangle \otimes |w\rangle) \equiv A|v\rangle \otimes B|w\rangle . \]

The definition extends by linearity to all vectors in \(V \otimes W\) via

\[ (A \otimes B)\left(\sum_{i} a_{i}|v_{i}\rangle \otimes|w_{i}\rangle\right) \equiv \sum_{i} a_{i} A|v_{i}\rangle \otimes B|w_{i}\rangle . \]

With this extension, \(A \otimes B\) is a well-defined linear operator on \(V \otimes W\).

Definition 2.1.50 : Inner products in tensor products

The inner products on the spaces \(V\) and \(W\) can be used to define a natural inner product on \(V \otimes W\). Define

\[ \left(\sum_{i} a_{i}|v_{i}\rangle \otimes|w_{i}\rangle, \sum_{j} b_{j}|v_{j}^{\prime}\rangle \otimes|w_{j}^{\prime}\rangle\right) \equiv \sum_{i j} a_{i}^{*} b_{j}\langle v_{i} \mid v_{j}^{\prime}\rangle\langle w_{i} \mid w_{j}^{\prime}\rangle . \]

It can be shown that the function so defined is a well-defined inner product. From this inner product, the inner product space \(V \otimes W\) inherits the other structure we are familiar with, such as notions of an adjoint, unitarity, normality, and Hermiticity.

Definition 2.1.51 : Kronecker product

The Kronecker product gives a concrete matrix representation of tensor product. Suppose \(A\) is an \(m \times n\) matrix, and \(B\) is a \(p \times q\) matrix. Then we have the matrix representation:

\[ A \otimes B = \left[ \begin{array}{cccc} A_{11}B & A_{12}B & \ldots & A_{1n}B \\ A_{21}B & A_{22}B & \ldots & A_{2n}B \\ \vdots & \vdots & \ddots & \vdots \\ A_{m1}B & A_{m2}B & \ldots & A_{mn}B \end{array} \right] \]

In this representation, terms like \(A_{11}B\) denote \(p \times q\) submatrices whose entries are proportional to \(B\), with overall proportionality constant \(A_{11}\).

Definition 2.1.52 : Power notation of tensor products

The power notation \(|\psi\rangle^{\otimes k}\) means \(|\psi\rangle\) tensored with itself \(k\) times. For example,

\[ |\psi\rangle^{\otimes 2}=|\psi\rangle \otimes|\psi\rangle. \]

An analogous notation is also used for operators on tensor product spaces.

Example 2.1.53 : Tensor product is not commutative.

Using the definition of Pauli matrices, take

\[ X=\begin{pmatrix}0&1\\1&0\end{pmatrix},\quad Z=\begin{pmatrix}1&0\\0&-1\end{pmatrix},\quad I=\begin{pmatrix}1&0\\0&1\end{pmatrix}. \]

Using the matrix rule for tensor products from Definition 2.1.49, the products are

\[(X\otimes Z)=\begin{pmatrix}0\,Z&1\,Z\\1\,Z&0\,Z\end{pmatrix} =\begin{pmatrix} 0&0&1&0\\ 0&0&0&-1\\ 1&0&0&0\\ 0&-1&0&0 \end{pmatrix},\]
\[(I\otimes X)=\begin{pmatrix}1\,X&0\\0&1\,X\end{pmatrix} =\begin{pmatrix} 0&1&0&0\\ 1&0&0&0\\ 0&0&0&1\\ 0&0&1&0 \end{pmatrix},\]
\[(X\otimes I)=\begin{pmatrix}0\,I&1\,I\\1\,I&0\,I\end{pmatrix} =\begin{pmatrix} 0&0&1&0\\ 0&0&0&1\\ 1&0&0&0\\ 0&1&0&0 \end{pmatrix}.\]

To test commutativity, swap the factors in \(X\otimes Z\).

\[Z\otimes X=\begin{pmatrix} 0&1&0&0\\ 1&0&0&0\\ 0&0&0&-1\\ 0&0&-1&0 \end{pmatrix}.\]

Since \(X\otimes Z\neq Z\otimes X\), tensor products do not commute.

Theorem 2.1.54 : Conjugation, transpose, and adjoint distribute over tensor products

Complex conjugation, transposition, and adjoint operations distribute across tensor products.

\[ (A \otimes B)^{*}=A^{*}\otimes B^{*}, (A \otimes B)^{T}=A^{T}\otimes B^{T}, (A \otimes B)^{\dagger}=A^{\dagger}\otimes B^{\dagger}. \]

Proof

Take matrices \(A=(a_{ij})\) and \(B=(b_{kl})\). An entry of \(A\otimes B\) is indexed as

\[ (A\otimes B)_{(i,k),(j,l)}=a_{ij}b_{kl}. \]

Complex conjugation gives

\[ \overline{(A\otimes B)_{(i,k),(j,l)} }= \overline{a_{ij}b_{kl}}= \overline{a_{ij}}\,\overline{b_{kl}}= (A^{*}\otimes B^{*})_{(i,k),(j,l)}. \]

Hence \((A\otimes B)^{*}=A^{*}\otimes B^{*}\).

Taking transpose changes entries by swapping index pairs, so

\[ (A\otimes B)^{T}_{(i,k),(j,l)}=(A\otimes B)_{(j,l),(i,k)} =a_{ji}b_{lk}=(A^{T}\otimes B^{T})_{(i,k),(j,l)}. \]

Hence \((A\otimes B)^{T}=A^{T}\otimes B^{T}\).

The adjoint is the transpose of the conjugate, so we get \((A\otimes B)^{\dagger}=A^{\dagger}\otimes B^{\dagger}\).

Theorem 2.1.55 : Tensor product of unitary / hermitian / positive / projector operators

Let \(A\) and \(B\) be operators.

  1. If \(A\) and \(B\) are unitary, then \(A \otimes B\) is unitary.
  2. If \(A\) and \(B\) are Hermitian, then \(A \otimes B\) is Hermitian.
  3. If \(A\) and \(B\) are positive, then \(A \otimes B\) is positive.
  4. If \(A\) and \(B\) are projectors, then \(A \otimes B\) is a projector.

Proof

Using the identities in Theorem 2.1.54, we have \((A\otimes B)^\dagger = A^\dagger \otimes B^\dagger\) and \((X\otimes Y)(Z\otimes W)=(XZ)\otimes(YW)\).

  1. If \(A\) and \(B\) are unitary, then \(A^\dagger A=I\) and \(B^\dagger B=I\). Hence, \((A\otimes B)^\dagger(A\otimes B)=A^\dagger A\otimes B^\dagger B=I\otimes I=I\), so \(A\otimes B\) is unitary.
  2. If \(A\) and \(B\) are Hermitian, then \(A^\dagger=A\) and \(B^\dagger=B\). Hence, \((A\otimes B)^\dagger=A^\dagger\otimes B^\dagger=A\otimes B\), so \(A\otimes B\) is Hermitian.
  3. For positivity, write \(A=C^\dagger C\) and \(B=D^\dagger D\). Then \(A\otimes B=(C^\dagger\otimes D^\dagger)(C\otimes D)=(C\otimes D)^\dagger(C\otimes D)\), so \(A\otimes B\) is positive.
  4. If \(A\) and \(B\) are projectors, then \(A^2=A\), \(B^2=B\), and they are Hermitian. Therefore, \((A\otimes B)^2=A^2\otimes B^2=A\otimes B\) and \((A\otimes B)^\dagger=A\otimes B\) by the previous item. So \(A\otimes B\) is a projector.

Example 2.1.56 : Tensor power of Hadamard operator

The one-qubit Hadamard operator is

\[ H=\frac{1}{\sqrt{2}}[(|0\rangle+|1\rangle)\langle 0|+(|0\rangle-|1\rangle)\langle 1|]. \]

It may be rewritten as

\[ H=\frac{1}{\sqrt{2}} \sum_{x,y\in\{0,1\}}(-1)^{x\cdot y}|x\rangle\langle y|. \]

Taking the tensor power gives

\[ \begin{aligned} H^{\otimes n} &=\bigotimes_{j=1}^{n}\left(\frac{1}{\sqrt{2}} \sum_{x_j,y_j\in\{0,1\}}(-1)^{x_jy_j}|x_j\rangle\langle y_j|\right)\\ &=\frac{1}{\sqrt{2^n}} \sum_{x_1,\dots,x_n} \sum_{y_1,\dots,y_n} (-1)^{\sum_{j=1}^{n} x_jy_j}|x_1\cdots x_n\rangle\langle y_1\cdots y_n|\\ &=\frac{1}{\sqrt{2^n}} \sum_{x,y}(-1)^{x\cdot y}|x\rangle\langle y|. \end{aligned} \]

For \(n=2\) and basis order \(\{|00\rangle,|01\rangle,|10\rangle,|11\rangle\}\), the matrix is

\[ H^{\otimes 2}=\frac12 \begin{pmatrix} 1 & 1 & 1 & 1 \\ 1 & -1 & 1 & -1 \\ 1 & 1 & -1 & -1 \\ 1 & -1 & -1 & 1 \end{pmatrix}. \]

2.1.9. Operator Functions

Definition 2.1.57 : Matrix function on normal matrices

Given a function \(f:\mathbb{C}\to\mathbb{C}\), it is possible to define a corresponding matrix function on normal matrices, or on some subclass such as the Hermitian matrices, by the following construction. Let

\[ A=\sum_{a} a\,|a\rangle\langle a| \]

be a spectral decomposition for a normal operator \(A\). Define

\[ f(A) \equiv \sum_{a} f(a)\,|a\rangle\langle a| \]

A little thought shows that \(f(A)\) is uniquely defined.

Example 2.1.58 : Exponential of Pauli matrices

Let \(\vec v=(v_1,v_2,v_3)\) be any real, three-dimensional unit vector and let \(\theta\) be real. Define

\[ A=\vec v\cdot\vec{\sigma}=v_x\sigma_x+v_y\sigma_y+v_z\sigma_z. \]

Then

\[ \exp (i\theta A)=\cos(\theta)I+i\sin(\theta)A. \]

Proof

Let \(A=\vec v\cdot\vec{\sigma}=\sum_{j=1}^3 v_j\sigma_j\). The Pauli matrices satisfy \((\vec v\cdot\vec{\sigma})^2=I\) for any real unit vector \(\vec v\). Expand the exponential in a power series and separate even and odd powers.

\[ \exp (i\theta A)=\sum_{k=0}^{\infty}\frac{(i\theta)^{2k}}{(2k)!}A^{2k} +\sum_{k=0}^{\infty}\frac{(i\theta)^{2k+1}}{(2k+1)!}A^{2k+1} \]

Since \(A^2=I\), we have \(A^{2k}=I\) for even powers and \(A^{2k+1}=A\) for odd powers.

\[ \exp (i\theta A)=\left(\sum_{k=0}^{\infty}\frac{(-1)^k\theta^{2k}}{(2k)!}\right)I +i\left(\sum_{k=0}^{\infty}\frac{(-1)^k\theta^{2k+1}}{(2k+1)!}\right)A \]

The two series are \(\cos\theta\) and \(\sin\theta\).

\[ \exp (i\theta \vec v\cdot\vec{\sigma})=\cos\theta I+i\sin\theta\,\vec v\cdot\vec{\sigma} \]

Definition 2.1.59 : Trace of a matrix

The trace of \(A\) is defined to be the sum of its diagonal elements,

\[ \operatorname{tr}(A) \equiv \sum_{i} A_{i i} \]

Theorem 2.1.60 : Properties of trace

For arbitrary matrices \(A\), \(B\) and any complex number \(z\), the trace has the following properties.

  1. The trace is cyclic.

    \[ \operatorname{tr}(AB)=\operatorname{tr}(BA). \]
  2. The trace is linear.

    \[ \operatorname{tr}(A+B)=\operatorname{tr}(A)+\operatorname{tr}(B), \qquad \operatorname{tr}(zA)=z\operatorname{tr}(A). \]
  3. Consequently, for any unitary matrix \(U\), the trace is invariant under unitary similarity transformations.

    \[ \operatorname{tr}\left(UAU^{\dagger}\right)=\operatorname{tr}\left(U^{\dagger}UA\right)=\operatorname{tr}(A). \]

Proof

  1. For (1), expanding the trace as a sum of diagonal entries gives

    \[ \operatorname{tr}(AB)=\sum_i (AB)_{ii}=\sum_{i,j} A_{ij}B_{ji}=\sum_j (BA)_{jj}=\operatorname{tr}(BA). \]
  2. For (2), the same expansion gives the additivity formula.

    \[ \operatorname{tr}(A+B)=\sum_i (A+B)_{ii}=\sum_i A_{ii}+\sum_i B_{ii}=\operatorname{tr}(A)+\operatorname{tr}(B). \]

    It also gives the homogeneity formula.

    \[ \operatorname{tr}(zA)=\sum_i (zA)_{ii}=z\sum_i A_{ii}=z\operatorname{tr}(A). \]
  3. For (3), apply part 1 and use \(U^{\dagger}U=I\).

    \[ \operatorname{tr}\left(UAU^{\dagger}\right)=\operatorname{tr}\left(U^{\dagger}UA\right)=\operatorname{tr}(IA)=\operatorname{tr}(A). \]

Definition 2.1.61 : Trace of an operator

The trace of an operator \(A\) is defined to be the trace of any matrix representation of \(A\). By the invariance of the trace under unitary similarity transformations (Theorem 2.1.60), the trace of an operator is well defined.

Theorem 2.1.62 : \(\operatorname{tr}(A|\psi\rangle\langle\psi|)=\langle\psi|A|\psi\rangle\)

Suppose \(|\psi\rangle\) is a unit vector and \(A\) is an arbitrary operator. To evaluate \(\operatorname{tr}(A|\psi\rangle\langle\psi|)\), use the Gram-Schmidt procedure (Theorem 2.1.18) to extend \(|\psi\rangle\) to an orthonormal basis \(|i\rangle\) which includes \(|\psi\rangle\) as the first element. Then we have

\[ \begin{align*} \operatorname{tr}(A|\psi\rangle\langle\psi|) & =\sum_{i}\langle i| A|\psi\rangle\langle\psi \mid i\rangle \\ & =\langle\psi| A|\psi\rangle \end{align*} \]

This result, that \(\operatorname{tr}(A|\psi\rangle\langle\psi|)=\langle\psi|A|\psi\rangle\), is extremely useful in evaluating the trace of an operator.

Example 2.1.63 : Trace of pauli matrices

According to Definition 2.1.11, the Pauli matrices are given in matrix form by

\[ X=\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix},\quad Y=\begin{pmatrix} 0 & -i \\ i & 0 \end{pmatrix},\quad Z=\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}, \]

and the identity matrix is

\[ I=\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}. \]

The trace is the sum of the diagonal entries.

\[ \operatorname{tr}(X)=0+0=0,\quad \operatorname{tr}(Y)=0+0=0,\quad \operatorname{tr}(Z)=1-1=0. \]

So each Pauli matrix except \(I\) has trace zero.

Definition 2.1.64 : Hilbert-schmidt inner product on operators

Let \(L_{V}\) denote the vector space of linear operators on a Hilbert space \(V\). The Hilbert-Schmidt inner product, also known as the trace inner product, is defined for \(A, B \,\in L_{V}\) by

\[ (A, B) \equiv \operatorname{tr}(A^{\dagger} B). \]

This defines a natural inner product structure on \(L_{V}\) and turns it into a Hilbert space.

2.1.10. Commutator and Anti-Commutator

Definition 2.1.65 : Commutator, commutes

The commutator between two operators \(A\) and \(B\) is defined to be

\[ [A, B] \equiv A B-B A \]

If \([A, B]=0\), that is, \(A B=B A\), then we say that \(A\) and \(B\) commute.

Definition 2.1.66 : Anti-commutator, anti-commutes

The anti-commutator of two operators \(A\) and \(B\) is defined by

\[ \{A, B\} \equiv A B+B A \]

We say \(A\) anti-commutes with \(B\) if \(\{A, B\}=0\).

Theorem 2.1.67: Simultaneous diagonalization theorem

Suppose \(A\) and \(B\) are Hermitian operators. Then \([A, B]=0\) if and only if there exists an orthonormal basis such that both \(A\) and \(B\) are diagonal with respect to that basis. We say that \(A\) and \(B\) are simultaneously diagonalizable in this case.

Proof

You can (and should!) easily verify that if \(A\) and \(B\) are diagonal in the same orthonormal basis then \([A, B]=0\).

To show the converse, let \(|a, j\rangle\) be an orthonormal basis for the eigenspace \(V_{a}\) of \(A\) with eigenvalue \(a\). The index \(j\) is used to label possible degeneracies. Note that

\[ A B|a, j\rangle=B A|a, j\rangle=a B|a, j\rangle. \]

and therefore \(B|a, j\rangle\) is an element of the eigenspace \(V_{a}\).

Let \(P_{a}\) denote the projector onto the space \(V_{a}\) and define \(B_{a} \equiv P_{a} B P_{a}\). It is easy to see that the restriction of \(B_{a}\) to the space \(V_{a}\) is Hermitian on \(V_{a}\), and therefore has a spectral decomposition in terms of an orthonormal set of eigenvectors which span the space \(V_{a}\). Let us call these eigenvectors \(|a, b, k\rangle\), where the indices \(a\) and \(b\) label the eigenvalues of \(A\) and \(B_{a}\), and \(k\) is an extra index to allow for the possibility of a degenerate \(B_{a}\).

Note that \(B|a, b, k\rangle\) is an element of \(V_{a}\), so \(B|a, b, k\rangle=P_{a} B|a, b, k\rangle\). Moreover we have \(P_{a}|a, b, k\rangle=|a, b, k\rangle\), so

\[ B|a, b, k\rangle=P_{a} B P_{a}|a, b, k\rangle=b|a, b, k\rangle. \]

It follows that \(|a, b, k\rangle\) is an eigenvector of \(B\) with eigenvalue \(b\), and therefore \(|a, b, k\rangle\) is an orthonormal set of eigenvectors of both \(A\) and \(B\), spanning the entire vector space on which \(A\) and \(B\) are defined. That is, \(A\) and \(B\) are simultaneously diagonalizable.

Example 2.1.68 : Commutation relations for the Pauli matrices

The commutation relations

\[ \begin{equation*} [X, Y]=2 i Z ; \quad[Y, Z]=2 i X ; \quad[Z, X]=2 i Y \end{equation*} \]

holds.

There is an elegant way of writing this using \(\epsilon_{j k l}\), the antisymmetric tensor on three indices, for which \(\epsilon_{j k l}=0\) except for \(\epsilon_{123}=\epsilon_{231}=\epsilon_{312}=1\), and \(\epsilon_{321}=\epsilon_{213}=\epsilon_{132}=-1\):

\[ \begin{equation*} \left[\sigma_{j}, \sigma_{k}\right]=2 i \sum_{l=1}^{3} \epsilon_{j k l} \sigma_{l} . \end{equation*} \]

Example 2.1.69 : Multiplication identity for Pauli matrices

Let \(j, k=1,2,3\). The Pauli matrices satisfy

\[ \sigma_{j} \sigma_{k}=\delta_{j k} I+i \sum_{l=1}^{3} \epsilon_{j k l} \sigma_{l} \]

Example 2.1.70 : Anti-commutation relations for the Pauli matrices

For \(i \neq j\) chosen from the set \(\{1,2,3\}\), the anti-commutation relation

\[ \left\{\sigma_i,\sigma_j\right\}=0 \]

holds.

Also, for \(i=0,1,2,3\)

\[ \sigma_i^2=I. \]

A compact summary for \(i,j \in \{1,2,3\}\) is

\[ \left\{\sigma_i,\sigma_j\right\}=2\delta_{ij}I. \]

In particular, when \(i \neq j\), the anti-commutator is \(0\), and when \(i=j\), it is \(2I\).

Theorem 2.1.71 : Commutator relations

  1. For operators \(A\) and \(B\),

    \[ AB=\frac{[A, B]+\{A, B\}}{2}. \]
  2. If \([A, B]=0\), \(\{A, B\}=0\), and \(A\) is invertible, then \(B=0\).

  3. For all operators \(A\) and \(B\),

    \[ [A, B]^{\dagger}=[B^{\dagger}, A^{\dagger}]. \]
  4. The commutator is anti-symmetric,

    \[ [A, B]=-[B, A]. \]
  5. If \(A\) and \(B\) are Hermitian, then \(i[A, B]\) is Hermitian.

Proof

  1. The definitions \([A, B]=AB-BA\) and \(\{A, B\}=AB+BA\) imply \([A, B]+\{A, B\}=2AB\). Dividing by \(2\) gives \(AB=\frac{[A, B]+\{A, B\}}{2}\).

  2. Using the hypotheses and (1) gives \(AB=0\). Multiplying on the left by \(A^{-1}\) gives \(B=A^{-1}AB=0\).

  3. By definition \([A, B]^{\dagger}=(AB-BA)^{\dagger}\). Using \((XY)^{\dagger}=Y^{\dagger}X^{\dagger}\) and linearity, this equals \(B^{\dagger}A^{\dagger}-A^{\dagger}B^{\dagger}=[B^{\dagger}, A^{\dagger}]\).

  4. By definition \([B, A]=BA-AB\), so \(-[B, A]=AB-BA=[A, B]\).

  5. Hermitian means \(A^{\dagger}=A\) and \(B^{\dagger}=B\). Taking adjoints, \(\left(i[A, B]\right)^{\dagger}=-i[A, B]^{\dagger}\). By item (3), this is \(-i[B^{\dagger}, A^{\dagger}]\), which by item (4) is \(i[A, B]\). Hence \(\left(i[A, B]\right)^{\dagger}=i[A, B]\), so \(i[A, B]\) is Hermitian.

2.1.11. The Polar and Singular Value Decomposition

Theorem 2.1.72 : Polar decomposition

Let \(A\) be a linear operator on a vector space \(V\). Then there exists a unitary \(U\) and positive operators \(J\) and \(K\) such that

\[ A = UJ = KU. \]

The unique positive operators \(J\) and \(K\) satisfying these equations are defined by \(J \equiv \sqrt{A^{\dagger}A}\) and \(K \equiv \sqrt{AA^{\dagger}}\). Moreover, if \(A\) is invertible then \(U\) is unique.

Proof

Let \(J \equiv \sqrt{A^{\dagger}A}\).

Since \(A^{\dagger}A\) is positive, \(J\) exists and is the unique positive square root of \(A^{\dagger}A\).

We first show that \(\ker(A)=\ker(J)\).

If \(A|\psi\rangle=0\), then \(J^2|\psi\rangle=(A^\dagger A)|\psi\rangle=0\), so

\[ \|J|\psi\rangle\|^2 = \langle \psi|J^2|\psi\rangle = 0, \]

hence \(J|\psi\rangle=0\).

Conversely, if \(J|\psi\rangle=0\), then

\[ 0 = \langle \psi|J^2|\psi\rangle = \langle \psi|A^\dagger A|\psi\rangle = \|A|\psi\rangle\|^2, \]

so \(A|\psi\rangle=0\). Thus \(\ker(A)=\ker(J)\).

Now define a linear map \(U\) on \(\operatorname{im}(J)\) by \(U(J|\psi\rangle)\equiv A|\psi\rangle\).

This is well-defined: if \(J|\psi\rangle=J|\phi\rangle\), then \(J(|\psi\rangle-|\phi\rangle)=0\), so \(|\psi\rangle-|\phi\rangle\in \ker(J)=\ker(A)\), and therefore \(A|\psi\rangle=A|\phi\rangle\).

Next, \(U\) preserves norms on \(\operatorname{im}(J)\). For any \(|\psi\rangle\),

\[ \|U(J|\psi\rangle)\|^2 = \|A|\psi\rangle\|^2 = \langle \psi|A^\dagger A|\psi\rangle = \langle \psi|J^2|\psi\rangle = \|J|\psi\rangle\|^2. \]

Hence \(U\) is an isometry from \(\operatorname{im}(J)\) onto \(\operatorname{im}(A)\). Extend this isometry to a unitary operator on all of \(V\) by choosing an orthonormal basis of \(\operatorname{im}(J)^\perp\) and mapping it to an orthonormal basis of \(\operatorname{im}(A)^\perp\).

Then for every \(|\psi\rangle\), we have \(UJ|\psi\rangle=A|\psi\rangle\), so \(A=UJ\).

Now define \(K\equiv \sqrt{AA^\dagger}\).

Since

\[ AA^\dagger = (UJ)(UJ)^\dagger = UJ^2U^\dagger, \]

and \(K\) is the unique positive square root of \(AA^\dagger\), we have \(K=UJU^\dagger\).

Therefore \(KU=(UJU^\dagger)U=UJ=A\), so \(A=UJ=KU\).

It remains to prove uniqueness of \(J\) and \(K\). If \(A=UP\) with \(U\) unitary and \(P\) positive, then

\[ A^\dagger A = P\,U^\dagger U\,P = P^2. \]

Since \(P\) is positive and \(J=\sqrt{A^\dagger A}\) is the unique positive square root of \(A^\dagger A\), it follows that \(P=J\). Thus \(J\) is unique.

Similarly, if \(A=QU\) with \(Q\) positive, then \(AA^\dagger=Q^2\), so by uniqueness of the positive square root, \(Q=K\). Hence \(K\) is unique.

Finally, if \(A\) is invertible, then \(A^\dagger A\) is invertible, so \(J\) is invertible. From \(A=UJ\) we get \(U=AJ^{-1}\), so \(U\) is unique.

Theorem 2.1.73 : Singular value decomposition

Let \(A\) be a square matrix. Then there exist unitary matrices \(U\) and \(V\), and a diagonal matrix \(D\) with non-negative entries such that

\[ A=U D V \]

The diagonal elements of \(D\) are called the singular values of \(A\).

Proof

By the polar decomposition (Theorem 2.1.72), there exists a unitary matrix \(U_0\) and a Hermitian positive semidefinite matrix \(P\) such that \(A=U_0 P\). Since \(P\) is Hermitian positive semidefinite, the spectral theorem (Theorem 2.1.35) gives a unitary matrix \(V\) and a diagonal matrix \(D\) with non-negative entries for which \(P=V^{\dagger} D V\). Substituting into \(A=U_0 P\) yields \(A=(U_0 V^{\dagger}) D V\). Set \(U:=U_0 V^{\dagger}\), which is unitary, and we get \(A=U D V\). The diagonal entries of \(D\) are therefore the singular values of \(A\).

Example 2.1.74 : Polar decomposition of positive, unitary, and hermitian matrices

  • For a positive matrix \(P\), the polar decomposition is

    \[ P = I P \]

    so the unitary part is \(I\) and the positive part is \(P\).

  • For a unitary matrix \(U\),

    \[ U = U I \]

    so the unitary part is \(U\) and the positive part is \(I\).

  • For a hermitian matrix \(H\), if

    \[ H = \sum_i \lambda_i |i\rangle \langle i|, \]

    then one polar decomposition is

    \[ H = \left(\sum_i \operatorname{sgn}(\lambda_i) |i\rangle \langle i|\right) \left(\sum_i |\lambda_i| |i\rangle \langle i|\right) \]

    Thus the positive part is \(|H| = \sqrt{H^2}\), and the unitary part records the signs of the eigenvalues of \(H\).

Example 2.1.75: Polar decomposition of a normal matrix in outer product representation

Let \(M\) be a normal matrix. By Theorem 2.1.35, there is an orthonormal basis \(\{|i\rangle\}\) such that

\[ M=\sum_i \lambda_i |i\rangle\langle i|. \]

Write each nonzero eigenvalue in polar form as \(\lambda_i=|\lambda_i|e^{i\theta_i}\). Then

\[ J=\sqrt{M^\dagger M}=\sum_i |\lambda_i| |i\rangle\langle i|. \]

A corresponding unitary part is

\[ U=\sum_{\lambda_i \neq 0} e^{i\theta_i} |i\rangle\langle i|+\sum_{\lambda_i=0} e^{i\phi_i}|i\rangle\langle i|, \]

where each \(e^{i\phi_i}\) has modulus \(1\). Therefore

\[ M=UJ=JU. \]

In particular, if \(M\) is invertible, then \(U\) is uniquely determined and

\[ U=\sum_i \frac{\lambda_i}{|\lambda_i|}|i\rangle\langle i|. \]