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
xxxxxxxxxx
1
1
using SymPy
xxxxxxxxxx
5
1
begin
2
sqrthalf = 1/sympy.sqrt(2)
3
⊗(x,y) = flatten(sympy.tensorproduct(x,y))
4
⋅ = *
5
end;
xxxxxxxxxx
6
1
begin
2
ψₚ = sqrthalf ⋅[1;
3
1]
4
ψₘ = sqrthalf ⋅[1;
5
-1]
6
end;
There are a total of
xxxxxxxxxx
6
1
begin
2
ψ₁ = ψₚ ⊗ ψₚ
3
ψ₂ = ψₚ ⊗ ψₘ
4
ψ₃ = ψₘ ⊗ ψₚ
5
ψ₄ = ψₘ ⊗ ψₘ
6
end;
xxxxxxxxxx
1
1
Ψ = [ψ₁ ψ₂ ψ₃ ψ₄];
The new basis set is:
And we can check they are orthonormal via inner product:
Main.workspace33.factor