Really?

parent 8c3fe4dc
...@@ -44,15 +44,14 @@ dot(g1::SU2fund{T},g2::SU2fund{T}) where T <: AbstractFloat = conj(g1.t1)*g2.t1+ ...@@ -44,15 +44,14 @@ dot(g1::SU2fund{T},g2::SU2fund{T}) where T <: AbstractFloat = conj(g1.t1)*g2.t1+
Returns ga Returns ga
""" """
Base.:*(g::SU2{T},b::SU2fund{T}) where T <: AbstractFloat = SU2fund{T}(g.t1*b.t1 + g.t2*b.t2, Base.:*(g::SU2{T},b::SU2fund{T}) where T <: AbstractFloat = SU2fund{T}(g.t1*b.t1 + g.t2*b.t2,-conj(g.t2)*b.t1 + conj(g.t1)*b.t2)
-conj(g.t2)*b.t1 + conj(g.t1)*b.t2)
""" """
\(g::SU2{T},b::SU2fund{T}) \\(g::SU2{T},b::SU2fund{T})
Returns g^dag b Returns g^dag b
""" """
Base.:\(g::SU2{T},b::SU2fund{T}) where T <: AbstractFloat = SU2fund{T}(conj(g.t1)*b.t1 - g.t2*b.t2, Base.:\(g::SU2{T},b::SU2fund{T}) where T <: AbstractFloat = SU2fund{T}(conj(g.t1)*b.t1 - g.t2 * b.t2,conj(g.t2)*b.t1 + g.t1 * b.t2)
conj(g.t2)*b.t1 + g.t1*b.t2)
""" """
*(a::SU2alg{T},b::SU2fund{T}) *(a::SU2alg{T},b::SU2fund{T})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment