Problem 1. Consider the Hadamard basis in
Apply the Kronecker (tensor) product to find a basis in a new
Solution 1
This is a simple permutation of tensor products for the basis states
xxxxxxxxxx1
1
using SymPyxxxxxxxxxx5
1
begin2
sqrthalf = 1/sympy.sqrt(2)3
⊗(x,y) = flatten(sympy.tensorproduct(x,y))4
⋅ = *5
end;xxxxxxxxxx6
1
begin2
ψₚ = sqrthalf ⋅[1;3
1]4
ψₘ = sqrthalf ⋅[1;5
-1]6
end;There are a total of
xxxxxxxxxx6
1
begin2
ψ₁ = ψₚ ⊗ ψₚ3
ψ₂ = ψₚ ⊗ ψₘ4
ψ₃ = ψₘ ⊗ ψₚ5
ψ₄ = ψₘ ⊗ ψₘ6
end;xxxxxxxxxx1
1
Ψ = [ψ₁ ψ₂ ψ₃ ψ₄];The new basis set is:
And we can check they are orthonormal via inner product:
Main.workspace33.factor