Skip to content

Commit bddd5c7

Browse files
authored
Merge branch 'main' into bd/repa4
2 parents acdfa00 + 03ad9ed commit bddd5c7

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

src/sectors.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ context of line bending.
417417
"""
418418
function frobenius_schur_indicator(a::Sector)
419419
ν = frobenius_schur_phase(a)
420-
return a == conj(a) ? zero(ν) : ν
420+
return a == conj(a) ? ν : zero(ν)
421421
end
422422

423423
# Not necessary

test/runtests.jl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,26 @@ end
9292
@test size(Rsymbol(a, b, c)) == (0, 0)
9393
end
9494

95+
@testset "Frobenius-Schur" begin
96+
@test frobenius_schur_phase(SU2Irrep(0)) == 1.0
97+
@test frobenius_schur_phase(SU2Irrep(1 // 2)) == -1.0
98+
@test frobenius_schur_phase(Z2Irrep(0)) == 1.0
99+
@test frobenius_schur_phase(Z2Irrep(1)) == 1.0
100+
@test frobenius_schur_phase(Z3Irrep(0)) == 1.0
101+
@test frobenius_schur_phase(Z3Irrep(1)) == 1.0
102+
@test frobenius_schur_phase(U1Irrep(0)) == 1.0
103+
@test frobenius_schur_phase(U1Irrep(1)) == 1.0
104+
105+
@test frobenius_schur_indicator(SU2Irrep(0)) == 1.0
106+
@test frobenius_schur_indicator(SU2Irrep(1 // 2)) == -1.0
107+
@test frobenius_schur_indicator(Z2Irrep(0)) == 1.0
108+
@test frobenius_schur_indicator(Z2Irrep(1)) == 1.0
109+
@test frobenius_schur_indicator(Z3Irrep(0)) == 1.0
110+
@test frobenius_schur_indicator(Z3Irrep(1)) == 0.0
111+
@test frobenius_schur_indicator(U1Irrep(0)) == 1.0
112+
@test frobenius_schur_indicator(U1Irrep(1)) == 0.0
113+
end
114+
95115
@testset "SectorProduct printing" begin
96116
a = SU2Irrep(1)
97117
@test repr(a a) == "Irrep[SU₂](1) ⊗ Irrep[SU₂](1)"

0 commit comments

Comments
 (0)