Problem 1. GIven the standard basis
where
Solution. This is just a simple demonstration of unitary operators acting on a basis set, therefore we just go through the matrix algebra as shown below.
xxxxxxxxxx1
1
using SymPyxxxxxxxxxx5
1
begin2
sqrthalf = 1/sympy.sqrt(2)3
⋅(x,y) = x*y4
⊗(x,y) = kron(x,y)5
end;xxxxxxxxxx19
1
begin2
𝐞₁ = [1;3
0;4
0;5
0]6
𝐞₂ = [0;7
1;8
0;9
0]10
𝐞₃ = [0;11
0;12
1;13
0]14
𝐞₄ = [0;15
0;16
0;17
1]18
𝐞 = [𝐞₁ 𝐞₂ 𝐞₃ 𝐞₄];19
end;20
x
1
begin2
U = [1 0 0 0;3
0 1 0 0;4
0 0 0 1;5
0 0 1 0];6
H = sqrthalf ⋅ [ 1 1;7
1 -1];8
I₂ = sympy.eye(2,2) #could also use sympy.Identity(2)9
V = H ⊗ I₂10
end;