Starting from:
$30

$24

Homework assignment 1 - Qubits and Quantum gates



NOTE: You can get a maximum of 50 points but the total available points with the +1 problem is 60 points, i.e., you don’t have to solve everything to reach the maximum 50 points.

Problem 1 - The Pauli matrices and uncertainty principle for qubits (10 pts / no collaboration)

In class, we have introduced the four Pauli matrices, which form the basis for the vector space of 2 2 Hermitian matrices:
0
=
0
1
;  x =
1
0
;  y =
i
0
;  z =
0
1
:


1
0

0
1

0
i

1
0


    a) Show that these matrices are Hermitian and unitary. Find the eigenvalues and eigenvectors of each of them. Feel free to use the Python Qutip package for the calculations.
    b) Show that the Pauli matrices satisfy the following commutation relation: [ x; y] = 2i z, and nd similar expressions for [ y; z], and [ z; x].

    c) The Heisenberg uncertainty principle is one of the most well-known results of quantum mechanics. It states that it is not possible to accurately measure both the position and the momentum of a particle at the

same time, which mathematically means that the product of the standard deviation of position and the standard deviation of the momentum is greater than zero: p x h=2. Here the standard deviation for an operator

p
O is de ned as O = hO2i hOi 2. The momentum-position uncertainty is just one example for the general Heisenberg uncertainty principle, which states for two observables O and P that
O  P

h[O2;P]i

:















Using the commutation relationships derived above, write down the uncertainty principle for the x and y operators of a qubit, and nd the uncertainty for measuring this two quantities for a qubit prepared in the j0i state.

Problem 2 - Free evolution of a qubit

(7 pts / no collaboration)

A qubit with non-degenerate energy levels can be described by the Hamiltonian

1
H =    2 h!0  z:


    a) Similar to what we derived in class, nd the eigenenergies of the Hamiltonian and show that the eigenstates indeed correspond to j0i and j1i states, and the qubit energy is !0.

    b) Express the time-evolution of the state vector j (t)i when the qubit is prepared in the j0i or j1i. What
is the probability of  nding the qubit in the j0i or j1i states, i.e. jh0j (t)ij2 and jh1j (t)ij2?
p

c) How about the time-evolution of the qubit state j (t)i if we prepared the state in the j+i = (j0i+ j12i)=
2
state at t = 0? Plot the probability of  nding the qubit in the j+i state as a function of time, jh+j (t)ij .



Problem 3 - Measurement of single and two qubits (10 pts / collaboration is encouraged)

a) Consider the qubit state







j0i + r





pi


2

j i =





j1i:





3



3





i) What is the probability of measuring the qubit in the j0i state?

1
        ii) What is the probability of measuring the qubit in the j+i state?

        iii) What is the probability of measuring the qubit in the j0i state after we have measured the qubit in the j+i basis?
    b) Assume that a memory register of a 2-qubit quantum computer is in the following state:
j i = 6 j00i

p
3 j01i +


r



j11i

2






3





32 j10i



1


1


p
2

















    i) Write down the state as a vector with four elements.

    ii) What is the probability of  nding the  rst qubit in the j0i state?

    iii) What is the probability of  nding both qubits in the j0i state?

Problem 4 - Equivalent gates

(8 pts / no collaboration)

Many times a single- and a two-qubit gate can be expressed by the product of other gates. In this problem, we investigate a few examples for this. (Using the prede ned gates in QuTip is encouraged.)

    a) Show that for the single-qubit gates X = HZH.

    b) Show that the Hadamard gate can be expressed by two rotational gates (around the x and z axis) and a

global phase factor





H = ei   Rx(  =  )  Ry(  =  =2);
(1)
where
sin( =2)
cos( =2)

:

Ry( ) =






cos( =2)
sin( =2)




What is the value of the global phase?

c) Show that the two-qubit entangling CNOT and CZ gates are related through the following relationship CNOT = [I Ry( =2)] CZ [I Ry( =2)].

Problem 5 - Swapping qubits for entanglement (15 pts / collaboration is encouraged)

When designing two-qubit gates, it is important to realize schemes that transform unentangled product states into entangled states. An interesting set of gates are the SWAP-type gates that exchange the excitations between two qubits. The simplest version among them is the SWAP gate, which can be described by the following unitary matrix in the qubit eigenbasis
    • 1
1000
SWAP =
B
0
0
1
0
C
:


0
0
0
1



B




C


@




A

While the SWAP gate does not lead to entangled states, its modi cation, the iSWAP gate is a perfect entangler. During the iSWAP gate the exchange of excitation is accompanied by a complex phase i, and this small modi cation enhances the entangling power of the gate. The unitary of the gate is


0
1


0
0
0
1




iSWAP =
B
0


0
i
0
C
:





0
0
0
1






B






C





@
1




A

1

a) Starting from the initial product state j +   =


(j0i
+ j1i)


(j0i j 1i), show that SWAPj +   is a

p





p




2




2

separable state (concurrence is zero), while iSWAPj +



is a maximally entangled state (concurrence is one).
Find the two states j i and j i that satisfy SWAPj +



= j
i

j i.




    b) An entangling two-qubit does not always result in an entangled state starting from product state. For example, show that iSWAPj10i is still a separable state.
    c) Now, we can look at a general separable state and investigate the degree of entanglement of the iSWAP gate depending on the initial states. We pick an arbitrary state on the Bloch sphere of the rst qubit [at angles

( 1; 1)] and similarly on the Bloch sphere of the second qubit [at angles ( 2; 2)], and create the following product state
j i =
ei 1 sin( 1=2)

ei 2 sin( 2=2)

:

cos( 1=2)

cos( 2=2)






2
Calculate the concurrence of iSWAPj i, c(iSWAPj i). Show that if you calculate the same for the SWAP operator, c(SWAPj i)= 0 for any initial state.

    d) Obtain the value of the entangling power of the iSWAP gate by averaging out the concurrence c over the two Bloch spheres. This can be done by evaluating the following spherical integral (the sin 1=2 appears to ensure that the density of points on the sphere is uniform)

EP(iSWAP) = hc2(iSWAPj i)ij  i=2 =
1
Z

2  d 1
Z

2  d 2
Z0
d 1
Z

d 2 sin 1 sin 2

2

0


0




0












c2(iSWAPj i)=2;
where the normalization factor   is the area of a Bloch sphere,

= 4 .





Problem +1 - Entanglement genesis by parity measurement (10 pts / collaboration is encouraged)

The parity of a two-qubit system is de ned by the eigenvalues of the    z    z operator.  Explicitly, if both

qubits are in the same state, j00i or j11i, the system has even parity, while if the two qubits are in the opposite states, j01i or j10i, the system has odd parity. Consider a locally prepared product state j i = j + +i, where
p

j+i = (j0i+j1i)= 2. Show that by measuring the parity of this system, the originally unentangled wavefunction will collapse into a fully entangled state.



















































3

More products