Try   HackMD

Solution of An Introduction to Quantum Computing

Contribute

The solutions may not detailed enough or may have some errors. Welcome to edit it to make it better.

Book Information

  • Authors: Phillip Kaye, Raymond Laflamme, Michele Mosca
  • Edition: 1st
  • Publisher: Oxford University Press
  • Publish Date: 2007/01/18 (yyyy/mm/dd)
  • ISBN-10: 019857049X
  • ISBN-13: 978-0198570493

Exercise 1.5.1

Question

A sequence of

n CNOT gates with the target bits all initialized to 0 is the simplest way to copy an
n
-bit string
y
stored in the control bits. However, more sophisticated copy operations are also possible, such as a circuit that treats a string
y
as the binary representation of the integer
y1+2y2+4y3+2n1yn
and adds
y
modulo
2n
to the copy register (modular arithmetic is defined in Section 7.3.2).

Describe a reversible 4-bit circuit that adds modulo 4 the integer

y{0,1,2,3} represented in binary in the first two bits to the integer
z
represented in binary in the last two bits.

Answer

Not yet

Exercise 2.3.1

Question

Prove that the trace has the cyclic property

Tr(ABC)=Tr(BCA).

Answer

Exercise 2.3.2

Question

Using the result of the previous exercise, together with the fact that a change of orthonormal basis can be written as a unitary operator, show that

Tr(A) is independent of the basis in which it is expressed. Notice that in the matrix representation,
Tr(A)
equals the sum of the diagonal entries of the square matrix
representing
A
.

Answer

If the unitary operator

U's columns are composed by the new basis representing in the original basis, the transformed
A
, which is represented as
A
is

A=U1AU

Calculate trace of the both sides.

Tr(A)=Tr(U1AU)=Tr(UU1A)(Tr(ABC)=Tr(BCA))=Tr(A)

The trace doesn't change after changing the basis. This result holds for all linear independent basis.

Q.E.D.

Exercise 3.2.1

Question

Show that (3.2.12) is a solution of the time-independent Schrödinger equation.

(3.2.12)|ψ(t2)=eiH(t2t1)|ψ(t1)

Answer

From Schrödinger equation

it|ψ(t)=H|ψ(t),

we can get the general solution of

|ψ(t) is

|ψ(t)=eiHt|C,

where

|C is a time-independent state. Substituting
t
by
t1
and
t2
, we get

|C=eiHt2|ψ(t2)=eiHt1|ψ(t1)|ψ(t2)=eiH(t2t1)|ψ(t1)

Q.E.D.

Exercise 3.3.1

Question

Consider the 2-qubit state

|ψ=12|0|0+12|1|1

Show that this state is entangled by proving that there are no possible values

α0,
α1
,
β0
,
β1
such that

|ψ=(α0|0+α1|1)(β0|0+β1|1).

(Note, the state

|ψ above is called an EPR pair, named for Einstein, Podolsky, and Rosen, who considered such states in their investigations of quantum mechanics.)

Answer

Exercise 3.4.1

Question

(a) Prove that if the operators

Pi satisfy
Pi=Pi
and
Pi2=Pi
, then
PiPj=0
for all
ij
.

(b) Prove that any pure state

|ψ can be decomposed as
|ψ=iαi|ψi
where
αi=p(i)
,
p(i)=ψ|Pi|ψ
, and
|ψi=Pi|ψp(i)
.
Also prove that
ψi|ψj=δi,j
.

(c) Prove that any decomposition

I=iPi of the identity operator on a Hilbert space of dimension
N
into a sum of nonzero projectors
Pi
can have at most
N
terms in the sum.

Answer

(a) This statement is not true. Here is a counter-example.

Pi=[000010001],Pj=[100010000]PiPj=[000010001][100010000]=[000010000]0

To make the statement true, we have to add one more condition.

(1)I=P1+P2++Pi++Pj++PN

Each

Pk, where
1kN
, is a
N×N
matrix and statifies
Pk2=Pk
.

Rk{Pkv:vN×1 vectorsS}

In fact,

Rk is the image of
Pk
. Because, for every
vS
, the summation of projected
v
equals
v
itself,

P1v++PNv=(P1++PN)v=Iv(by (1))=v

the sum of subspaces

Rk is
S
.

kRk=k{Pkv:vS}={kPkv:vS}={(kPk)v:vS}={Iv:vS}(by (1))={v:vS}(2)=S

In the next step, it shows the sum of dimensions of

Rk is
N
.
ak
is the number of zero-valued eigenvalues of
Pk
and
λkm
is the
m
th eigenvalue of
Pk

Misplaced &

*One eigenspace corresponding to eigenvalue 0 contributes one dimention of the kernel.

As a result, if two different

Rk contribute the same dimension, it disobeys (2). This implies the direct sum of
Rk
is
S
.

kRk=S

Because the direct sum of the image and the kernel of a projector is the original vector space,

PjvRjKer(Pi)

for every

vS. By the definition of kernel, we get

PiPjv=0, vSPiPj=0

Q.E.D.

(b)

The statement of the question is only true if

αi is a real number. Here is the counter-example that
αi
is not a real number. Let

Pi=[1000],|ψ=[i0].

Pi's normalized eigenvector corresponding to the non-zero eigenvalue is

|ψi=[10].

We get

ψ|Pi|ψ=p(i)=1

and

Pi|ψ=αi|ψi[1000][i0]=i[10]αi=ip(i)=1

We change the statement of the question. Let

|αi|2=p(i) and
|ψ
be normalized to make the statement true. Below is the proof.

I=iPiI|ψ=iPi|ψ|ψ=iαi|ψi

|ψi is the result of projecting
|ψ
by
Pi
. We will show
|ψ
should be normalized under the requirement from the question.

Pi|ψ=αi|ψiψ|PiPi|ψ=ψi|αiαi|ψiψ|PiPi|ψ=ψi|αiαi|ψi(Pi=Pi)ψ|Pi|ψ=ψi|αiαi|ψi(Pi2=Pi)ψ|Pi|ψ=|αi|2ψi|ψi(αi is a number)ψ|Pi|ψ=|αi|2(|ψi is normalized)p(i)=|αi|2(Hermitian's expected value is real*)

*Refer to Hermitian's expected value is real

Below prove

ψi|ψj=δi,j.

ψi|ψj=ψi|PiPj|ψj(definition of |ψi)=ψi|PiPj|ψj(Pi=Pi)=ψi|0|ψj(if ij, PiPj=0, proved at (a))=0

When

i=j,
ψi|ψi=1
because
|ψi
is normalized. Combined these two cases, we get
ψi|ψj=δi,j

Q.E.D.

(c)

Denote the

N-dimension Hilbert space as
S
.

I=1iNPiIv=iPiv(vS)v=iPiv

v and each
Piv
are in
S
. There are at most
N
linear independent vector in a
N
-dimension Hilbert space. If there is
N+1
term in the sum,
PN+1v
can be represent as the linear combination of the other
N
terms.

PN+1v=a1P1v++aNPNv(aiC)

And because

PN+1v is not zero in our assumption, there must be an
ai0
. Assume
ai0
.

PN+1v=a1P1v++aNPNvPiPN+1v=a1PiP1v++aiPiPiv++aNPiPNv0=aiPiPiv(PiPj=0)0=aiPiv0(Pi2=Pi)

We get a contradictory result, so it has at most N terms in the sum.

Q.E.D

Exercise 3.4.2

Question

Show that measuring the observable

|11| is equivalent to measuring the observable
Z
up to a relabelling of the measurement outcomes.

Answer

Exercise 3.4.3

Question

Verify that a measurement of the Pauli observable

X is equivalent to a complete measurement with respect to the basis
{12|0+|1,12|0|1}
basis.

Answer

Exercise 3.4.4

Question

(a) Prove that performing a projective measurement with respect to

P0 and
P1
(defined above) on an
n
-qubit state is equivalent to measuring the observable
Zn
.

(b) Explain why performing a complete Von Neumann measurement with respect to the computation basis, and then outputting the parity of the resulting string is not equivalent to performing a projective measurement of the parity.

Answer

Exercise 3.4.5

Question

The observable formalism gives a convenient way to describe the expected value of a quantum measurement, where the eigenvalues

mi correspond to some relevant physical quantity. Such expectation values are particularly relevant for quantum experiments (particularly the early ones) where one does not measure individual quantum systems, but rather an ensemble of many independent and identically prepared systems, and where the measurement apparatus provides only cumulative results (e.g. the net magnetic field induced by an ensemble of nuclear spins). Consider a projective measurement described by projectors
Pi
, and suppose we measure the state
|ψ
. Show that the expected value of
mi
is

E(mi)=Tr(M|ψψ|)

Answer

Exercise 3.5.1

Question

Find the density matrices of the following states:
(a)

{(|0,12),(|1,12)}
(b)
12|0+12|1

(c)
{(12|0+12|1,12),(12|012|1,12)}

Answer

Density operator of a mixed state

{(|ψ1,p1),(|ψ2,p2),} is
p1|ψ1ψ1|+p2|ψ2ψ2|+
.

(a)

ρ=12|00|+12|11|=[120012]

(b)

ρ=(12|0+12|1)(120|+121|)=12|00|+12|01|+12|10|+12|11|(expansion)=[12121212]

(c)

ρ=12(12|0+12|1)(120|+121|)+12(12|012|1)(120|121|)=12(12|00|+12|01|+12|10|+12|11|)+12(12|00|12|01|12|10|+12|11|)(expansion)=12|00|+12|11|=[120012]

Exercise 3.5.2

Question

(a)
Prove that the density operator

ρ for an ensemble of pure states satisfies the following conditions:
(i)
Tr(ρ)=1
.
(ii)
ρ
is a positive operator (i.e. for any
|v
,
v|ρ|v
is real and non-negative; equivalently, the eigenvalues of
ρ
are non-negative).

(b)
Show that for any matrix

ρ satisfying conditions 1 and 2, there exists a finite list of probabilities
pi
and pure states
|ψi
such that
ρ
is the density matrix of the mixed state

{(|ψ1,p1),(|ψ2,p2),,(|ψk,pk)}.

Answer

(a)
(i)

Trace is the sum of eigenvalues.

Tr(ρ)=iNλi

N is the dimension of the state,
{λi}
are the eigenvalues of
ρ
.

The definition of the density operator

ρ|ψψ|, where
|ψ
is the state with unit length. Let's prove the eigenvectors of
ρ
are
|ψ
and other
N1
vectors which are orthogonal to
|ψ
and each other. Denote the
N1
orthogonal vectors as
{|ψi | 1iN1}
.

First, prove

|ψ is one of the eigenvector of
ρ
.

ρ|ψ=|ψψ|ψ(definition of density operator)=|ψ1(state is an unit vector)=1|ψ

Second, prove

|ψi is the eigenvector of
ρ
.

ρ|ψi=|ψψ|ψi(definition of density operator)=|ψ0(inner product of orthogonal vectors is zero)=0=0|ψi

Denote the corresponding eigenvalue of

|ψi is
λi
and the eigenvalues to
|ψ
is
λN
. From the proof above, we get
λi=0
for
1iN1
and
λN=1
.

Tr(ρ)=iNλi=λN=1

Q.E.D.

(ii)

From (i), we get the eigenvectors of

ρ form an orthonormal basis
{|ψj | 1jN}
. We can express any vector
|v
as

|v=jNaj|ψj, ajC

v|ρ|v=v|ψψ|v=(jNajψj|ψ)(jNajψ|ψj)=(jNajψj|ψN)(jNajψN|ψj)(|ψ is denoted as |ψN, see (i))=aNψN|ψNaNψN|ψN({|ψj} are orthogonal to each other)=aNaN({|ψj}are nomalized)=|aN|2R

And in (i), we have proved the eigenvalues of

ρ are
0
s and
1
, which are non-negative.

Q.E.D.

(b)

Because positive operators on

HC are normal operators. See

ρ can be written as a spectral decomposition by an unitary operator.

ρ=UΛU1=UΛU

The columns of

U are the
ρ
's eigenvectors
{|ψi}
and
Λ
is a diagonal matrix composed by
{λi | ρ|ψi=λi|ψi}
the eigenvalues of
ρ
. In the equations below, we use
ei|
to denote the elements of the Cartesian basis.

ei|=[00i1 times100Ni times]1N|ei=[00i1 times100Ni times]T1N

ρ=UΛU=U[iNλi|eiei|]U=iNUλi|eiei|U=iN[λi(U|ei)(ei|U)]=iN[λi(U|ei)(U|ei)]((AB)=BA)=iNλi|ψi(|ψi)=iNλi|ψiψi|

Because

Tr(ρ)=1,
iNλi=1
. The sum above is the finite list we need.

{(|ψ1,λ1),(|ψ2,λ2),,(|ψN,λN)}.

Q.E.D.

Exercise 3.5.3

Question

Consider any linear transformation

T on a Hilbert space
H
of dimension
N
. This linear transformation
T
induces a transformation
ρTρT
on the set of linear operators on the Hilbert space
H
. Prove that the above transformation is also linear.

Answer

To prove

ρTρT is linear, we have to prove

  1. Additivity:
    T(ρ1+ρ2)T=Tρ1T+Tρ2T
  2. Homogenity:
    T(aρ)T=a(TρT)

Additivity:

T(ρ1+ρ2)T=[T(ρ1+ρ2)]T(associative)=(Tρ1+Tρ2)T(T is linear transformation)=[T(Tρ1+Tρ2)]((AB)=BA)={T[(Tρ1)+(Tρ2)]}((A+B)=A+B)=[T(Tρ1)+T(Tρ2)](T is linear transformation)=[T(Tρ1)]+[T(Tρ2)]((A+B)=A+B)=(Tρ1)T+(Tρ2)T((AB)=BA)=Tρ1T+Tρ2T(associative)

Q.E.D.

Homogenity:

T(aρ)T=[T(aρ)]T(associative)=(aTρ)T(T is linear transformation)=a(TρT)(associative)

Q.E.D.

Appendix

eigenvalues of projectors

Hermitian operator's eigenvalues are real

Prove if

T=T

, then

T|ψ=λ|ψ,λR

proof:

(1)(T|ψ)T|ψ=(T|ψ)|ψ(AB=(AB))=ψ|TT|ψ((T|ψ)=ψ|T)=ψ|T|ψ(T=T)=ψ|(T|ψ)=ψ|(T|ψ)(AB=(AB))=ψ|(λ|ψ)(T|ψ=λ|ψ)=ψ|λ|ψ(AB=(AB))=λψ|ψ

(2)(T|ψ)T|ψ=(λ|ψ)T|ψ(T|ψ=λ|ψ)=λ|ψT|ψ(λ is a number)=λψ|ψ(|ψT=|ψ=ψ|)

Because

|ψ0, by comparing (1) and (2), we get
λ=λ
, hence
λR
.

Hermitian operator's expected value is real

ψ|T|ψ=ψ|T|ψT(ψ|T|ψ is a number)=([v1v2]T[v1v2])T(represent |ψas[v1v2])=[v1v2]TT[v1v2]((ABC)T=CTBTAT)=[v1v2]T[v1v2](T=T)=ψ|T|ψ=ψ|T|ψ(AB=(AB))

ψ|T|ψ=ψ|T|ψψ|T|ψR

Q.E.D.

Trace is sum of eigenvalues

Refer to Shayan Oveis Gharan's lecture note: Lecture 10: Linear Algebra Background on P.10-3.

tags: Quantum Computing Solution