QC Chapter3
QC Chapter3
59
60 QUANTUM COMPUTING
Here we use the fact that Tr [µ] = µ ∈ C for the first equality, and Tr (XY ) =
Tr (Y X) for the second equality.
Suppose we have two mixed states obtained by convex combinations of pure
states |ψ1 ⟩⟨ψ1 |, . . . , |ψr ⟩⟨ψr | and |ϕ1 ⟩⟨ϕ1 |, . . . , |ϕs ⟩⟨ϕs | and end up as the same
density matrix ρ, i.e., for two probability vectors (p1 , . . . , pr ), (q1 , . . . , qs ),
r
X s
X
ρ= pj |ψj ⟩⟨ψj | = qj |ϕj ⟩⟨ϕj |.
j j=1
Then the mean value for any observable will be the same. So, we will not
be able to distinguish the two states; practically, they are the same. So, we
Density Matrices and Quantum Operations 61
FIGURE 3.1
Space of density matrices Dn (gray oval) as a subset of unit-trace Hermitian
matrices (white square). The boundary of Dn represents pure states while
the interior represents mixed states that are not pure.
will focus only on the density matrices when we consider a system in mixed
states. We will denote by Dn the set of density matrices in Mn .
Figure 3.1 depicts the space of density matrices Dn (the gray oval) which
is a subset of unit-trace Hermitian matrices (the white square). The state ρ
is represented by a mixture ρ = (1 − t)|ψ⟩⟨ψ| + t|ϕ⟩⟨ϕ|, where t ∈ [0, 1], of
two pure states as well as a mixture of two mixed states ρ = (1 − s)ρ1 + sρ2 .
A general unit-trace Hermitian matrix h may be also represented as h =
(1 + t)ρ3 − tρ4 but the coefficient must be negative in this case.
√
EXAMPLE 3.1.1. Let p1 = p2 = 1/2 and |ψ1 ⟩ = (1, 0)t , |ψ2 ⟩ = (1, 1)t / 2.
The density matrix of this state is
1 31
ρ= .
4 11
√
This density matrix also represents a mixed state with q1 = 2 + 2 /4, q2 =
√ √ q √ √ q √
2 − 2 /4 and |ϕ1 ⟩ = (1+ 2, 1)t / 2 2 + 2 , |ϕ2 ⟩ = (1− 2, 1)t / 2(2 − 2).
This mixture is obtained by the spectral decomposition of ρ and hence
⟨ϕ1 |ϕ2 ⟩ = 0.
We may also decompose ρ into two mixed states as ρ = 21 ρ1 + 43 ρ2 , where
1 10 1 52
ρ1 = , ρ2 = .
2 01 6 21
Properties which a density matrix ρ satisfies are very much like axioms for
pure states. ∗
∗ The postulates work for trace class operators in infinite dimensional Hilbert space H.
62 QUANTUM COMPUTING
A3′ The temporal evolution of the density matrix of a closed system is given
by the Liouville-von Neumann equation,
d
iℏ ρ = [H, ρ], (3.5)
dt
where H is the system Hamiltonian (see remarks below).
We also have
X X
Tr ρ = ⟨ek |ρ|ek ⟩ = ⟨ek |pi |ψi ⟩⟨ψi |ek ⟩
k i,k
!
X X X
= pi ⟨ψi | |ek ⟩⟨ek | |ψi ⟩ = pi ⟨ψi |ψi ⟩ = 1,
i k i
It is easy to verify that Dn is a convex set, i.e., rρ1 + (1 − r)ρ2 with r ∈ [0, 1]
for ρ1,2 ∈ Dn is also a density matrix. Pn
Note that one can always do a spectral decomposition ρ = j=1 λj |λj ⟩⟨λj |
so that it is a convex combination of its eigenprojections.
EXAMPLE 3.1.2. A pure state |ψ⟩ is a special case in which the corre-
sponding density matrix is
ρ = |ψ⟩⟨ψ|. (3.6)
Therefore ρ in this case is nothing but the projection operator onto the state
|ψ⟩. Observe that
X X
⟨A⟩ = Tr ρA = ⟨ei |ψ⟩⟨ψ|A|ei ⟩ = ⟨ψ|A|ei ⟩⟨ei |ψ⟩ = ⟨ψ|A|ψ⟩.
i i
where Pa = |λa ⟩⟨λa | is the projection operator. The state changes to a pure
state |λa ⟩⟨λa | immediately after the measurement with the outcome λa . This
change is written as ρ 7→ Pa ρPa /p(a).
The following determines when ρ represents a pure state.
THEOREM 3.1.3. A state ρ ∈ Dn is pure if and only if any one of the
following condition holds.
(a) ρ2 = ρ. (b) Tr ρ2 = 1.
It is important to note that while not every density matrix ρ ∈ Dmn is sep-
arable, i.e., a convex combination of uncorrelated quantum states ρ1,j ⊗ ρ2,j ,
it is always possible to express ρ as a real linear combination of uncorrelated
quantum states with negative coefficients. See Exercise 3.9.
It is also worthwhile to realize that only inseparable states have quantum
correlations analogous to that of an entangled pure state. However, it does
not necessarily imply separable states have no non-classical correlation. It
was pointed out that useful non-classical correlation exists in the subset of
separable states [24].
It is easy to determine whether a given mixed state ρ ∈ Mm ⊗ Mn is an
uncorrelated state. Let ρ = (Prs )1≤r,s≤m , where Prs ∈ Mn . σ2 = Pjj /Tr (Pjj )
for any Pjj ̸= 0. Then ρ is a uncorrelated state if and only if Prs = ars σ2
with ars ∈ C for all 1 ≤ r, s ≤ m. If ars does exist for all 1 ≤ r, s ≤ m, then
ρ = σ1 ⊗ σ2 with σ1 = (ars ) ∈ Mm . See Exercise 3.1
Observe that
Tr (ρ1 A) = Tr (ρ(A ⊗ I)) (3.12)
for an observable A acting on the first Hilbert space. The expectation value
of A ⊗ I under that state ρ is equally obtained by using ρ1 .
We have seen above that the partial trace of a pure state density matrix of
a bipartite system over one of the constituent Hilbert spaces yields a mixed
state. How about the converse? Given a mixed state density matrix, is
it always possible to find a pure state density matrix whose partial trace
over the extra Hilbert space yields the given density matrix? The answer
is yes
Pand the process to find a pure state is called the purification. Let
s
ρ = k=1 pk |ψk ⟩⟨ψk | ∈ Dm , where |ψk ⟩⟨ψk | is a pure state for each k. Then
we can let
s
X √
|Ψ⟩ = pk |ψk ⟩ ⊗ |ek ⟩, (3.13)
k=1
Now, for Pany mixed state ρ ∈ Mm , one can always use its spectral decomposi-
r
tion ρ = j=1 λj |λj ⟩⟨λj |, where r is the number of positive eigenvalues of ρ.
Thus it is always possible to purify a mixed state by tensoring an extra Hilbert
space of dimension equal to the rank of ρ. It is easy to see, by construction,
that purification is far from unique. In fact, there are an infinite number of
purifications of a given mixed state density matrix; again see Exercise 3.6.
Density Matrices and Quantum Operations 67
σ ⊗ ρ 7→ U (σ ⊗ ρ)U † .
However, one cannot or need not have complete control of the environment
(auxiliary) system. So, one will apply a partial trace operation to U (σ⊗ρ)U ∗ ∈
Mm ⊗ Mr , where nk = mr, to obtain τ ∈ Mm for our investigation. This
will be the general quantum operations one can apply to a quantum system.
Under this mathematical framework, we have the following theorem.
r
Fj AFj†
X
Φ(A) = for all A ∈ Mn . (3.15)
j=1
U (σ ⊗ ρ)U † = F ρF †
Thus, the action of Φ on density matrices has the asserted form. Since the
set of density matrices generate all matrices in Mn , we see that Φ has the
asserted form.
One can reverse the above proof to show that every operator Φ of the form
(3.15) corresponds to a quantum operation Φ : Mn → Mm of an open system
as follows. For the given F1 , . . . , Fr in (3.15), we can form the matrix F in
(3.16). The condition j=1 Fj† Fj = In means that the F has orthonormal
Pr
where pj = Tr (Pj ρPj ) = Tr (ρPj ) and the set {P1 , . . . , Pr } satisfies the com-
pleteness relation j Pj Pj† = j Pj = I. Clearly, the projective measure-
P P
ment is a special case of a quantum operation in which the Kraus operators
are Fj = Pj . Upon measurement of ρ, we get the state p1j Pj ρPj ∈ Dn with a
probability pj .
More generally, for any positive semidefinite matrices Q1 , . . . , Qr ∈ Mn
such that Q1 + · · · + Qr = In , there are M1 , . . . , Mr ∈ Mn such that
Mj† Mj = Qj . The measurement operators are then associated with the quan-
tum operation
r
Mj ρMj†
X
ρ 7→
j=1
1 †
so that ρ will change to the quantum state pj Mj ρMj with a probability
pj = = Tr (ρQj ). The set {Q1 , . . . , Qr } = {M1† M1 , . . . , Mr† Mr }
Tr (Mj ρMj† )
is known as the positive operator-valued measure (POVM).
70 QUANTUM COMPUTING
Proof. Let {|e1 ⟩, . . . , |er ⟩} be the standard basis for Cr andEjj =|ej ⟩⟨ej |
1/2
Q
1.
for j = 1, . . . , r. Let Pj = Ejj ⊗ In ∈ Mr ⊗ Mn , and set V1 = .. . Then
1/2
Qr
† Pr
V1 V1 = j=1 Qj = In . So, V1 has orthonormal columns and we can extend
V1 to a unitary matrix V ∈ Mr ⊗ Mn . It is easy to verify that
1/2
Q1
1/2 .
[Q1 · · · Q1/2
r ]Pj .. = Qj
1/2
Qr
Density Matrices and Quantum Operations 71
† Interested readers can consult the paper [14] for the definition.
72 QUANTUM COMPUTING
‡ Interested readers can see the definitions and background of these concepts in [14] and its
references.
Density Matrices and Quantum Operations 73
example in a C2 ⊗C4 system has been given in Horodecki [15]. Let us consider
b000 0 b0 0
0 b 0 0 0 0 b 0
0 0 b 0 0 0 0 b
000b 0 00 √0
1
ρ= 1+b 2
1−b
(0 ≤ b ≤ 1), (3.22)
0 0 0 0 2 0 0 2
7b + 1
b 0 0 0 0 b 0 0
0 b 0 0 0 0 b 0
√
2
0 0 b 0 1−b
2 0 0 1+b
2
3.6 Fidelity
It often happens that one has to compare two density matrices and tell how
much they differ from each other. For instance, an experimentalist may con-
duct an experiment and then compare the resulting quantum state with a
certain existing quantum state. A good measure for this purpose is the fi-
delity defined as follows; see [16].
DEFINITION 3.6.1. Let ρ1 , ρ2 ∈ Dn . Then the fidelity is defined by
q 2
√ √
F (ρ1 , ρ2 ) = Tr ρ1 ρ2 ρ1 . (3.24)
√ √ √
Here, ρ1 is the positive semi-definite square root of ρ1 , and ρ1 ρ2 ρ1 is
positive semi-definite so that we can take its positive semi-definite square root.
We are going to prove some basic properties of fidelity. To do that we
need to introduce some notation and terminology which will be useful in our
subsequent discussion.
For X ∈ Mm,n , let vec(X) ∈ Cmn be the vector obtained by stacking the
columns of X with the first column on the top, and the last column at the
bottom. Clearly, X 7→ vec(X) is an invertible linear map. One can define
the inverse map from Cmn to Mm,n so that |v⟩ 7→ [v]m,n , where the first m
entries of |v⟩ form the first column of [v]m,n , then next m entries of |v⟩ form
the second column of [v]m,n , etc. Moreover, if we define the inner product
⟨X, Y ⟩ = Tr (X † Y )
on Mm,n , the map |v⟩ 7→ [|v⟩]m,n satisfies ⟨v1 |v2 ⟩ = ⟨[|v1 ⟩]m,n , [|v2 ⟩]m,n ⟩.
pOne may define the inner product norm for A ∈ Mm,n by ∥A∥F =
⟨A, A⟩,§ and the following Cauchy-Schwartz inequality holds (see Section
1.8.3:
|⟨A, B⟩| ≤ ∥A∥F ∥B∥F for any A, B ∈ Mm,n .
and
2
q 2 h √ n
√ √ i2 X
F (ρ2 , ρ1 ) = Tr ρ2 ρ1 ρ2 = Tr A† A = Tr (Y DY † ) = sj .
j=1
† 1/2 † 1/2 1/2 1/2
U † and A have the
It is clear that U ρ1 U U ρ2 U = U ρ1 ρ2
same singular values. Thus (1) holds.
To prove (2), we may assume that ρ1 is a pure state as F (ρ1 , ρ2 ) = F (ρ2 , ρ1 ).
By (1), to compute F (ρ1 , ρ2 ), we may replace (ρ1 , ρ2 ) by (U ρ1 U † , U ρ2 U † ) and
assume that ρ1 is the diagonal matrix with diagonal entries 1, 0, . . . , 0. If ρ2
has (1, 1) entry µ, then
q 2
1/2 1/2 √ 2
F (ρ1 , ρ2 ) = Tr ρ1 ρ2 ρ1 = µ =µ
One may see the above properties proved in [16]. In [6], the authors sug-
gested using properties (1) – (3) in the above theorem as the basic require-
ments for any generalization of fidelity measures for comparing mixed states.
We remarked that there are other comparisons between the difference of
two quantum states ρ1 , ρ2 . We name a few examples in the following.
3.7 Entropies
Information carried by a physical system is quantified by various entropies,
both in classical and quantum information theories. Let us start with the
Shannon entropy, which was proposed to quantify classical information.
Density Matrices and Quantum Operations 77
Note that the base of the log function is 2. We will omit 2 in the rest of
this section to simplify the notation. We use ln for loge . For q(x) = 1/p(x),
− log p(x) = log q(x) is approximately the number of digits required to repre-
sent q(x) in binary number. Therefore the information content I(x) is large
if p(x) is small.
Car accident does not happen very often and we are surprised if we hear
our friend was hit by a car. The information we get by this news is large
(I(x) ≫ 1), which is often associated with a big surprise. In contrast, the
probability of watching a dog in 24 hours is close to 1 in usual circumstances
and we do not get new information by this (I(x) ∼ log 1 ∼ 0) and no one will
be surprised by someone watched a dog. Thus, I(x) quantifies the information
we get as well as our surprise at the information.
Let X be a random variable which takes values in X = {x1 , x2 , . . . , xn }
and let p(xk ) be the probability, with which X takes value xk . We only
consider
Pn the case where X is a finite set. The probabilities sum up to one:
k=1 p(x k ) = 1. The Shannon entropy H(p(x)) of this random variable X is
defined as the average of the information contents over X as
n
X
H(p(x)) = − p(xk ) log p(xk ). (3.26)
k=1
We guess from the above two examples that the Shannon entropy is large
if X is more random and small if X is less random.
Clearly the inequality above is saturated if and only if q(xk )/p(xk ) = 1 for all
k, that is p(xk ) = q(xk ) for all k.
Relative entropy measures how close two distributions are. In this sense,
relative entropy is also known as the Kullback-Leibler distance although it
does not satisfy the axioms of distance.
(ii) Let us consider next the uniformly mixed state ρ = In /n, where In is
the identity matrix in Mn . Then
1 1
S(ρ) = −n
log = log n,
n n
which is the maximal possible value of S. To prove this, let us extremize
S̃(ρ) = −Tr (ρ log ρ)−µ(Tr ρ−1), where µ is the Lagrange multiplier that
takes care of the constraint Tr ρ = 1. We impose δ S̃(ρ) = −Tr [(log ρ +
1+µ)δρ] = 0 under the variation δρ, from which we obtain ρ = 2−1−µ In .
The unit trace condition gives µ = log n − 1 as before, from which we
obtain ρ = In /n and S(ρ) = log n.
The above observation shows that 0 ≤ S(ρ) ≤ log n for a general ρ. S(ρ)
measures how much ρ differs from pure states. Note that S(ρ) = 0 if and
only if ρ is a pure state. In fact, S(ρ) has been shown to have only one
maximum at ρ = In /n above, namely at λi = 1/n, ∀i, where {λi } is the set
of eigenvalues of ρ. Then the minima are found at the edges, where λk = 1
and λj = 0 (j ̸= k), for 1 ≤ k ≤ n. These edge points are pure states.
(a)
where we have taken {|fi ⟩} as bases. We obtain S(ρ1 ) = S(ρ2 ) = 2 × 1/2 ×
log2 2 = 1.
Note that the relative entropy is well defined only when ker ρ ⊇ ker σ so
that log 0 is multiplied by 0. Otherwise S(ρ||σ) is divergent.
is a density matrix. Show that the negativity does not vanish for p > 1/3.
EXERCISE 3.3. Verify that
p p
2 0 0 2
0 1−p 1−p
0
ρ2 = 2 2 (0 ≤ p ≤ 1) (3.36)
0 1−p 1−p
0
2 2
p p
2 0 0 2
is a density matrix. Show that the negativity vanishes only for p = 1/2.
EXERCISE 3.4. Let
1
|ψ⟩ = √ (|0⟩|1⟩ − |1⟩|0⟩).
2
Find the corresponding density matrix. Then partial-trace it over the first
Hilbert space to find the reduced density matrix of the second system.
EXERCISE 3.5. Let
1 10
ρ1 =
4 03
be a density matrix with a basis {|0⟩, |1⟩}. Find a purification of ρ1 .
EXERCISE 3.6. Let
s
X √
|Ψ⟩ = pk |ψk ⟩ ⊗ |ϕk ⟩
k=1
Ps
be a purification of ρ1 = k=1 pk |ψk ⟩⟨ψk | ∈ Dm , where {|ϕ1 ⟩, . . . , |ϕs ⟩} is an
orthonormal basis for Cs . Show that
X√
|Ψ′ ⟩ = pk |ψk ⟩ ⊗ U |ϕk ⟩
k
EXERCISE 3.9. Show that every Hermitian matrix H ∈ Mmn can be writ-
ten as a linear combination of density matrices of the form ρ1 ⊗ ρ2 with
ρ1 ∈ Dm and ρ2 ∈ Dn using the following steps.
(1) Let {|e1 ⟩, . . . , |em ⟩} be the standard basis for Cm . Consider the set B1
consisting of matrices in Dm of the form: Dj = |ej ⟩⟨ej | for 1 ≤ j ≤ m, or
Xrs = |er + es ⟩⟨er + es |/2, Yrs = |er − ies ⟩⟨er + ies |/2 for 1 ≤ r < s ≤ m.
If H P= (hrs ) is Hermitian and hrs = xrs + iyrs with xrs , yrs ∈ R, show that
H − r<s (xrs Xrs + yrs Yrs ) is a real diagonal matrix, and hence is a linear
combination of D1 , . . . , Dm . Conclude that H is a real linear combination of
the elements in B1 .
Similarly, if {|f1 ⟩, . . . , |fn ⟩} is the standard basis for Cn , then every Hermitian
matrix G = (grs ) ∈ Mn is a real linear combination of the elements in the set
B2 consisting of elements in Dn of the form |fj ⟩⟨fj | for 1 ≤ j ≤ n, or
|fr + fs ⟩⟨fr + fs |/2, |fr − ifs ⟩⟨fr + ifs |/2 for 1 ≤ r < s ≤ n.
References
[1] E. Riefell and W. Polak, Quantum Computing: A Gentle Introduction,
MIT Press (2011).
[2] M. A. Neilsen and I. L. Chuang, Quantum Computation and Quantum
Information, Cambridge University Press (2000).
[3] D. M. Greenberger, M. A. Horne and A. Zeilinger, in ’Bell’s Theorem,
Quantum Theory, and Conceptions of the Universe, ed. M. Kafatos,
Kluwer, Dordrecht (1989). Also avilable as arXiv:0712.0921 [quant-ph].
[4] W. Dür, G. Vidal and J. I. Cirac, Phys. Rev. A 62, 062314 (2000).
[5] A. Einstein, B. Podolsky, N. Rosen, Phys. Rev. 41, 777 (1935).
[6] Y.-C. Liang, Y.-H. Yeh, P.E.M.F. Mendonça, R.Y. Teh, M.D. Reid, and
P.D. Drummond, Quantum fidelity measures for mixed states, Reports
on Progress in Physics, Volume 82, Number 7, (2019).
[7] M.-D. Choi, Completely Positive Linear Maps on Complex Matrices,
Linear Algebra and its Applications, 10, 285–290 (1975).
[8] K. Kraus, States, Effects and Operations: Fundamental Notions of
Quantum Theory, Springer Verlag, (1983)
Density Matrices and Quantum Operations 87