From a65d722baba70458734e8eb4516777525e0d399d Mon Sep 17 00:00:00 2001 From: Alberto Ramos Date: Tue, 9 Nov 2021 23:11:14 +0100 Subject: [PATCH] Corrected small bug in SU(2) unitarization --- src/Groups/GroupSU2.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Groups/GroupSU2.jl b/src/Groups/GroupSU2.jl index e45c65a..d0415a1 100644 --- a/src/Groups/GroupSU2.jl +++ b/src/Groups/GroupSU2.jl @@ -31,7 +31,7 @@ Return a unitarized element of the group. function unitarize(a::SU2{T}) where T <: AbstractFloat dr = sqrt(abs2(a.t1) + abs2(a.t2)) if (dr == 0.0) - return SU2(0.0) + return SU2{T}(0.0,0.0) end return SU2{T}(a.t1/dr,a.t2/dr) end