mirror of
https://igit.ific.uv.es/alramos/latticegpu.jl.git
synced 2025-07-01 22:39:27 +02:00
Improved support for flow integrators
This commit is contained in:
parent
410a6d7b25
commit
d19b3a1132
8 changed files with 154 additions and 66 deletions
|
@ -21,6 +21,7 @@ dag(a::SU2{T}) where T <: AbstractFloat = inverse(a)
|
|||
norm(a::SU2{T}) where T <: AbstractFloat = sqrt(abs2(a.t1) + abs2(a.t2))
|
||||
norm2(a::SU2{T}) where T <: AbstractFloat = abs2(a.t1) + abs2(a.t2)
|
||||
tr(g::SU2{T}) where T <: AbstractFloat = complex(2.0*real(g.t1), 0.0)
|
||||
dev_one(g::SU2{T}) where T <: AbstractFloat = sqrt(( abs2(g.t1 - one(T)) + abs2(g.t2))/2)
|
||||
|
||||
"""
|
||||
function normalize(a::T) where {T <: Group}
|
||||
|
|
|
@ -12,6 +12,9 @@
|
|||
inverse(a::SU3{T}) where T <: AbstractFloat = SU3{T}(conj(a.u11),conj(a.u21),(a.u12*a.u23 - a.u13*a.u22), conj(a.u12),conj(a.u22),(a.u13*a.u21 - a.u11*a.u23))
|
||||
dag(a::SU3{T}) where T <: AbstractFloat = inverse(a)
|
||||
tr(a::SU3{T}) where T <: AbstractFloat = a.u11+a.u22+conj(a.u11*a.u22 - a.u12*a.u21)
|
||||
dev_one(g::SU3{T}) where T <: AbstractFloat = sqrt(( abs2(g.u11 - one(T)) + abs2(g.u12) + abs2(g.u13) + abs2(g.u21) + abs2(g.u22 - one(T)) + abs2(g.u23) )/6)
|
||||
|
||||
|
||||
|
||||
function Base.:*(a::SU3{T},b::SU3{T}) where T <: AbstractFloat
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ include("GroupU1.jl")
|
|||
export U1, U1alg
|
||||
|
||||
|
||||
export dot, expm, exp, dag, normalize, inverse, tr, projalg, norm, norm2, isgroup, alg2mat
|
||||
export dot, expm, exp, dag, normalize, inverse, tr, projalg, norm, norm2, isgroup, alg2mat, dev_one
|
||||
|
||||
|
||||
end # module
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue