Quantum Information & Quantum Computing

Similar documents
Quantum Information & Quantum Computing

1 Readings. 2 Unitary Operators. C/CS/Phys C191 Unitaries and Quantum Gates 9/22/09 Fall 2009 Lecture 8

C/CS/Phys 191 Quantum Gates and Universality 9/22/05 Fall 2005 Lecture 8. a b b d. w. Therefore, U preserves norms and angles (up to sign).

Quantum Computing Lecture 2. Review of Linear Algebra

LINEAR ALGEBRA BOOT CAMP WEEK 4: THE SPECTRAL THEOREM

Unitary Dynamics and Quantum Circuits

The following definition is fundamental.

Quantum Physics II (8.05) Fall 2002 Assignment 3

Hilbert Space, Entanglement, Quantum Gates, Bell States, Superdense Coding.

MATH 31 - ADDITIONAL PRACTICE PROBLEMS FOR FINAL

. Here we are using the standard inner-product over C k to define orthogonality. Recall that the inner-product of two vectors φ = i α i.

Quantum Computing Lecture 3. Principles of Quantum Mechanics. Anuj Dawar

Chapter III. Quantum Computation. Mathematical preliminaries. A.1 Complex numbers. A.2 Linear algebra review

Linear Algebra 2 Spectral Notes

Ph 219b/CS 219b. Exercises Due: Wednesday 20 November 2013

Lecture 3: Hilbert spaces, tensor products

Math 108b: Notes on the Spectral Theorem

Mathematical Methods wk 2: Linear Operators

2. Introduction to quantum mechanics

Spectral Theorem for Self-adjoint Linear Operators

Quantum Mechanics II: Examples

MP 472 Quantum Information and Computation

MATH 423 Linear Algebra II Lecture 33: Diagonalization of normal operators.

Chapter 10. Quantum algorithms

Linear Algebra and Dirac Notation, Pt. 2

Elementary linear algebra

October 25, 2013 INNER PRODUCT SPACES

Linear Algebra and Dirac Notation, Pt. 3

Introduction to Quantum Computing

Linear Algebra and Dirac Notation, Pt. 1

Ph 219b/CS 219b. Exercises Due: Wednesday 21 November 2018 H = 1 ( ) 1 1. in quantum circuit notation, we denote the Hadamard gate as

Chapter 2. Linear Algebra. rather simple and learning them will eventually allow us to explain the strange results of

Complex numbers: a quick review. Chapter 10. Quantum algorithms. Definition: where i = 1. Polar form of z = a + b i is z = re iθ, where

Math 113 Final Exam: Solutions

Lecture 2: Linear operators

Introduction to Quantum Computing

Assignment 11 (C + C ) = (C + C ) = (C + C) i(c C ) ] = i(c C) (AB) = (AB) = B A = BA 0 = [A, B] = [A, B] = (AB BA) = (AB) AB

PHYS 705: Classical Mechanics. Rigid Body Motion Introduction + Math Review

1 Dirac Notation for Vector Spaces

Linear Algebra using Dirac Notation: Pt. 2

WOMP 2001: LINEAR ALGEBRA. 1. Vector spaces

Lecture 4: Postulates of quantum mechanics

Quantum Entanglement and the Bell Matrix

Math Linear Algebra II. 1. Inner Products and Norms

Real symmetric matrices/1. 1 Eigenvalues and eigenvectors

Math 350 Fall 2011 Notes about inner product spaces. In this notes we state and prove some important properties of inner product spaces.

Appendix A. Vector addition: - The sum of two vectors is another vector that also lie in the space:

Linear algebra. 1.1 Numbers. d n x = 10 n (1.1) n=m x

MATRICES ARE SIMILAR TO TRIANGULAR MATRICES

Quantum Statistics -First Steps

Summary of Week 9 B = then A A =

Grover s algorithm. We want to find aa. Search in an unordered database. QC oracle (as usual) Usual trick

Functional Analysis Exercise Class

DECAY OF SINGLET CONVERSION PROBABILITY IN ONE DIMENSIONAL QUANTUM NETWORKS

5.6. PSEUDOINVERSES 101. A H w.

PHY305: Notes on Entanglement and the Density Matrix

The Principles of Quantum Mechanics: Pt. 1

Mathematical Introduction

Quantum Gates, Circuits & Teleportation

Matrix Factorization and Analysis

Foundations of Matrix Analysis

Quantum Entanglement and Error Correction

The Classification of Clifford Gates over Qubits

EXERCISES ON DETERMINANTS, EIGENVALUES AND EIGENVECTORS. 1. Determinants

Optimal Realizations of Controlled Unitary Gates

Ir O D = D = ( ) Section 2.6 Example 1. (Bottom of page 119) dim(v ) = dim(l(v, W )) = dim(v ) dim(f ) = dim(v )

Some Introductory Notes on Quantum Computing

Bounds on Quantum codes

2.4.8 Heisenberg Algebra, Fock Space and Harmonic Oscillator

More advanced codes 0 1 ( , 1 1 (

Quantum gate. Contents. Commonly used gates

Quantum Computation. Alessandra Di Pierro Computational models (Circuits, QTM) Algorithms (QFT, Quantum search)

1 Fundamental physical postulates. C/CS/Phys C191 Quantum Mechanics in a Nutshell I 10/04/07 Fall 2007 Lecture 12

Ph 219/CS 219. Exercises Due: Friday 20 October 2006

Quantum information and quantum computing

QUANTUM COMPUTATION. Exercise sheet 1. Ashley Montanaro, University of Bristol H Z U = 1 2

Chapter 4 Euclid Space

Problem Set # 6 Solutions

j=1 x j p, if 1 p <, x i ξ : x i < ξ} 0 as p.

The Bloch Sphere. Ian Glendinning. February 16, QIA Meeting, TechGate 1 Ian Glendinning / February 16, 2005

Midterm for Introduction to Numerical Analysis I, AMSC/CMSC 466, on 10/29/2015

EXAM. Exam 1. Math 5316, Fall December 2, 2012

Lecture 2: Introduction to Quantum Mechanics

Lecture notes on Quantum Computing. Chapter 1 Mathematical Background

Math 291-2: Lecture Notes Northwestern University, Winter 2016

Chapter 5. Density matrix formalism

Quantum Information Types

Principles of Quantum Mechanics Pt. 2

Introduction to Quantum Information Processing QIC 710 / CS 768 / PH 767 / CO 681 / AM 871

18.06 Problem Set 8 - Solutions Due Wednesday, 14 November 2007 at 4 pm in

Factoring on a Quantum Computer

Projects about Quantum adder circuits Final examination June 2018 Quirk Simulator

Chapter 6 Inner product spaces

Linear Algebra Lecture Notes-II

E2 212: Matrix Theory (Fall 2010) Solutions to Test - 1

Vector spaces and operators

QLang: Qubit Language

Introduction to quantum information processing

Chapter 6: Orthogonality

1 Linear Algebra Problems

Transcription:

Math 478, Phys 478, CS4803, February 9, 006 1 Georgia Tech Math, Physics & Computing Math 478, Phys 478, CS4803 Quantum Information & Quantum Computing Problems Set 1 Due February 9, 006 Part I : 1. Read carefully Nielsen-Chang, Section.1.. Treat as many exercises in Section.1 as possible. 3. Turn in exercises (to be graded #.17,.18,.0,.1,.6,.7,.33,.34,.35,.39 See Nielsen-Chang Section.1. Exercises :.17- Show that a normal matrix is Hermitian if and only if it has real eigenvalues. By definition, a matrix is normal if it commutes with its adjoint. By the spectral theorem a matrix is normal if and only if admits an orthonormal base of eigenvectors. In such a base this matrix is diagonal and the diagonal elements are its eigenvalues. The adjoint of the matrix is given, in any orthonormal base, by transposing and (complex conjugating its matrix elements. In particular in the base of eigenvectors the adjoint is obtained simply by (complex conjugating the diagonal elements. It is selfadjoint if and only if these elements are real. But since the diagonal elements in this base are the eigenvalues the result is proved..18- Show that the eigenvalues of a unitary matrix have modulus one, that is, can be written in the form e ıθ for some real θ. A matrix U is unitary if UU = U U = I. In particular it is normal. Using an orthonormal basis of eigenvectors it becomes diagonal and the unitary relation implies that each eigenvalue z satisfies zz = 1. This proves the result..0- Suppose A and A are matrix representations of a linear operator A on a vector space V with respect to two different orthonormal basis v i and w i. Then the elements of A and A are A ij = v i A v j and A ij = w i A w j. Characterize the relationship between A, A. Let S be the matrix with elements S ij = v i w j. Then, since the two basis v i and w i are orthonormal, S is unitary. For indeed SS has matrix elements ( SS ij = k S iks jk = k v i w k w k v j = v i v j = δ ij = (I ij (here the completness relation k w k w k = I has been used. Then, using again the completeness relation twice, S ik A kl S jl = v i w k w k A w l w l v j = v i A v j = A ij k,l kl In other words SA S = A and, since S is unitary, A = S AS.

Math 478, Phys 478, CS4803, February 9, 006.1- Repeat the proof of the spectral decomposition in Box. for the case where M is Hermitian, simplifying th proof whenever possible. We want to show that any Hermitian operator M on a Hilbert space V is diagonal with respect to some orthonormal basis of V with real eigenvalues. Conversely any operator diagonalizable in some orhtonormal basis with real eigenvalues is Hermitian. While the converse is obvious, let us prove the direct statement by recursion on the dimension d of V. For d = 1 the statement is obvious. Let then d > 1. Given an eigenvalue λ of M, let P be the orthogonal projection onto the subspace of V of eigenvectors of M for the eigenvalue λ (recall that any orthogonal po[rojection is characterized by P = P = P. Let then Q be the orthogonal projection on the orthogonal complement of P so that P Q = QP = 0 and P + Q = I (and also, Q = Q = Q. Thus M = (P + QM(P + Q = P MP + P MQ + QMP + QMQ. By construction, any vector ψ in P V satisfies M ψ = λ ψ, so that MP = λp. Thus P MP = λp, because P = P. Since M is selfadjoint it follows that λp = (P MP = P MP = λp implying λ = λ is real and P M = (MP = (λp = λp = λp = MP. Hence P commutes to M so that QMP = QP M = 0 and P MQ = MP Q = 0. Thus M = λp + QMQ. Clearly QMQ is selfadjoint and operates on the space QV which as dimension smaller than d. By the recursion hypothesis QMQ can be diagonalized in an orthonormal basis with real eigenvalues and, from the previous decomposition, so can be M..6- Let ψ = ( 0 + 1 /. Write out ψ and ψ 3 explicitely, both in terms of tensor products of 0 s and 1 s, using the Kronecker product. Since the tensor product is multilinear (or distributive with respect to addition it follows that Similarly ψ = 0 0 + 0 1 + 1 0 + 1 1 = 00 + 01 + 10 + 11 ψ 3 = 000 + 001 + 010 + 011 + 100 + 101 + 110 + 111 3/ More generally, if x = x 1 n 1 + x n + + x n 1 + x n ψ n = 1 n/ x 1,,x n {0,1} x 1 x n = 1 n/ x 1,,x n {0,1} x 1 x n = 1 n 1 n/ x.7- Calculate the matrix representation of the tensor products of the Pauli operators (a X and Z ; (b I and X ; (c X and I. Is the tensor product commutative? [ [ [ 1 0 0 1 1 0 Recall that I =, X = and Z =. On the other hand, with 0 1 1 0 0 1 two binary digits x 1, x is associated the integer x = x 1 + x. Hence the digital basis can be relabelled as 00 = 0, 01 = 1, 10 =, 11 = 3. On the other hand, (A B xy;x y = A xx B yy by definition of the Kronecker product. Thus using the labelling by integers this gives x=0

Math 478, Phys 478, CS4803, February 9, 006 3 X Z = 0 0 1 0 0 0 0 1 1 0 0 0 0 1 0 0, I X = 0 1 0 0 1 0 0 0 0 0 0 1 0 0 1 0, X I = 0 0 1 0 0 0 0 1 1 0 0 0 0 1 0 0 In particular I X X I meaning the tensor product is not commutative..33- The Hadamard operator on one qubit maybe written as H = 1 [( 0 + 1 0 + ( 0 1 1. Show explicitly that the Hadamard transform on n-qubits, H n, may be written as H n = 1 n ( 1 xẏ x y. x,y Write out an explicit representation for H. For indeed the expression of H given above is equivalent to H = 1/ particular this gives H = 1 [ 0 0 + 1 0 + 0 1 1 1 = 1 Since the tensor product is multilinear it follows that H n = 1 n x i,y j {0,1} x,y {0,1} ( 1 xy x y. ( 1 x 1y 1 + x ny n x 1 y 1 x n y n. [ 1 1 1 1.. In By definition, if x = (x 1,, x n {0, 1} n and y = (y 1,, y n {0, 1} n, then xẏ = x 1 y 1 + x n y n. Moreover x 1 y 1 x n y n = ( x 1 x n ( y 1 y n = x y. This gives the first result. Using the labelling by integers instead of binary digit we get then H = 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1.34- Find the square root and the logarithm of the matrix, [ 4 3 3 4 This matrix can be written as A = 4 + 3X = H(4 + 3ZH 1 (recall that H = H = H 1 is unitary. Since 4 + 3Z is diagonal it is easy to get 4 + 3Z = [ 7 0 0 1 In much the same way, (4 + 3Z 1/ = [ 7 0 0 1. = ( 7 + 1 + ( 7 1Z.

Math 478, Phys 478, CS4803, February 9, 006 4 ln (4 + 3Z = [ ln 7 0 0 0 Applying the Hadamard matrix back this gives A 1/ = (4 + 3X 1/ = 1 = ln 7 ln A = ln (4 + 3X = ln 7 (1 + Z { ( 7 + 1 + ( } 7 1X (1 + X.35- Let v be any real three-dimensional unit vector and θ a real number. Prove that exp (ı v σ = cos (θi + ı sin (θ v σ, where v σ = v 1 σ 1 +v σ +v 3 σ 3 = v 1 X +v Y +v 3 Z. This exercise is generalized in Problem.1 on page 117. The commutation rules for Pauli s operators are XY + Y X = 0 = Y Z + ZY = ZX + XZ and X = Y = Z = I. It follows that, if A = v σ, A = v1 + v + v 3 = 1 because v is a unit vector. Thus. exp (ıθa = I + ıθa θ! I ıθ3 θn A + + ( 1n 3! (n! I + ı( 1n θn+1 (n + 1! A + proving the result. = (1 + + ( 1 n θn + I + ı(θ + + ( 1n θn+1 (n! (n + 1! + A = cos (θi + ı sin (θ A,.39- The set L V of linear operators on a Hilbert space V is obviously a (complex vector space - the sum of two linear operators is a linear operator, za is a linear operator if A is a linear operator and z a complex number, and there is a zero element 0. An important additional result is that the vector space L V can be given a natural inner product structure turning it into a Hilbert space. 1. Show that the function (, on L V L V defined by (A, B = tr (A B is an inner product function. This inner product is known as the Hilbert-Schmidt or trace inner product.. If V has d dimensions show that L V has dimension d. 3. Find an orthonormal basis of Hermitian matrices for the Hilbert space L V. 1.- Clearly, since the trace is linear, (, is linear on the right and antilinear on the left. Moreover, (A, B = tr ( (A B = tr (B A = (B, A. Also, if A = (a ij d i,j=1 is the matrix of A is some orthonormal basis, then (A, A = tr (A A = d i,j=1 a ij > 0 unless A = 0..- Since an operator acting on V admits d matrix elements in any orthonormal basis of V, it follows that dim L V = d. Actually let { v i ; 1 i d} be an orthonormal

Math 478, Phys 478, CS4803, February 9, 006 5 Part II : basis of V. Then the operators E ij = v i v j define an orthonormal basis of L V because (i any operator A can be written as A = ij a ij v i v j, showing that the E ij s are generating, (ii (E ij, E i j = tr (E ij E i j = tr ( v j v i v i v j = v i v i v j v j = δ ii δ jj so that the family is orthonormal and thus, linearly independent. Therefore this family is an orthonormal basis of L V. Since it contains d element so is the dimension of L V. 3.- The previous orthonormal basis is not made of Hermitian matrices unless for i = j. However, E ij = E ji. Thus, setting, for i < j, R ij = (E ij + E ji / and S ij = (E ij E ji /ı gives self adjoint elements such that (R ij, R kl = (R ij, S kl = (S ij, R kl = (S ij, S kl = 0 if one of the indices i, j differs from one of k, l. Similarly (R ij, E kk = 0 = (S ij, E kk for i < j and all k s. Moreover (R ij, S ij = 0 while (R ij, R ij = 1 = (S ij, S ij as can be checked immediately. Hence {E ii, R ij, S ij ; 1 i < j d} defines an orthonormal basis of L V made of d selfadjoint operators. 1. Read carefully Nielsen-Chang, Section 4. & 4.3.. Treat as many exercises in Section 4.3 as possible. 3. Turn in exercises (to be graded # 4.1, 4.3, 4.4, 4.5, 4.35. Exercises : 4.1- Verify that Fig 4.8 implements the C (U operation. To verify this claim, because each quantum circuit represents a unitary operator on the qubit-space, it is sufficient to check that the result on both sides are identical when applied to any basis vector of the computer basis. So let ψ 0 = x y z be the input vector (where the labeling x, y, z goes from the rop to the bottom lines. After the first gate V the input becomes ψ 1 = x y V y z. After the cnot-gate it becomes ψ = x x y V y z. After the V -gate it gives ψ 3 = x x y (V x y V y z. After the next cnot-gate, it gives ψ 4 = x y (V x y V y z so that the output is ψ 5 = x y V x (V x y V y z. If x = y = 0 then V x (V x y V y = I and nothing happens. For x y then either x = 0, y = 1 or x = 1, y = 0, so that in both cases x y = 1 and V x (V x y V y becomes either V V = I or V V = I, so that nothing happens as well. For x = y = 1, then x y = 0 so that V x (V x y V y = V = U. Hence only if x = y = 1 is this gate acting and it acts as U on the third line of the circuit, namely this is exactly how the C (U gate acts. 4.3- Construct a C 1 (U-gate for U = R x (θ and U = R y (θ, using only cnot and single qubit gates. Can you reduce the number of single qubit gates needed in the construction from three to two? The circuit designed in the next Figure below gives an output x CX x BX x A y for an

Math 478, Phys 478, CS4803, February 9, 006 6 input x, y. Thus finding matrices A, B, C such that CBA = I and CXBXA = U solves the problem. For U = R y (θ = e ıθy a solution is given by A = I, B = C 1 and C = e ıθ/y, simply because XY X = Y. In this latter case, two one-qubit gates are sufficient. For U = R x (θ, a possible solution is A = e ıθ/z H, B = e ıθ/z and C = H. In the case of U = R x (θ, reducing the number of one-qubit gates from three to two would mean to find a unitary matrix B such that BXB 1 X = R x (θ. Writing B as B = e ıα v σ = cos (α + ı sin (α σ v with v = (a, b, c a real three-dimensional unit vector, gives BXB 1 X = cos α + sin α(a b c + ıa(cy bz + ı sin(α(by + cz. Such a matrix cannot commute to X unless if a multiple of the identity. Hence it cannot equal R x (θ for θ 0 mod π. So three one-qubit gates at least are necessary. 4.4- Check that Figure 4.9 implements the Toffoli gate. The right hand side in Figure 4.9 can be seen as a product of 13 unitary operators, so that if ψ j denotes the state in the 3-qubit space after the operator #j, with input for j = 0, the output will be ψ 13. As usual, it is sufficient to assume that the input is ψ 0 = xyz where x, y, z are the binary digit labeling the upper, middle and lower line of the quantum circuit respectively. This gives ψ 1 = 1 ( xy0 + ( 1 z xy1 ψ = 1 ( xyy + ( 1 z xyy ψ 3 = 1 (e ıyπ/4 xyy + ( 1 z e ı(1 yπ/4 xyy ψ 4 = 1 (e ıyπ/4 xy(x y + ( 1 z e ı(1 yπ/4 xy(x y ψ 5 = 1 (e ı{(x y y}π/4 xy(x y + ( 1 z e ı{(x (1 y 1+y}π/4 xy(x y

Math 478, Phys 478, CS4803, February 9, 006 7 ψ 6 = 1 (e ı{(x y y}π/4 xyx + ( 1 z e ı{(x (1 y 1+y}π/4 xyx ψ 7 = 1 (e ı{(x y x y}π/4 xyx + ( 1 z e ı{(x (1 y +x+y}π/4 xyx ψ 8 = 1 (e ı{(x y x y}π/4 xy0 + ( 1 z e ı{(x (1 y +x+y}π/4 xy1 ψ 9 = 1 (e ı{(x y x y}π/4 xy0 + ( 1 z e ı{(x (1 y 1+x}π/4 xy1 ψ 10 = 1 ( e ı{(x y x y}π/4 + ( 1 z e ı{(x (1 y 1+x}π/4 x(x y0 + 1 ( e ı{(x y x y}π/4 ( 1 z e ı{(x (1 y 1+x}π/4 x(x y1 To simplify the expression for ψ 11, it is worth remarking that x (1 y x y can be computed as follows : (i if y = 0 then it gives 1 x, (ii if y = 1 it gives x 1. So that x (1 y x y = ( 1 y (1 x = ( 1 x+y. Hence : ψ 11 = 1 ( e ı{x+y}π/4 + ( 1 z e ı{( 1x+y 1+x}π/4 x(x y0 + 1 ( e ı{x+y}π/4 ( 1 z e ı{( 1x+y 1+x}π/4 x(x y1 ψ 1 = 1 ( e ı{x+y}π/4 + ( 1 z e ı{( 1x+y 1+x}π/4 xy0 + 1 ( e ı{x+y}π/4 ( 1 z e ı{( 1x+y 1+x}π/4 xy1 The last gates multiplies the state by e (x+yπ/4 thus the first term, in the phase factor of each basis vector, becomes 1, while the phase in the second one becomes ((1 x(1 y + x + y 1 + xπ/4 = xyπ (since 1 x = ( 1 x. Thus ψ 13 = 1 ( 1 + ( 1 z+xy xy0 + 1 ( 1 ( 1 z+xy xy1 Then if (x, y (1, 1 it follows that xy = 0 so that the right hand side is nothing but xyz. If x = y = 1, then the right hand side is xyz. Hence the circuit acts as the Toffoli gate. 4.5- Recall that the Fredkin (controlled-swap gate performs the transform (where means 0. 1 1 1 1 1 1 1 1

Math 478, Phys 478, CS4803, February 9, 006 8 1. Give a quantum circuit which used three Toffoli gates to construct the Fredkin gate (Hint : think of the swap-gate construction-you can control each gate, one at a time.. Show that the first and the last Toffoli gates can be replaced by cnot-gates. 3. Now replace the middle Toffoli gate by the circuit in Figure 4.8 to obtain a Fredkin gate construction using only six two-qubits gates. 4. Can you come up with an even simpler construction, with only five two-qubit gates? 1.- The circuit Constructing the Fredkin gate gives the solution. For indeed if ψ 0 = xyz is the input, then after the first Toffoli gate it gives ψ 1 = x(xz yz ψ = x(xz y(xz xy z = x(xz y(xy xz ψ 3 = x(xy xz(xy xz In particular if x = 0 then ψ 3 = 0yz whereas if x = 1 then ψ 3 = 1yz, which is what the Fredkin gate is doing..- The circuit for the Fredkin gate, indeed gives also the Fredkin gate by replacing the left and right Toffoli gates by two cnot gates each. Again, if ψ 0 = xyz is the input, it gives ψ 1 = x(y zz ψ = x(y z(xy xz z = x(y z(xy xz ψ 3 = x(xy xz(xy xz namely the same result as in the previous question.

Math 478, Phys 478, CS4803, February 9, 006 9 3.- Thanks to Figure 4.8, with V = e ı(x 1π/4, then U = V = X giving a Toffoli gate. This produce a circuit with 5+ = 7 two-qubit gates. However the first two gates (a cnot and a C 1 (V combine to give one two-qubit gate, leading to a circuit with 6 two-qubit gates. 4.- It does not seems possible to decrease the number of two-qubit gates. 4.35- (Measurement commutes with controls A consequence of the principle of deferred measurement is that measurements commute with quantum gates when the qubit being measured is a control qubit, that is : (Recall that double lines represent classical bits in this diagram. Prove the first equality. The rightmost circuit is simply a convenient notation to depict the use of a measurement result to classically control a quantum gate. Looking at the Figure Measurement commutes with control the left hand side give x U x y. If a measurement is applied to the qubit x and gives the outcome m {0, 1} then the second qubit is given by U m y. But this is exactly what the right hand side is giving.