Quantum Information Theory · Chapter 1

Introduction to Quantum Information

Up to now, quantum states have been described as unit vectors (kets). That works beautifully when you know exactly what state you have — but real experiments are full of uncertainty and noise, and sometimes you only hold part of a larger system. This chapter introduces the density matrix, a richer language that handles all of these situations gracefully, and reformulates the postulates of quantum mechanics in its terms.

≈ 35 min read7 worked examplesOriginal PDF ↗

So far this course has focused almost entirely on quantum algorithms. In the beginning of the course we described the model of quantum information that we have used up to this point. Specifically, the model describes states of qubits as unit vectors, and the allowed operations come from a fairly restricted set (unitary operations and measurements of a simple type). This description was sufficient for discussing quantum algorithms, so it has not been necessary to extend it until now. This chapter presents an alternate formulation using a tool known as the density operator or density matrix. This alternative formulation is mathematically equivalent to the state vector approach, but provides a much more convenient language for thinking about some commonly encountered scenarios in quantum mechanics.

To describe the model of quantum information generally, some notation will be helpful. First, for any finite non-empty set \(\Sigma\), let \(\mathbb{C}(\Sigma)\) denote the vector space of all column vectors indexed by \(\Sigma\). Just as before, elements of such spaces are denoted by kets, e.g. \(\ket{\psi} \in \mathbb{C}(\Sigma)\), and scripted letters such as \(\mathcal{A},\mathcal{B},\mathcal{X},\mathcal{Y}\), etc., are generally used. For example, we might write \(\mathcal{X}=\mathbb{C}(\{0,1\}^n)\) to indicate that the space \(\mathcal{X}\) is indexed by the set \(\{0,1\}^n\), and simply use the symbol \(\mathcal{X}\) to refer to that space from that point on. Although it will seldom be necessary, we may also write \(\mathbb{C}(\Sigma)^{\dagger}\) or \(\mathcal{X}^{\dagger}\) (for example) to refer to the space of all row vectors (or bra vectors) \(\bra{\psi}\), for \(\ket{\psi} \in \mathbb{C}(\Sigma)\) or \(\ket{\psi} \in \mathcal{X}\). You will also see things written with a star \(*\) instead of a dagger \(\dagger\) sometimes, as in \(\mathcal{X}^*\).

Also similar to before, when we consider a particular quantum system we assume that it has some finite set \(\Sigma\) of associated classical states. We will typically use the term register from now on to refer to abstract physical devices (such as qubits or collections of qubits). Associated with any register having classical state set \(\Sigma\) is the vector space \(\mathbb{C}(\Sigma)\). It is sometimes helpful, but certainly not necessary, to use the same letter (in different fonts) to refer to a register and its associated space. For example, register X may have associated space \(\mathcal{X}\).

1.1 Density Matrices

So far nothing is new except a little bit of notation. In order to describe what really is new, it is helpful to start with a special case. Suppose that in the “old” representation, a register X having classical state set \(\Sigma\) is in a quantum state \(\ket{\psi} \in \mathcal{X}\) for \(\mathcal{X} = \mathbb{C}(\Sigma)\). The “new” way of representing this state will be:

\[ \ket{\psi}\bra{\psi} \]

We have seen objects like this before (in the analysis of Grover's algorithm). It is effectively a matrix. For example, suppose \(\Sigma = \{0,1\}\) and \(\ket{\psi}=\alpha\ket{0}+\beta\ket{1}\). Then

\[ \ket{\psi}=\begin{pmatrix} \alpha \\ \beta \end{pmatrix} \quad \text{and} \quad \bra{\psi} = \begin{pmatrix} \overline{\alpha} & \overline{\beta} \end{pmatrix} \]

so

\[ \ket{\psi}\bra{\psi} =\begin{pmatrix} \alpha \\ \beta \end{pmatrix} \begin{pmatrix} \overline{\alpha} & \overline{\beta} \end{pmatrix} = \begin{pmatrix} \alpha\overline{\alpha} & \alpha\overline{\beta} \\ \overline{\alpha} \beta & \beta\overline{\beta} \end{pmatrix} = \begin{pmatrix} |\alpha|^2 & \alpha \overline{\beta} \\ \overline{\alpha}\beta & |\beta|^2 \end{pmatrix} \]

This is called a density matrix or density operator. (The term operation usually just means a linear map from a space to itself.) Not all density operators have the special form \(\ket{\psi}\bra{\psi}\) for some unit vector \(\ket{\psi}\), as we will see. All of the quantum states we have considered so far in the course have actually been of this special kind of state.

Suppose we have a probability distribution \((p_1,\ldots,p_k)\), for some positive integer \(k\), as well as unit vectors \(\ket{\psi_1},\ldots,\ket{\psi_k} \in \mathcal{X}\), where \(\mathcal{X}=\mathbb{C}(\Sigma)\) is the space corresponding to some register X. Somebody randomly chooses \(j \in \{1,\ldots,k\}\) according to the probability distribution \((p_1,\ldots,p_k)\), prepares the register X in the state \(\ket{\psi_j}\) for the chosen \(j\), and then hands you X without telling you the value of \(j\). The collection \(\{(p_1,\ket{\psi_1}),\ldots,(p_k,\ket{\psi_k})\}\) that describes the different possible states \(\ket{\psi_j}\) along with their associated probabilities is called a mixture. In the “old” representation, there is no convenient way to represent this beyond specifying the mixture. In the “new” representation, the density matrix corresponding to the above mixture is:

\[ \rho=\sum_{j=1}^k p_j \ket{\psi_j}\bra{\psi_j} \]

In other words, it is meaningful to take a weighted average of the pure states \(\ket{\psi_j}\bra{\psi_j}\). More precisely, suppose a quantum system is in one of a number of states \(\ket{\psi_i}\), where \(i\) is an index, with respective probabilities \(p_i\). We shall call \(\{p_i,\ket{\psi_i}\}\) an ensemble of pure states.

A density matrix is a bookkeeping device for uncertainty. If you know your qubit's state exactly, \(\ket{\psi}\bra{\psi}\) is just a fancy rewrite of the ket. The payoff comes when you don't know it exactly — the density matrix lets you fold a whole probability distribution over states into a single matrix and keep doing quantum mechanics as usual.
Worked Example

Suppose Alice has a qubit A. She flips a fair coin: if the result is Heads she prepares A in the state \(\ket{0}\), and if the result is Tails she prepares A in the state \(\ket{1}\). She gives Bob the qubit without revealing the result of the coin flip. Bob's knowledge of the qubit is described by the density matrix

\[ \frac{1}{2}\ket{0}\bra{0}+ \frac{1}{2}\ket{1}\bra{1} = \begin{pmatrix} \frac{1}{2} & 0 \\ 0 & \frac{1}{2} \end{pmatrix} \]
Worked Example

Suppose Alice has a qubit A as in the previous example. As before she flips a fair coin, but now if the result is Heads she prepares A in the state \(\ket{+}=\frac{1}{\sqrt{2}} \ket{0} +\frac{1}{\sqrt{2}}\ket{1}\), and if the result is Tails she prepares A in the state \(\ket{-}=\frac{1}{\sqrt{2}}\ket{0}-\frac{1}{\sqrt{2}}\ket{1}\). Bob's knowledge of the qubit is now described by the density matrix

\[ \frac{1}{2}\ket{+}\bra{+} + \frac{1}{2}\ket{-}\bra{-} = \frac{1}{2}\begin{pmatrix} \frac{1}{2} & \frac{1}{2} \\ \frac{1}{2} & \frac{1}{2} \end{pmatrix} + \frac{1}{2} \begin{pmatrix} \frac{1}{2} & -\frac{1}{2} \\ -\frac{1}{2} & \frac{1}{2} \end{pmatrix}= \begin{pmatrix} \frac{1}{2} & 0 \\ 0 & \frac{1}{2} \end{pmatrix} \]

Same as before!

The previous two examples demonstrate that different mixtures can yield precisely the same density matrix. This is not an accident, but rather is one of the strengths of the density matrix formalism. A given density matrix in essence represents a perfect description of the state of a quantum system — two different mixtures can be distinguished (in a statistical sense) if and only if they yield different density matrices. Whether one uses the density operator language or the state vector language is a matter of taste, since both give the same results; however, it is sometimes much easier to approach problems from one point of view rather than the other.

This is a subtle and important point: the “Heads/Tails on \(\ket{0},\ket{1}\)” recipe and the “Heads/Tails on \(\ket{+},\ket{-}\)” recipe are physically indistinguishable. No measurement Bob can perform will ever tell them apart, because they produce the identical density matrix. The density matrix captures exactly what is knowable about a system — no more, no less.

Typically, lowercase Greek letters such as \(\rho,\xi,\sigma\) and \(\tau\) are used to denote density matrices. The state of a system that corresponds to a given density matrix is called a mixed state.

A quantum system whose state \(\ket{\psi}\) is known exactly is said to be in a pure state. In this case the density operator is simply \(\rho=\ket{\psi}\bra{\psi}\). Otherwise, \(\rho\) is in a mixed state; it is said to be a mixture of the different pure states in the ensemble for \(\rho\). Note: sometimes people may use the term ‘mixed’ state as a catch-all to include both pure and mixed quantum states. The term ‘pure state’ is often used in reference to a state vector \(\ket{\psi}\), to distinguish it from a density operator \(\rho\).

Finally, imagine a quantum system is prepared in the state \(\rho_i\) with probability \(p_i\). It is not difficult to convince yourself that the system may be described by the density matrix \(\sum_i p_i\rho_i\). A proof of this is to suppose that \(\rho_i\) arises from some ensemble \(\{p_{ij},\ket{\psi_{ij}}\}\) (note that \(i\) is fixed) of pure states, so the probability for being in the state \(\ket{\psi_{ij}}\) is \(p_ip_{ij}\). The density matrix for the system is thus

\[ \begin{aligned} \rho&=\sum_{ij} p_ip_{ij} \ket{\psi_{ij}}\bra{\psi_{ij}}\\ &=\sum_i p_i\rho_i \end{aligned} \]

where we have used the definition \(\rho_i=\sum_j p_{ij}\ket{\psi_{ij}}\bra{\psi_{ij}}\). We say that \(\rho\) is a mixture of the states \(\rho_i\) with probabilities \(p_i\). This concept of a mixture comes up repeatedly in the analysis of problems like quantum noise, where the effect of the noise is to introduce ignorance into our knowledge of the quantum state. A simple example is provided by the measurement scenario. Imagine that, for some reason, our record of the result \(m\) of the measurement was lost. We would have a quantum system in the state \(\rho_m\) with probability \(p(m)\), but would no longer know the actual value of \(m\). The state of such a quantum system would therefore be described by the density operator

\[ \begin{aligned} \rho&=\sum_m p(m)\rho_m\\ &=\sum_m \operatorname{Tr}(M_m^{\dagger}M_m\rho)\frac{M_m\rho M_m^{\dagger}}{\operatorname{Tr}(M_m^{\dagger}M_m\rho)}\\ &=\sum_m M_m\rho M_m^{\dagger} \end{aligned} \]

General properties of density matrices

We now move away from this description to develop an intrinsic characterization of the density operator that does not rely on an ensemble interpretation. This allows us to complete the program of giving a description of quantum mechanics that does not take as its foundation the state vector.

  1. Trace Condition: The trace of a density matrix is 1.
    (The trace of a matrix is the sum of its diagonal entries.) In fact, the diagonal entries describe precisely the probability distribution that would result if the system in question were measured (with respect to the restricted type of measurement we have so far considered). The fact that the trace is a linear function, together with the useful formula \(\operatorname{Tr}(AB)=\operatorname{Tr}(BA)\) (which holds for any choice of matrices \(A\) and \(B\) for which the product \(AB\) is square), makes the above fact easy to verify for any given mixture: \[ \operatorname{Tr}\left(\sum_{j=1}^k p_j\ket{\psi_j}\bra{\psi_j}\right)=\sum_{j=1}^k p_j\operatorname{Tr}(\ket{\psi_j}\bra{\psi_j}) = \sum_{j=1}^k p_j \operatorname{Tr}(\braket{\psi_j|\psi_j}) = \sum_{j=1}^k p_j\braket{\psi_j|\psi_j} = 1 \]
  2. Positivity Condition: Every density matrix is positive semi-definite.
    In general, a square matrix \(A\) is positive semi-definite if \(\braket{\psi|A|\psi}\) is a non-negative real number for every vector \(\ket{\psi}\). An equivalent definition is that \(A\) is positive semi-definite if (i) \(A=A^{\dagger}\) (i.e., \(A\) is Hermitian), and (ii) all eigenvalues of \(A\) are non-negative real numbers. Again this condition is easy to check for mixtures: if \[ \rho=\sum_{j=1}^k p_j \ket{\psi_j}\bra{\psi_j} \] and \(\ket{\phi}\) is any vector, we have \[ \braket{\phi|\rho|\phi} = \sum_{j=1}^k p_j\braket{\phi|\psi_j} \braket{\psi_j|\phi}=\sum_{j=1}^k p_j|\braket{\phi|\psi_j}|^2 \geq 0 \] You can interpret the above facts as the defining properties of density matrices: by definition, a density matrix is any matrix that is positive semi-definite and has trace equal to 1. Given such a matrix, it is possible to find a mixture that yields the given density matrix by letting \(p_1,\ldots,p_k\) be the nonzero eigenvalues and \(\ket{\psi_1},\ldots,\ket{\psi_k}\) the corresponding eigenvectors. Suppose \(\rho\) is any operator satisfying the trace and positivity conditions. Since \(\rho\) is positive, it must have a spectral decomposition \[ \rho=\sum_j\lambda_j\ket{j}\bra{j} \] where the vectors \(\ket{j}\) are orthogonal, and \(\lambda_j\) are real, non-negative eigenvalues of \(\rho\). From the trace condition we see that \(\sum_j\lambda_j=1\). Therefore, a system in the state \(\ket{j}\) with probability \(\lambda_j\) will have density operator \(\rho\). That is, the ensemble \(\{\lambda_j,\ket{j}\}\) is an ensemble of states giving rise to the density operator \(\rho\). This provides a characterization of density operators that is intrinsic to the operator itself: we can define a density operator to be a positive operator \(\rho\) which has trace equal to one. Making this definition allows us to reformulate the postulates of quantum mechanics in the density operator picture.
Here is the punchline of the whole formalism: forget ensembles and mixtures entirely. A density matrix is simply any matrix that (1) is positive semi-definite and (2) has trace 1. Those two conditions are necessary and sufficient. Every such matrix corresponds to a physically valid state, and its eigenvalue decomposition hands you one ensemble that produces it.

1.2 Operations on Density Matrices

In our “old” description of quantum information, a unitary operation \(U\) applied to a state \(\ket{\psi}\) resulted in the state \(U\ket{\psi}\). In the density matrix description, a unitary operation \(U\) applied to a pure state \(\ket{\psi}\bra{\psi}\) results in the density matrix

\[ U\ket{\psi} \bra{\psi}U^{\dagger} \]

This is consistent with the observation that \((U\ket{\psi})^{\dagger}=\bra{\psi}U^{\dagger}\). More generally, applying \(U\) to the mixed state \(\rho\) results in the state \(U\rho U^{\dagger}\). You can easily check that the two required conditions of density matrices are necessarily met by this new matrix.

We can, however, consider a much more general set of possible operations than just unitary operations. Any operation \(\Phi\) that can be written as

\[ \Phi(\rho)=\sum_{j=1}^k A_j\rho A_j^{\dagger} \]

for some collection of matrices \(A_1,\ldots,A_k\) satisfying

\[ \sum_{j=1}^k A_j^{\dagger}A_j = I \]

represents an operation that can (in an idealized sense) be physically implemented. Such operations are called admissible operations. (There are several other names that are used as well, such as completely positive trace preserving operations and other variations on these words.)

If \(\rho\) is a density matrix and \(\Phi\) is admissible, then \(\Phi(\rho)\) is also a density matrix. In fact a somewhat stronger property holds, which is that if \(\Phi\) is applied to just part of a larger system whose state is described by some density matrix, then the resulting state will also be described by a density matrix.

Worked Example

Suppose we have a single qubit X. Consider the operation that corresponds to measuring the qubit and forgetting the result. An admissible operation that describes this process is given by

\[ A_0=\ket{0}\bra{0},\qquad A_1=\ket{1}\bra{1} \] \[ \Phi(\rho)=\sum_{j=0}^1 A_j\rho A_j^{\dagger} =\ket{0}\bra{0}\rho\ket{0}\bra{0} + \ket{1}\bra{1}\rho\ket{1}\bra{1} \]

First let us check that this is a valid admissible operation, and then work out what it does to a general single-qubit state.

Show solution

We check the admissibility condition:

\[ \sum_{j=0}^1 A_j^{\dagger}A_j =\ket{0}\braket{0|0}\bra{0} + \ket{1}\braket{1|1}\bra{1} = \ket{0}\bra{0}+\ket{1}\bra{1}=I \]

It satisfies the required property, so indeed it is admissible.

What does it do to the state \(\alpha\ket{0}+\beta\ket{1}\)? First we need to represent \(\ket{\psi}\) as a density matrix: \(\rho=\ket{\psi}\bra{\psi}\). Now

\[ \begin{aligned} \Phi(\rho) &=\Phi(\ket{\psi}\bra{\psi})\\ &=\ket{0}\braket{0|\psi}\braket{\psi|0}\bra{0}+\ket{1}\braket{1|\psi}\braket{\psi|1}\bra{1}\\ &=|\braket{0|\psi}|^2\ket{0}\bra{0}+|\braket{1|\psi}|^2\ket{1}\bra{1}\\ &=|\alpha|^2\ket{0}\bra{0}+|\beta|^2 \ket{1}\bra{1} \end{aligned} \]

In terms of matrices:

\[ \begin{pmatrix} |\alpha|^2 & \alpha\overline{\beta} \\ \overline{\alpha}\beta & |\beta|^2 \end{pmatrix} \xrightarrow{\ \Phi\ } \begin{pmatrix} |\alpha|^2 & 0 \\ 0 & |\beta|^2 \end{pmatrix} \]

In general, off-diagonal entries get zeroed out.

Measuring-and-forgetting is exactly the process that turns a pure state into a mixed one. The off-diagonal entries of a density matrix (the “coherences”) encode quantum superposition; wiping them out leaves only the classical probabilities \(|\alpha|^2\) and \(|\beta|^2\) on the diagonal. This is decoherence in one line of algebra.

In general, admissible operations do not need to preserve the sizes of quantum systems. For example, one might consider the situation in which one of a collection of qubits is lost or somehow destroyed. More notation will help to discuss this issue in greater specificity.

Given two spaces \(\mathcal{X}\) and \(\mathcal{Y}\), we let

\[ L(\mathcal{X},\mathcal{Y}) \]

denote the set of all linear mappings from \(\mathcal{X}\) to \(\mathcal{Y}\). The shorthand \(L(\mathcal{X})\) is used to mean \(L(\mathcal{X},\mathcal{X})\). Also let

\[ D(\mathcal{X}) \]

denote the set of all density matrices on \(\mathcal{X}\) (so that \(D(\mathcal{X})\subset L(\mathcal{X})\)). For example, if \(X\) is a quantum register with classical state set \(\Sigma\) and \(\mathcal{X}=\mathbb{C}(\Sigma)\), then any mixed state of the register \(X\) is represented by some element of \(D(\mathcal{X})\).

Now, if we have a collection of mappings (or matrices) \(A_1,\ldots,A_k \in L(\mathcal{X},\mathcal{Y})\) that satisfy

\[ \sum_{j=1}^k A_j^{\dagger}A_j = I \]

(the identity on \(L(\mathcal{X})\)), then the admissible operation \(\Phi\) defined by

\[ \Phi(\rho)=\sum_{j=1}^k A_j\rho A_j^{\dagger} \]

maps elements of \(D(\mathcal{X})\) to elements of \(D(\mathcal{Y})\).

Worked Example

Suppose we have two qubits: \(X\) and \(Y\). We will consider the admissible operation that corresponds to discarding the second qubit. Thus, once the operation has been performed, we will be left with a single qubit X. The vector space corresponding to X will be \(\mathcal{X}\) and the space corresponding to Y will be \(\mathcal{Y}\). If \(\Phi\) is to describe the operation of discarding the second qubit, then we must have that \(\Phi(\rho)\in D(\mathcal{X})\) whenever \(\rho \in D(\mathcal{X} \otimes \mathcal{Y})\). Construct such a \(\Phi\) and verify it is admissible.

Show solution

If

\[ \Phi(\rho)=\sum_{j=1}^k A_j\rho A_j^{\dagger} \]

for some choice of matrices \(A_1,\ldots,A_k\), then these matrices must come from the set \(L(\mathcal{X}\otimes \mathcal{Y},\mathcal{X})\). This means that they must be \(2 \times 4\) matrices. Let

\[ A_0=I\otimes \bra{0},\quad A_1=I\otimes \bra{1} \]

where \(I\) denotes the identity operator on the first qubit, and define \(\Phi\) by

\[ \Phi(\rho)=\sum_{j=0}^1 A_j\rho A_j^{\dagger}=A_0\rho A_0^{\dagger}+A_1 \rho A_1^{\dagger} \]

for all \(\rho\). Writing \(A_0\) and \(A_1\) in ordinary matrix notation gives

\[ A_0=I\otimes \bra{0}=\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} \otimes \begin{pmatrix} 1 & 0 \end{pmatrix} = \begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 \end{pmatrix} \] \[ A_1=I\otimes \bra{1}=\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} \otimes \begin{pmatrix} 0 & 1 \end{pmatrix}=\begin{pmatrix} 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1 \end{pmatrix} \]

To see that \(\Phi\) is admissible, we compute:

\[ \begin{aligned} A_0^{\dagger}A_0+A_1^{\dagger}A_1&=(I\otimes \ket{0})(I\otimes \bra{0})+(I\otimes \ket{1})(I\otimes \bra{1})\\ &=I\otimes \ket{0}\bra{0}+I\otimes \ket{1}\bra{1}\\ &=I\otimes (\ket{0}\bra{0}+\ket{1}\bra{1})\\ &=I\otimes I\\ &=I_{\mathcal{X} \otimes \mathcal{Y}} \end{aligned} \]

(The subscript on the identity operator in the last line just indicates what space the identity is acting on.)

Let us now consider the effect of this operation on a couple of states. First suppose that \((X,Y)\) is in the state \(\xi \otimes \sigma\) for two \(2 \times 2\) density matrices \(\xi\) and \(\sigma\). Just as for vectors in the “old” description of quantum information, we view states of the form \(\xi \otimes \sigma\) as representing completely uncorrelated qubits. What do you expect the state to be if you discard the second qubit? Let us check:

\[ \begin{aligned} \Phi(\xi \otimes \sigma)&=A_0(\xi \otimes \sigma)A_0^{\dagger}+A_1(\xi \otimes \sigma)A_1^{\dagger}\\ &=(I\otimes \bra{0})(\xi \otimes \sigma)(I\otimes \ket{0})+(I \otimes \bra{1})(\xi \otimes \sigma)(I\otimes \ket{1})\\ &=\xi \otimes \braket{0|\sigma|0} +\xi \otimes \braket{1|\sigma|1}\\ &=(\braket{0|\sigma|0} + \braket{1|\sigma|1})\, \xi\\ &=\operatorname{Tr}(\sigma)\,\xi\\ &=\xi \end{aligned} \]

Indeed, this is what you presumably expected. Now we shall see what happens when this operation is applied to entangled qubits.

The previous example can be generalized to describe the operation that corresponds to discarding part of a system. Suppose X and Y are registers with corresponding spaces \(\mathcal{X}\) and \(\mathcal{Y}\). A mixed state of these two registers is represented by some element of \(D(\mathcal{X}\otimes \mathcal{Y})\). If, say, the register Y is discarded, we will be left with some mixed state of X that is represented by some element of \(D(\mathcal{X})\). Specifically, if \(\rho \in D(\mathcal{X}\otimes \mathcal{Y})\) is a density matrix representing the state of \((X,Y)\) and Y is discarded, the resulting state of X is denoted by \(\operatorname{Tr}_{\mathcal{Y}}(\rho)\), the partial trace. (It is called the partial trace because when extended by linearity to arbitrary matrices it satisfies \(\operatorname{Tr}_{\mathcal{Y}}(X \otimes Y)=\operatorname{Tr}(Y)\,X\) for all \(X \in L(\mathcal{X})\) and \(Y\in L(\mathcal{Y})\).) We also refer to the action corresponding to this operation as tracing out the space \(\mathcal{Y}\). To express \(\operatorname{Tr}_{\mathcal{Y}}\) in the form of an admissible operation, let \(\Sigma\) denote the set of classical states of Y. Then

\[ \operatorname{Tr}_{\mathcal{Y}}(\rho) = \sum_{a\in\Sigma} (I\otimes \bra{a})\rho(I\otimes \ket{a}) \]

The partial trace is a particularly important admissible operation that we will continue discussing.

The partial trace answers the question: “if I only have access to part of a system, what state do I see?” For uncorrelated qubits it simply throws the discarded one away and leaves the other untouched. For entangled qubits it does something more interesting — it turns entanglement with the lost qubit into genuine mixedness in the qubit you keep. That is the deep reason a subsystem of a pure entangled state looks mixed.

1.3 Postulates

It turns out that all the postulates of quantum mechanics can be reformulated in terms of the density operator language. The purpose of this section is to explain how to perform this reformulation, and to explain when it is useful.

Postulate 1: The State Postulate

Associated to any isolated physical system is a complex vector space with inner product (that is, a Hilbert space) known as the state space of the system. The system is completely described by its density operator, which is a positive operator \(\rho\) with trace one, acting on the state space of the system. If a quantum system is in the state \(\rho_i\) with probability \(p_i\), then the density operator for the system is \(\sum_i p_i\rho_i\).

Postulate 2: Evolution Postulate

The evolution of a closed system is described by a unitary transformation. That is, the state \(\rho\) of the system at time \(t_1\) is related to the state \(\rho'\) of the system at time \(t_2\) by a unitary operator \(U\) which depends only on the times \(t_1\) and \(t_2\).

Suppose evolution of a closed quantum system is described by the unitary operator \(U\). If the system was initially in the state \(\ket{\psi_i}\) with probability \(p_i\), then after the evolution has occurred the system will be in the state \(U\ket{\psi_i}\) with probability \(p_i\). Thus, the evolution of the density operator is described by the equation

\[ \rho=\sum_i p_i\ket{\psi_i}\bra{\psi_i} \xrightarrow{\ U\ } \sum_i p_i U\ket{\psi_i}\bra{\psi_i}U^{\dagger}=U\rho U^{\dagger} \]

Postulate 3: Measurement Postulate

Quantum measurements are described by a collection \(\{M_m\}\) of measurement operators. These are operators acting on the state space of the system being measured. The index \(m\) refers to the measurement outcomes that may occur in the experiment. If the state of the quantum system is \(\rho\) immediately before the measurement, then the probability that the result \(m\) occurs is given by

\[ p(m)=\braket{\psi|M_m^{\dagger}M_m|\psi}=\operatorname{Tr}(M_m^{\dagger}M_m\rho) \]

and the state of the system after the measurement is

\[ \frac{M_m\ket{\psi}}{\sqrt{p(m)}}\frac{\bra{\psi}M_m^{\dagger}}{\sqrt{p(m)}}=\frac{M_m\rho M_m^{\dagger}}{\operatorname{Tr}(M_m^{\dagger}M_m\rho)} \]

The measurement operators satisfy the completeness equation,

\[ \sum_m M_m^{\dagger}M_m=I \]

Measurements are also easily described in the density operator language. Suppose we perform a measurement described by measurement operators \(M_m\). If the initial state was \(\ket{\psi_i}\), then the probability of getting result \(m\) is

\[ p(m|i)=\braket{\psi_i|M_m^{\dagger}M_m|\psi_i}=\operatorname{Tr}(M_m^{\dagger}M_m\ket{\psi_i}\bra{\psi_i}) \]

using the cyclic property of the trace of a matrix. By the law of total probability, the probability of obtaining the result \(m\) is

\[ \begin{aligned} p(m)&=\sum_i p(m|i)p_i\\ &=\sum_i p_i\operatorname{Tr}(M_m^{\dagger}M_m\ket{\psi_i}\bra{\psi_i})\\ &=\operatorname{Tr}\left(M_m^{\dagger}M_m\sum_i p_i\ket{\psi_i}\bra{\psi_i}\right)\\ &=\operatorname{Tr}(M_m^{\dagger}M_m\rho) \end{aligned} \]

The density operator of the system after the measurement result \(m\) is obtained from the states

\[ \ket{\psi_i^m}=\frac{M_m\ket{\psi_i}}{\sqrt{\braket{\psi_i|M_m^{\dagger}M_m|\psi_i}}} \]

Thus, after a measurement which yields the result \(m\), we have an ensemble of states \(\ket{\psi_i^m}\) with respective probabilities \(p(i|m)\). The corresponding density operator \(\rho_m\) is therefore

\[ \rho_m=\sum_i p(i|m)\ket{\psi_i^m}\bra{\psi_i^m}=\sum_i p(i|m)\frac{M_m\ket{\psi_i}\bra{\psi_i}M_m^{\dagger}}{\operatorname{Tr}(M_m^{\dagger}M_m\ket{\psi_i}\bra{\psi_i})} \]

But by elementary probability theory, \(p(i|m)=p(m,i)/p(m)=p(m|i)p_i/p(m)\). Substituting, we obtain

\[ \begin{aligned} \rho_m&=\sum_i p_i\frac{M_m\ket{\psi_i}\bra{\psi_i}M_m^{\dagger}}{\operatorname{Tr}(M_m^{\dagger}M_m\rho)}\\ &=\frac{M_m\rho M_m^{\dagger}}{\operatorname{Tr}(M_m^{\dagger}M_m\rho)} \end{aligned} \]

Thus, the basic postulates of quantum mechanics related to unitary evolution and measurements can be rephrased in the language of density operators.

Postulate 4: Composite Systems

The state space of a composite physical system is the tensor product of the state spaces of the component physical systems. Moreover, if we have systems numbered 1 through \(n\), and system number \(i\) is prepared in the state \(\rho_i\), then the joint state of the total system is \(\rho_1 \otimes \rho_2 \otimes \ldots \otimes \rho_n\).

These reformulations of the fundamental postulates of quantum mechanics in terms of density operators are mathematically equivalent to the description in terms of the state vector. As a way of thinking about quantum mechanics, the density operator approach really shines for two applications: the description of quantum systems whose state is not known, and the description of subsystems of a composite quantum system.

All four postulates survive the translation intact: states become density matrices, unitary evolution becomes \(\rho \mapsto U\rho U^{\dagger}\), measurement rules read off traces, and composite systems tensor together. Nothing physical changes — you have simply upgraded to a language that can also talk about ignorance and subsystems, which the plain state-vector language cannot.
Worked Example

Let \(\rho\) be a density operator. Show that \(\operatorname{Tr}(\rho^2)\leq 1\), with equality if and only if \(\rho\) is a pure state.

Show solution

Recall that \(\rho=\sum_i p_i\ket{\psi_i}\bra{\psi_i}\). Now,

\[ \begin{aligned} \operatorname{Tr}(\rho^2)&=\operatorname{Tr}\left(\left(\sum_i p_i \ket{\psi_i}\bra{\psi_i}\right)\left(\sum_j p_j\ket{\psi_j}\bra{\psi_j}\right)\right)\\ &=\operatorname{Tr}\left(\sum_i\sum_j p_ip_j \ket{\psi_i}\braket{\psi_i|\psi_j}\bra{\psi_j}\right)\\ &=\sum_i\sum_j p_ip_j\operatorname{Tr}(\ket{\psi_i}\braket{\psi_i|\psi_j}\bra{\psi_j})\\ &=\sum_i\sum_j p_ip_j\braket{\psi_j|\psi_i}\braket{\psi_i|\psi_j}\\ &=\sum_i\sum_j p_ip_j|\braket{\psi_i|\psi_j}|^2 \end{aligned} \]

Now using the Cauchy–Schwarz inequality, \(|\braket{\psi_i|\psi_j}|^2\leq \braket{\psi_i|\psi_i}\braket{\psi_j|\psi_j}\), we get

\[ \begin{aligned} \sum_{i,j} p_ip_j|\braket{\psi_i|\psi_j}|^2 &\leq \sum_{i,j}p_ip_j\braket{\psi_i|\psi_i}\braket{\psi_j|\psi_j}\\ &\leq \sum_{i,j}p_ip_j\\ &\leq \left(\sum_i p_i\right)\left(\sum_j p_j\right)\\ &\leq 1 \end{aligned} \]

so \(\operatorname{Tr}(\rho^2)\leq 1\). The equality holds if and only if \(\ket{\psi_i}=\ket{\psi_j}\) for all \(i,j\) up to a global phase factor, i.e. there is only one \(\ket{\psi}\) that occurs with probability \(1\) — a pure state.

It is a tempting (and surprisingly common) fallacy to suppose that the eigenvalues and eigenvectors of a density matrix have some special significance with regard to the ensemble of quantum states represented by that density matrix. For example, one might suppose that a quantum system with density matrix

\[ \rho=\frac{3}{4}\ket{0}\bra{0} +\frac{1}{4}\ket{1}\bra{1} \]

must be in the state \(\ket{0}\) with probability \(3/4\) and in the state \(\ket{1}\) with probability \(1/4\). However, this is not necessarily the case. Suppose we define

\[ \ket{a}=\sqrt{\tfrac{3}{4}}\ket{0}+\sqrt{\tfrac{1}{4}}\ket{1} \] \[ \ket{b}=\sqrt{\tfrac{3}{4}}\ket{0}-\sqrt{\tfrac{1}{4}}\ket{1} \]

and the quantum system is prepared in the state \(\ket{a}\) with probability \(1/2\) and in the state \(\ket{b}\) with probability \(1/2\). Then it is easily checked that the corresponding density matrix is

\[ \rho=\frac{1}{2}\ket{a}\bra{a}+\frac{1}{2}\ket{b}\bra{b}=\frac{3}{4}\ket{0}\bra{0}+\frac{1}{4}\ket{1}\bra{1} \]

That is, two different ensembles of quantum states give rise to the same density matrix. In general, the eigenvectors and eigenvalues of a density matrix just indicate one of many possible ensembles that may give rise to a specific density matrix, and there is no reason to suppose it is an especially privileged ensemble.

A natural question to ask in the light of this discussion is: what class of ensembles does give rise to a particular density matrix? The solution to this problem, which we now give, has surprisingly many applications in quantum computation and quantum information, notably in the understanding of quantum noise and quantum error correction. For the solution it is convenient to make use of vectors \(\ket{\tilde{\psi}_i}\) which may not be normalized to unit length. We say the set \(\ket{\tilde{\psi}_i}\) generates the operator \(\rho=\sum_i\ket{\tilde{\psi}_i}\bra{\tilde{\psi}_i}\), and the connection to the ensemble picture of density operators is expressed by the equation \(\ket{\tilde{\psi}_i}=\sqrt{p_i}\ket{\psi_i}\). When do two sets of vectors, \(\ket{\tilde{\psi}_i}\) and \(\ket{\tilde{\varphi}_j}\), generate the same operator \(\rho\)? The solution to this problem will enable us to answer the question of what ensemble gives rise to a given density matrix.

Theorem — Unitary freedom in the ensemble for density matrices

The sets \(\ket{\tilde{\psi}_i}\) and \(\ket{\tilde{\varphi}_j}\) generate the same density matrix if and only if

\[ \ket{\tilde{\psi}_i}=\sum_j u_{ij}\ket{\tilde{\varphi}_j} \]

where \(u_{ij}\) is a unitary matrix of complex numbers, with indices \(i\) and \(j\), and we ‘pad’ whichever set of vectors \(\ket{\tilde{\psi}_i}\) or \(\ket{\tilde{\varphi}_j}\) is smaller with additional zero vectors so that the two sets have the same number of elements. As a consequence, note that \(\rho = \sum_i p_i\ket{\psi_i}\bra{\psi_i}=\sum_j q_j\ket{\varphi_j}\bra{\varphi_j}\) for normalized states \(\ket{\psi_i},\ket{\varphi_j}\) and probability distributions \(p_i\) and \(q_j\) if and only if

\[ \sqrt{p_i}\ket{\psi_i}=\sum_j u_{ij}\sqrt{q_j}\ket{\varphi_j} \]

for some unitary matrix \(u_{ij}\), and we may pad the smaller ensemble with entries having probability zero in order to make the two ensembles the same size. Thus, the theorem characterizes the freedom in the ensembles \(\{p_i,\ket{\psi_i}\}\) giving rise to a given density matrix \(\rho\). Indeed, it is easily checked that our earlier example of a density matrix with two different decompositions arises as a special case of this general result.

Proof

Suppose \(\ket{\tilde{\psi}_i}=\sum_j u_{ij}\ket{\tilde{\varphi}_j}\) for some unitary \(u_{ij}\). Then

\[ \begin{aligned} \sum_i\ket{\tilde{\psi}_i}\bra{\tilde{\psi}_i}&=\sum_{ijk} u_{ij}u_{ik}^* \ket{\tilde{\varphi}_j}\bra{\tilde{\varphi}_k}\\ &=\sum_{jk}\left(\sum_i u_{ki}^{\dagger}u_{ij}\right) \ket{\tilde{\varphi}_j}\bra{\tilde{\varphi}_k}\\ &=\sum_{jk}\delta_{kj} \ket{\tilde{\varphi}_j}\bra{\tilde{\varphi}_k}\\ &=\sum_j \ket{\tilde{\varphi}_j}\bra{\tilde{\varphi}_j} \end{aligned} \]

which shows that \(\ket{\tilde{\psi}_i}\) and \(\ket{\tilde{\varphi}_j}\) generate the same operator.

Conversely, suppose

\[ A=\sum_i \ket{\tilde{\psi}_i}\bra{\tilde{\psi}_i}=\sum_j\ket{\tilde{\varphi}_j}\bra{\tilde{\varphi}_j} \]

Let \(A=\sum_k\lambda_k\ket{k}\bra{k}\) be a decomposition for \(A\) such that the states \(\ket{k}\) are orthonormal, and the \(\lambda_k\) are strictly positive. Our strategy is to relate the states \(\ket{\tilde{\psi}_i}\) to the states \(\ket{\tilde{k}}=\sqrt{\lambda_k}\ket{k}\), and similarly relate the states \(\ket{\tilde{\varphi}_j}\) to the states \(\ket{\tilde{k}}\). Combining the two relations will give the result. Let \(\ket{\psi}\) be any vector orthonormal to the space spanned by the \(\ket{\tilde{k}}\), so \(\braket{\psi|\tilde{k}}\braket{\tilde{k}|\psi}=0\) for all \(k\), and thus we see that

\[ 0=\braket{\psi|A|\psi}=\sum_i\braket{\psi|\tilde{\psi}_i}\braket{\tilde{\psi}_i|\psi}=\sum_i|\braket{\psi|\tilde{\psi}_i}|^2 \]

Thus \(\braket{\psi|\tilde{\psi}_i}=0\) for all \(i\) and all \(\ket{\psi}\) orthonormal to the space spanned by the \(\ket{\tilde{k}}\). It follows that each \(\ket{\tilde{\psi}_i}\) can be expressed as a linear combination of the \(\ket{\tilde{k}}\), namely \(\ket{\tilde{\psi}_i}=\sum_k c_{ik}\ket{\tilde{k}}\). Since \(A=\sum_k\ket{\tilde{k}}\bra{\tilde{k}}=\sum_i\ket{\tilde{\psi}_i}\bra{\tilde{\psi}_i}\) we see that

\[ \sum_k \ket{\tilde{k}}\bra{\tilde{k}}=\sum_{kl}\left(\sum_i c_{ik}c_{il}^*\right) \ket{\tilde{k}}\bra{\tilde{l}} \]

The operators \(\ket{\tilde{k}}\bra{\tilde{l}}\) are easily seen to be linearly independent, and thus it must be that \(\sum_i c_{ik}c_{il}^*=\delta_{kl}\). This ensures that we may append extra columns to \(c\) to obtain a unitary matrix \(v\) such that \(\ket{\tilde{\psi}_i}=\sum_k v_{ik}\ket{\tilde{k}}\), where we have appended zero vectors to the list of \(\ket{\tilde{k}}\). Similarly, we can find a unitary matrix \(w\) such that \(\ket{\tilde{\varphi}_j}=\sum_k w_{jk}\ket{\tilde{k}}\). Thus \(\ket{\tilde{\psi}_i} = \sum_j u_{ij}\ket{\tilde{\varphi}_j}\), where \(u=vw^{\dagger}\) is unitary. ∎

This theorem is the precise statement of a fact we keep bumping into: a density matrix does not remember which ensemble produced it. Any two ensembles are related by a unitary shuffle. That freedom is not a nuisance — it is exactly what makes density matrices the right tool for quantum noise and error correction, where you want to describe the state without committing to a story about how it arose.
Worked Example — Bloch sphere for mixed states

The Bloch sphere picture for pure states of a single qubit. (This example is introduced here and developed fully in the following section.)

1.4 The Reduced Density Operator

Perhaps the deepest application of the density operator is as a descriptive tool for subsystems of a composite quantum system. Such a description is provided by the reduced density operator, which is the subject of this section. The reduced density operator is so useful as to be virtually indispensable in the analysis of composite quantum systems.

Suppose we have physical systems \(A\) and \(B\), whose state is described by a density operator \(\rho^{AB}\). The reduced density operator for system \(A\) is defined by

\[ \rho^A \equiv \operatorname{tr}_B(\rho^{AB}) \]

where \(\operatorname{tr}_B\) is a map of operators known as the partial trace over system \(B\). The partial trace is defined by

\[ \operatorname{tr}_B(\ket{a_1}\bra{a_2}\otimes \ket{b_1}\bra{b_2})\equiv \ket{a_1}\bra{a_2}\,\operatorname{tr}(\ket{b_1}\bra{b_2}) \]

where \(\ket{a_1}\) and \(\ket{a_2}\) are any two vectors in the state space of \(A\), and \(\ket{b_1}\) and \(\ket{b_2}\) are any two vectors in the state space of \(B\). The trace operation appearing on the right-hand side is the usual trace operation for system \(B\), so \(\operatorname{tr}(\ket{b_1}\bra{b_2})=\braket{b_2|b_1}\). We have defined the partial trace operation only on a special subclass of operators; the specification is completed by requiring, in addition to the above equation, that the partial trace be linear in its input.

It is not obvious that the reduced density operator for system \(A\) is in any sense a description for the state of system \(A\). The physical justification for making this identification is that the reduced density operator provides the correct measurement statistics for measurements made on system \(A\).

Worked Example — Bloch sphere for mixed states

The Bloch sphere description has an important generalization for mixed states. Establish the following:

  1. Show that an arbitrary density matrix for a mixed-state qubit may be written as \[ \rho = \frac{I+\mathbf{r} \cdot \vec{\sigma}}{2} \] where \(\mathbf{r}\) is a real three-dimensional vector such that \(\|\mathbf{r}\|\leq 1\). This vector is known as the Bloch vector for the state \(\rho\).
  2. What is the Bloch vector representation for the state \(\rho=I/2\)?
  3. Show that a state \(\rho\) is pure if and only if \(\|\mathbf{r}\|=1\).
  4. Show that for a pure state the description of the Bloch vector given here coincides with the previous definition.
Show solution

(1) Since \(\{I,X,Y,Z\}\) form a basis for the vector space of single-qubit linear operators, we can write (for any \(\rho\), regardless of whether it is a density operator or not):

\[ \rho=a_1 I+a_2 X+a_3 Y+a_4 Z \]

for constants \(a_1,a_2,a_3,a_4 \in\mathbb{C}\). Since \(\rho\) is a Hermitian operator, we find that each of these constants is actually real, as

\[ a_1 I+a_2 X+a_3 Y+a_4 Z=\rho =\rho^{\dagger}=a_1^* I^{\dagger}+a_2^* X^{\dagger}+a_3^* Y^{\dagger}+a_4^* Z^{\dagger}=a_1^* I+a_2^* X+a_3^* Y+a_4^* Z \]

Now, we require that \(\operatorname{tr}(\rho)=1\) for any density operator, hence:

\[ \operatorname{tr}(\rho)=\operatorname{tr}(a_1 I+a_2 X+a_3 Y+a_4 Z)=a_1\operatorname{tr}(I)+a_2\operatorname{tr}(X)+a_3\operatorname{tr}(Y)+a_4\operatorname{tr}(Z)=2a_1=1 \]

from which we obtain \(a_1=\frac{1}{2}\). (In the second equality we use the linearity of the trace, and in the third we use that \(\operatorname{tr}(I)=2\) and \(\operatorname{tr}(\sigma_i)=0\) for \(i\in\{1,2,3\}\).) Calculating \(\rho^2\), we have:

\[ \begin{aligned} \rho^2&=\tfrac{1}{4}I+\tfrac{a_2}{2}X+\tfrac{a_3}{2}Y+\tfrac{a_4}{2}Z+\tfrac{a_2}{2}X+a_2^2 X^2+a_2 a_3 XY+a_2 a_4 XZ\\ &\quad +\tfrac{a_3}{2}Y+a_3 a_2 YX+a_3^2 Y^2+a_3 a_4 YZ+\tfrac{a_4}{2}Z+a_4 a_2 ZX+a_4 a_3 ZY+a_4^2 Z^2 \end{aligned} \]

Now, using that \(\{\sigma_i,\sigma_j\}=0\) for \(i,j \in \{1,2,3\},\ i\neq j\), and that \(\sigma_i^2=I\) for any \(i\in\{1,2,3\}\), the above simplifies to:

\[ \rho^2=\left(\tfrac{1}{4}+a_2^2+a_3^2+a_4^2\right)I+a_2 X+a_3 Y+a_4 Z \]

Taking the trace of \(\rho^2\) we have:

\[ \operatorname{tr}(\rho^2)=2\left(\tfrac{1}{4}+a_2^2+a_3^2+a_4^2\right) \]

From the previous exercise we know that \(\operatorname{tr}(\rho^2)\leq 1\), so:

\[ 2\left(\tfrac{1}{4}+a_2^2+a_3^2+a_4^2\right) \leq 1 \implies a_2^2+a_3^2+a_4^2 \leq \tfrac{1}{4} \implies \sqrt{a_2^2+a_3^2+a_4^2}\leq \tfrac{1}{2} \]

Hence we can write:

\[ \rho=\frac{I+r_x X+r_y Y+r_z Z}{2}=\frac{I+\mathbf{r} \cdot \vec{\sigma}}{2} \]

with \(\|\mathbf{r}\|\leq 1\).

(2) The Bloch representation for the state \(\rho=\frac{I}{2}\) is the above form with \(\mathbf{r}=0\). This vector corresponds to the center of the Bloch sphere, which is the maximally mixed state; \(\operatorname{tr}(\rho^2)\) is minimized here, with \(\operatorname{tr}(\rho^2)=\frac{1}{2}\).

(3) From the previous calculation we know that for any \(\rho\)

\[ \operatorname{tr}(\rho^2)=2\left(\frac{1+r_x^2+r_y^2+r_z^2}{4}\right)=\frac{1+r_x^2+r_y^2+r_z^2}{2} \]

If \(\|\mathbf{r}\|=1\), then \(r_x^2 +r_y^2+r_z^2=1\). Hence \(\operatorname{tr}(\rho^2)=1\) and \(\rho\) is pure. Conversely, suppose \(\rho\) is pure. Then \(\operatorname{tr}(\rho^2)=1\), so:

\[ \frac{1+r_x^2+r_y^2+r_z^2}{2}=1 \implies r_x^2+r_y^2+r_z^2 = 1 \implies \|\mathbf{r}\|=1 \]

(4) For the states that lie on the surface of the Bloch sphere, which we parameterized as

\[ \ket{\psi}=\cos\left(\frac{\theta}{2}\right) \ket{0}+e^{\iota \varphi} \sin\left(\frac{\theta}{2}\right) \ket{1} \]

calculating the density operator \(\rho=\ket{\psi}\bra{\psi}\) recovers a Bloch vector of unit length pointing in the direction \((\theta,\varphi)\), coinciding with the pure-state Bloch sphere definition given earlier.

The Bloch picture makes the pure/mixed distinction visual: pure states sit on the surface of the unit ball (\(\|\mathbf{r}\|=1\)), while mixed states live strictly inside it, with the maximally mixed state \(I/2\) sitting dead center. Every legal single-qubit density matrix is just a point in this ball — a clean geometric summary of everything in this chapter.

Key Takeaways