Docsity

Quantum Computing Assignment 1 for COT 6600 - Prof. Pawel Wocjan, Assignments of Computer Science

Toggle sidebar
bg1
COT 6600: Quantum Computing
Assignment 1
Out: 08/31/2007 Due: 09/13/2007
The kets |+i,|−i,|0i, and |1iare defined as follows:
|0i:= 1
0,|1i:= 0
1,|+i:= 1
√2(|0i+|1i,|−i := 1
√2(|0i−|1i)
1. (12 points) Which of the following sets are orthonormal bases (ONB) of C2.
(a) (2 points) {|+i,|−i}
(b) (2 points) {|0i,|1i}
(c) (2 points) {|0i−|1i,|0i+|1i}
(d) (2 points) {1
√21
i,1
√21
−i}
(e) (2 points) {1
√2cos θ
sin θ,1
√2sin θ
−cos θ}
(f) (2 points) {1
√21
i,1
√21
−1}
2. (12 points) Compute:
(a) (4 points) h10|+−i and h1|+ih0|−i
(b) (4 points) h01| − +iand h0|−ih1|+i
(c) (4 points) Let |ψi=|ψ1i ⊗ |ψ2iand |φi=|φ1i ⊗ |φ2i, where |ψ1i,|ψ2i,|φ1i,and
|φ2iare arbitrary vectors in C2. Show that hψ|φi=hψ1|φ1ihψ2|φ2i.
3. (9 points) Let |ψi,|ϕibe an orthonormal basis in the Hilbert space C2.
Let A:= |ψihψ|+|ϕihϕ|.
Find the matrix representation of Awith respect to the basis {|0i,|1i} where |ψiand
|ϕiare as follows:
(a) (3 points) |ψi:= 1
0,|ϕi:= 0
1
(b) (3 points) |ψi:= 1
√21
1,|ϕi:= 1
√21
−1
Page 1 of 2
pf2

Partial preview of the text

Download Quantum Computing Assignment 1 for COT 6600 - Prof. Pawel Wocjan and more Assignments Computer Science in PDF only on Docsity!

COT 6600: Quantum Computing

Assignment 1 Out: 08/31/2007 Due: 09/13/

The kets |+〉, |−〉, | 0 〉, and | 1 〉 are defined as follows:

  1. (12 points) Which of the following sets are orthonormal bases (ONB) of C 2 .

(a) (2 points) {|+〉, |−〉}

(b) (2 points) {| 0 〉, | 1 〉}

(c) (2 points) {| 0 〉 − | 1 〉, | 0 〉 + | 1 〉}

(d) (2 points) { √^1 2

i

√^1 2

−i

(e) (2 points) { √^1 2

cos θ sin θ

, √^1

2

sin θ − cos θ

(f) (2 points) { √^1 2

i

, √^1

2

  1. (12 points) Compute:

(a) (4 points) 〈 10 | + −〉 and 〈 1 |+〉〈 0 |−〉

(b) (4 points) 〈 01 | − +〉 and 〈 0 |−〉〈 1 |+〉

(c) (4 points) Let |ψ〉 = |ψ 1 〉 ⊗ |ψ 2 〉 and |φ〉 = |φ 1 〉 ⊗ |φ 2 〉, where |ψ 1 〉, |ψ 2 〉, |φ 1 〉, and |φ 2 〉 are arbitrary vectors in C 2

. Show that 〈ψ|φ〉 = 〈ψ 1 |φ 1 〉〈ψ 2 |φ 2 〉.

  1. (9 points) Let |ψ〉, |ϕ〉 be an orthonormal basis in the Hilbert space C 2 . Let A := |ψ〉〈ψ| + |ϕ〉〈ϕ|.

Find the matrix representation of A with respect to the basis {| 0 〉, | 1 〉} where |ψ〉 and |ϕ〉 are as follows:

(a) (3 points) |ψ〉 :=

, |ϕ〉 :=

(b) (3 points) |ψ〉 := √^1 2

, |ϕ〉 := √^1 2

Page 1 of 2

(c) (3 points) |ψ〉 :=

cos θ sin θ

, |ϕ〉 :=

sin θ − cos θ

  1. (17 points) The Hadamard transform H is a 1-qubit opertion that acts as follows

√^1 2

√^1 2

Let X = | 0 〉〈 1 | + | 1 〉〈 0 |.

(a) (5 points) Find the inverses of H and X. (Hint: see if H and X are unitary)

(b) (12 points) Determine the matrix representations of H and X with respect to these bases

{| 0 〉, | 1 〉}, {|+〉, |−〉}, {

i

−i

  1. (10 points) Let B = {|ψ 1 〉, |ψ 2 〉,... , |ψd〉} be the orthonormal basis in Cd. Let

|φ〉 =

∑^ d

i=

αi|ψi〉 and |ϕ〉 =

∑^ d

j=

βj |ψj 〉.

Compute:

(a) (2 points) 〈φ|ϕ〉

(b) (2 points) 〈ϕ|φ〉

(c) (3 points) ‖|φ〉 ⊗ |ϕ〉‖

(d) (3 points) ‖|φ〉‖ · ‖|ϕ〉‖

  1. (10 points) Compute (H ⊗ X)(| 0 〉 ⊗ |−〉) and (H| 0 〉) ⊗ (X|−〉), where H and X are

defined as follows:

H := √^1 2

, X :=

Are these vectors equal?

  1. (Extra 10 points) In class, we discussed the matrix representation of the controlled-NOT

gate (CN OT ). Let

T = | 0 〉〈 0 | ⊗

Show that T and CN OT are equal.

Page 2 of 2