Qubits: January 24, 2018 11:57 Book-9x6 10943 - Problems and Solutions in Quantum Computing and Quantum Information Book
Qubits: January 24, 2018 11:57 Book-9x6 10943 - Problems and Solutions in Quantum Computing and Quantum Information Book
page 3
Problems and Solutions in Quantum Computing and Quantum Information Downloaded from www.worldscientific.com
Chapter 1
by 118.71.1.254 on 04/11/20. Re-use and distribution is strictly not permitted, except for Open Access articles.
Qubits
1.1 Introduction
A single qubit is a two-state system, such as a two-level atom. The states
(kets) |hi and |vi of the horizontal and vertical polarization of a photon can
also be considered as a two-state system. Another example is the relative
phase and intensity of a single photon in two arms of an interferometer.
The underlying Hilbert space for the qubit is C2 . An arbitrary orthonormal
basis for C2 is denoted by { |0i, |1i }, where (scalar product)
Any pure quantum state |ψi (qubit) of this system can be written, up to a
phase, as a superposition (linear combination of the states)
3
January 24, 2018 11:57 book-9x6 10943 - Problems and Solutions in Quantum Computing and Quantum Information book
page 4
|0ih0| + |1ih1| = I2
|0ih0|, |1ih1|
|0ih0|1ih1| = 02 .
Furthermore
(|0ih1| + |1ih0|)2 = |1ih1| + |0ih0| = I2 .
Given two normalized states |ψi, |φi in C2 , then 0 ≤ |hψ|φi|2 ≤ 1 provides
a probability. Let |ψi ∈ C2 and normalized. Then
ρ = |ψihψ|
ρ2 = |ψihψ|ψihψ| = |ψihψ| = ρ.
1 1
ρ= (I2 + n · σ) ≡ (I2 + n1 σ1 + n2 σ2 + n3 σ3 )
2 2
where n ∈ R3 ,
n · n ≡ n21 + n22 + n23 ≤ 1
and σ = (σ1 , σ2 , σ3 ) denote the Pauli spin matrices
0 1 0 −i 1 0
σ1 = , σ2 = , σ3 = .
1 0 i 0 0 −1
For pure states we have n · n = 1 and ρ = |ψihψ|. The Pauli spin matrices
are hermitian and unitary and admit the eigenvalues +1 and −1.
January 24, 2018 11:57 book-9x6 10943 - Problems and Solutions in Quantum Computing and Quantum Information book
page 5
Qubits 5
Find a parameter representation (i) if the underlying field is the set of real
numbers (ii) if the underlying field is the set of complex numbers.
Solution 1. (i) Using α = cos(θ), β = sin(θ) and the identity cos2 (θ) +
sin2 (θ) ≡ 1 for all θ ∈ R we have
cos(θ)
.
sin(θ)
is normalized.
1 0
(i) |0i := , |1i :=
by 118.71.1.254 on 04/11/20. Re-use and distribution is strictly not permitted, except for Open Access articles.
0 1
1 1 1 1
(ii) |0i := √ , |1i := √
2 1 2 −1
cos(θ) sin(θ)
(iii) |0i := , |1i := .
sin(θ) − cos(θ)
Find the matrix representation of A in these bases.
Solution 3. We find
1 0 0 0 1 0
(i) A = + =
0 0 0 1 0 1
1 1 1 1 1 −1 1 0
(ii) A = + =
2 1 1 2 −1 1 0 1
sin2 (θ)
2
cos (θ) cos(θ) sin(θ) − cos(θ) sin(θ)
(iii) A = +
cos(θ) sin(θ) sin2 (θ) − cos(θ) sin(θ) cos2 (θ)
1 0
= .
0 1
For all three cases A = I2 , where I2 is the 2 × 2 unit matrix. Obviously, the
third case contains the first two as special cases. This is the completeness
relation.
Qubits 7
0 1
UN OT = .
1 0
Thus we see that the respective matrix representations for the two bases
are different.
−1 ∗
(ii) The operator UH is unitary and the inverse is given by UH = UH = UH ,
∗
where denotes the adjoint.
(iii) For the standard basis we find
1 1 1
UH = √ .
Problems and Solutions in Quantum Computing and Quantum Information Downloaded from www.worldscientific.com
2 1 −1
by 118.71.1.254 on 04/11/20. Re-use and distribution is strictly not permitted, except for Open Access articles.
We see that the matrix representations for each of the two bases are the
same.
UH UH = |0ih0| + |1ih1| = I
Qubits 9
Solution 7. (i) For the Pauli matrices we have σ1† = σ1 , σ2† = σ2 , σ3† = σ3 .
Thus Π(n) = Π† (n). Since tr(σ1 ) = tr(σ2 ) = tr(σ3 ) = 0, tr(I2 ) = 2, and the
trace operation is linear, we obtain tr(Π(n)) = 1. Since σ12 = σ22 = σ32 = I2
and
[σ1 , σ2 ]+ = 02 , [σ2 , σ3 ]+ = 02 , [σ3 , σ1 ]+ = 02
Problems and Solutions in Quantum Computing and Quantum Information Downloaded from www.worldscientific.com
2
3 3 3 3
1 X 1 1X 1 XX
Π2 (n) = I2 + nj σj = I2 + nj σj + nj nk σj σk
4 j=1
4 2 j=1 4 j=1
k=1
simplifies to
3 3
1 1X 1X 2
Π2 (n) = I2 + nj σj + n I2 .
4 2 j=1 4 j=1 j
Using n21 + n22 + n23 = 1 we obtain Π2 (n) = Π(n). Thus Π(n) is a projection
matrix.
(ii) We find
iφ
e cos(θ) 1 (1 + n3 )eiφ cos(θ) + (n1 − in2 ) sin(θ)
Π(n) = .
sin(θ) 2 (n1 + in2 )eiφ cos(θ) + (1 − n3 ) sin(θ)
Problem 9. The kets |hi and |vi are states of horizontal and vertical
polarization, respectively. Consider the normalized states
1 √
|ψ1 i = − (|hi + 3|vi)
2
1 √
|ψ2 i = − (|hi − 3|vi)
2
January 24, 2018 11:57 book-9x6 10943 - Problems and Solutions in Quantum Computing and Quantum Information book
page 10
|ψ3 i = |hi
1 √
|φ1 i = √ (−|hi + 2e−2πi/3 |vi)
3
1 √
|φ2 i = √ (−|hi + 2e+2πi/3 |vi)
Problems and Solutions in Quantum Computing and Quantum Information Downloaded from www.worldscientific.com
3
1 √
by 118.71.1.254 on 04/11/20. Re-use and distribution is strictly not permitted, except for Open Access articles.
Since cos2 (θ) + sin2 (θ) = 1 we obtain that tr(ρ) = 1. With hψ|ψi = 1 we
obtain ρ2 = (|ψihψ|)2 = |ψihψ|ψihψ| = |ψihψ| = ρ. Thus we have a pure
state.
Qubits 11
d
by 118.71.1.254 on 04/11/20. Re-use and distribution is strictly not permitted, except for Open Access articles.
i~ |ψi = Ĥ|ψi
dt
with the initial conditions
1
|ψ(t = 0)i = .
0
dσ3
i~ = [σ3 , Ĥ](t)
dt
is given by
σ3 (t) = eiĤt/~ σ3 e−iĤt/~
where σ3 (t = 0) = σ3 . Calculate σ3 (t).
(iv) Show that hψ(t = 0)|σ3 (t)|ψ(t = 0)i = hψ(t)|σ3 |ψ(t)i.
ρin = |0ih0|
where { |0i, |1i } denotes the standard basis. Using this basis find
and
1 eiχ + 1 eiχ − 1
UB UM UP UB =
2 −eiχ + 1 −eiχ − 1
we obtain
1 1 + cos(χ) i sin(χ)
ρout = .
2 −i sin(χ) 1 − cos(χ)
January 24, 2018 11:57 book-9x6 10943 - Problems and Solutions in Quantum Computing and Quantum Information book
page 13
Qubits 13
This yields the intensity along |0i as I ∝ 1 + cos(χ). Thus the relative UP
phase χ could be observed in the output signal of the interferometer.
since h0|0i = h1|1i = 1 and h0|1i = h1|0i = 0. We see that the commutator
is nonzero.
(ii) Since h0|1i = h1|0i = 0 we find
∞ j
X t
exp(t|0ih1|) = (|0ih1|)j = I2 + t|0ih1|.
j=0
j!
Analogously
∞ j
X t
exp(t|1ih0|) = (|1ih0|)j = I2 + t|1ih0|.
j=0
j!
Problem 14. Consider the unitary matrix for the NOT gate
0 1
UN OT = .
1 0
January 24, 2018 11:57 book-9x6 10943 - Problems and Solutions in Quantum Computing and Quantum Information book
page 14
1 1+i 1−i
V = .
by 118.71.1.254 on 04/11/20. Re-use and distribution is strictly not permitted, except for Open Access articles.
2 1−i 1+i
Σ := n · σ ≡ n1 σ1 + n2 σ2 + n3 σ3 .
(i) Calculate the matrix Σ2 . From this result and the fact that Σ is hermi-
tian show that Σ is unitary. Find the eigenvalues of Σ.
(ii) Let
1
|ψi = .
0
Calculate the state Σ|ψi and the probability |hψ|Σ|ψi|2 .
Solution 15. (i) Using n21 + n22 + n23 = 1, σ12 = σ22 = σ32 = I2 and
σ1 σ2 + σ2 σ1 = 02 , σ1 σ3 + σ3 σ1 = 02 , σ2 σ3 + σ3 σ2 = 02
we obtain
Σ2 = (n1 σ1 + n2 σ2 + n3 σ3 )2
= (n21 + n22 + n23 )I2
+n1 n2 (σ1 σ2 + σ2 σ1 ) + n1 n3 (σ3 σ1 + σ1 σ3 ) + n2 n3 (σ2 σ3 + σ3 σ2 )
= I2 .
Qubits 15
n · σ := n1 σ1 + n2 σ2 + n3 σ3 .
1
exp(iθn · σ) .
0
where α ≥ 0. Find α where the energy gap between the two energy levels
is the smallest.
Thus p
E1 (α) − E0 (α) = 2~ω 1 + α2 .
January 24, 2018 11:57 book-9x6 10943 - Problems and Solutions in Quantum Computing and Quantum Information book
page 16
∆ −~ω
by 118.71.1.254 on 04/11/20. Re-use and distribution is strictly not permitted, except for Open Access articles.
where ∆ ≥ 0.
(i) Find the eigenvalues and the normalized eigenvectors of Ĥ.
(ii) Use the Cayley-Hamilton theorem to calculate exp(−iĤt/~).
Solution 18. (i) From det(Ĥ − EI2 ) = 0 we find the two eigenvalues
p
E± = ± ~2 ω 2 + ∆2 .
√
We set E := ~2 ω 2 + ∆2 . Then from the eigenvalue equation
~ω ∆ u1 u1
= E+
∆ −~ω u2 u2
Qubits 17
Thus
cos(Et/~) − i sin(Et/~)~ω/E −i sin(Et/~)∆/E
e−iĤt/~ = .
−i sin(Et/~)∆/E cos(Et/~) + i sin(Et/~)~ω/E
Problem 19. Consider the Pauli spin matrices σ1 , σ2 , σ3 . Can one find
an α ∈ R such that exp(iασ3 )σ1 exp(−iασ3 ) = σ2 ?
Problem 21. Let |ψ1 i and |ψ2 i be two normalized states in a Hilbert
space H. A distance d with 0 ≤ d ≤ π/2 can be defined as
cos2 (d) := |hψ1 |ψ2 i|2 .
Let H = C2 and consider the normalized states
1 1 1 1
|ψ1 i = √ , |ψ2 i = √ .
2 1 2 −1
Find d.
Solution 21. Since hψ1 |ψ2 i = 0 we have cos2 (d) = 0 and therefore
d = π/2.
January 24, 2018 11:57 book-9x6 10943 - Problems and Solutions in Quantum Computing and Quantum Information book
page 18
1 0 1/2 0
ρ1 = , ρ2 =
0 0 0 1/2
and ΠS + ΠA = I2 , ΠS ΠA = 02 .
(ii) Consider the normalized state
iφ
e sin(θ)
|ψi = .
cos(θ)
Then
eiφ sin(θ) − i cos(θ) eiφ sin(θ) + i cos(θ)
ΠS |ψi = , ΠA |ψi =
ieiφ sin(θ) + cos(θ) −ieiφ sin(θ) + cos(θ)
Qubits 19
v1 = ψ ∗ σ1 ψ, v2 = ψ ∗ σ2 ψ, v3 = ψ ∗ σ3 ψ.
1
cos(θ) sin(θ) ≡ sin(2θ), cos2 (θ) − sin2 (θ) ≡ cos(2θ)
2
we obtain
v1 = ψ ∗ σ1 ψ = cos(φ) sin(2θ)
v2 = ψ ∗ σ2 ψ = − sin(φ) sin(2θ)
v3 = ψ ∗ σ3 ψ = cos(2θ).
The vector
v1 cos(φ) sin(2θ)
v = v2 = − sin(φ) sin(2θ)
v3 cos(2θ)
is normalized, i.e. kvk2 = 1.
Calculate the variance VH (ψ) := hψ|H 2 |ψi − (hψ|H|ψi)2 and discuss the
Problems and Solutions in Quantum Computing and Quantum Information Downloaded from www.worldscientific.com
dependence on θ.
by 118.71.1.254 on 04/11/20. Re-use and distribution is strictly not permitted, except for Open Access articles.
hψ|H 2 |ψi = h211 cos2 (θ) + h222 sin2 (θ) + h212 + 2h12 (h11 + h22 ) cos(θ) sin(θ)
and
(hψ|H|ψi)2 = h211 cos4 (θ) + h222 sin4 (θ) + 2h11 h22 cos2 (θ) sin2 (θ)
+4h11 h12 cos3 (θ) sin(θ) + 4h22 h12 cos(θ) sin3 (θ).
Thus
VH (|ψi) = (h211 + h222 − 2h11 h22 ) sin2 (θ) cos2 (θ) + h212 (1 − 4 cos2 (θ) sin2 (θ))
+2h12 h11 sin(θ) cos(θ)(1 − 2 cos2 (θ))
+2h12 h22 sin(θ) cos(θ)(1 − 2 sin2 (θ)).
and the basis |0i, c† |0i. The dual basis is h0|, h0|c. Find the matrix repre-
sentation of Ĥ and the eigenvalues of the matrix.
Qubits 21
~ω1 e−iφ
0
.
~ω1 eiφ ~ω2
Problems and Solutions in Quantum Computing and Quantum Information Downloaded from www.worldscientific.com
by 118.71.1.254 on 04/11/20. Re-use and distribution is strictly not permitted, except for Open Access articles.
Ĥ = ε0 I2 + ~ωσ3 + ∆1 σ1 + ∆2 σ2
From
Obviously the two eigenvectors are orthonormal to each other, i.e. the
scalar product vanishes. The eigenvectors do not depend on ε0 .
1
(∆Â)(∆B̂) ≥ |h[Â, B̂]i|
2
where q q
∆ := hÂ2 i − hÂi2 , ∆B̂ := hB̂ 2 i − hB̂i2
and
hÂi := hψ|Â|ψi, hB̂i := hψ|B̂|ψi.
Consider the hermitian spin- 21 matrices
1 0 1 1 0 −i 1 1 0
S1 = , S2 = , S3 = .
2 1 0 2 i 0 2 0 −1
1
(∆Â)(∆B̂) = |h[Â, B̂]i|
2
i.e. the inequality given above should be an equality.
1
S12 = S22 = S32 = I2 .
4
We set
c1
|ψi = , hψ| = ( c∗1 c∗2 )
c2
January 24, 2018 11:57 book-9x6 10943 - Problems and Solutions in Quantum Computing and Quantum Information book
page 23
Qubits 23
with c1 c∗1 + c2 c∗2 = 1 (normalization). Thus we have for the right-hand side
of the equality
1 1 1 1 0 c1 1 2
|h[Â, B̂]i| = |hψ|iS3 |ψi = ( c∗1 c∗2 ) = |r − r22 |
2 2 4 0 −1 c2 4 1
Problems and Solutions in Quantum Computing and Quantum Information Downloaded from www.worldscientific.com
r
1 1
q
∆S1 = h I2 i − hS1 i2 = 1 − (c∗1 c2 + c1 c∗2 )2
4 2
r
1 1
q
∆S2 = h I2 i − hS2 i2 = 1 − (c1 c∗2 − c∗1 c2 )2 .
4 2
Thus for the left-hand side we find
1 1
q q
(∆S1 )(∆S2 ) = √ 1 − (c1 c∗2 )2 − (c∗1 c2 )2 = √ 1 − 2r12 r22 cos(2(φ1 − φ2 )).
2 2 2 2
Thus the condition from the equality is
1 1
q
√ 1 − 2r12 r22 cos(2(φ1 − φ2 )) = |r12 − r22 |.
2 2 4
1
|hb2j |b1k i| = √
d
ejk = UH Ejk U ∗ ,
E j, k = 1, 2
H
Qubits 25
Programming Problems
and
1
hψ|N HV W |ψi = √ .
2
Problem 2. Consider the Pauli spin matrix σ1 and the normalized state
Problems and Solutions in Quantum Computing and Quantum Information Downloaded from www.worldscientific.com
in C2
by 118.71.1.254 on 04/11/20. Re-use and distribution is strictly not permitted, except for Open Access articles.
cos(θ)
|ψi = .
sin(θ)
Calculate the variance
Vσ1 (ψ) := hψ|σ12 |ψi − (hψ|σ1 |ψi)2
and discuss the dependence on θ
Qubits 27
/* Hamilton1.mac */
H: matrix([1,1],[1,-1])/sqrt(2);
list: eigenvectors(H);
p1: part(list,1);
p11: part(p1,1);
Problems and Solutions in Quantum Computing and Quantum Information Downloaded from www.worldscientific.com
lam1: part(p11,1);
lam2: part(p11,2);
by 118.71.1.254 on 04/11/20. Re-use and distribution is strictly not permitted, except for Open Access articles.
p2: part(list,2);
v1: part(p2,1); v1: part(v1,1);
v2: part(p2,2); v2: part(v2,1);
v2T: transpose(v2);
scalar: v1 . v2T;
scalar: ratsimp(scalar);
provides the eigenvalues λ1 = −1, λ2 = 1 with the corresponding (nonnor-
malized) eigenvectors
√ 1 √ 1
v1 = , v2 = .
− 2−1 2−1
The two eigenvectors are orthogonal to each other, i.e. scalar=0.
X := x1 σ1 + x2 σ2 + x3 σ3 , Y := y1 σ1 + y2 σ2 + y3 σ3 .
Problems and Solutions in Quantum Computing and Quantum Information Downloaded from www.worldscientific.com
x1 y1
X ↔ x = x2 , Y ↔ y = y2 .
x3 y3
1
x·y = tr(XY ).
2
(iii) Show that
x2 y3 − x3 y2
i
− [X, Y ] ↔ x × y = x3 y1 − x1 y3 .
2
x1 y2 − x2 y1
Qubits 29
Find AB and AhBi + BhAi − hAihBiI2 and the distance (Frobenius norm)
between the two matrices.
by 118.71.1.254 on 04/11/20. Re-use and distribution is strictly not permitted, except for Open Access articles.
Find AB and AhBi + BhAi − hAihBiI2 and the distance (Frobenius norm)
between the two matrices.
(iii) Consider the case
cos(θ)
A = σ1 , B = σ2 , v = .
sin(θ)
Find AB and AhBi + BhAi − hAihBiI2 and the distance (Frobenius norm)
between the two matrices.
1 1
Π+ = (I2 + σj ), Π− = (I2 − σj )
2 2
(j = 1, 2, 3) are projection matrices. Find the vectors
1 1 1 1
Π+ √ , Π− √ .
2 1 2 1
Problem 9. Let |0i, |1i be an orthonormal basis in C2 and z00 , z01 , z10 ,
z11 be complex numbers. Calculate
Then set