Problem 2. Consider the normalized vector in C4:

v=12(iiii)

Show that the matrix U=I42vv is unitary and find the corresponding eigenvalues.

10.7 μs

Solution.

15.8 μs
8.6 s
116 μs
1.5 ms
2.7 ms

U=[0.50.50.50.50.50.50.50.50.50.50.50.50.50.50.50.5]

2.3 ms

Now checking if this matrix is indeed unitary (i.e. U1=U):

12.4 μs

True 

7.5 ms

Now finding the eigenvalues:

8.5 μs
20.0 ms

A total of 4 eigenvalues:

e1=1.0

e2=1.0

e3=1.0

e4=1.0.

As one can see 3 of them are degenerate.

4.2 ms