Skip to content

Commit b9e74b5

Browse files
committed
intertwiner check
1 parent 099bca6 commit b9e74b5

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

test/sectors.jl

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,28 @@ end
116116
end
117117
end
118118

119+
I == A4Irrep && @testsuite "Intertwiner relation" I -> begin
120+
ω = cis(2π / 3)
121+
T3 = [1 0 0; 0 ω 0; 0 0 ω^2]
122+
T(a::Int8) = (a == 3) ? T3 : hcat(ω^(a))
123+
S3 = 1 / 3 * [-1 2 2; 2 -1 2; 2 2 -1]
124+
S(a::Int8) = (a == 3) ? S3 : hcat(1)
125+
for a in smallset(I), b in smallset(I)
126+
for c in (a, b)
127+
C = fusiontensor(a, b, c)
128+
Ta, Tb, Tc = T(a.n), T(b.n), T(c.n)
129+
Sa, Sb, Sc = S(a.n), S(b.n), S(c.n)
130+
for μ in 1:Nsymbol(a, b, c)
131+
Cmat = reshape(view(C, :, :, :, μ), (dim(a) * dim(b), dim(c)))
132+
L_T = Cmat' * kron(Ta, Tb) * Cmat
133+
L_S = Cmat' * kron(Sa, Sb) * Cmat
134+
@test isapprox(L_T, Tc; atol = 1.0e-12)
135+
@test isapprox(L_S, Sc; atol = 1.0e-12)
136+
end
137+
end
138+
end
139+
end
140+
119141
@testsuite "Unitarity of F-move" I -> begin
120142
for a in smallset(I), b in smallset(I), c in smallset(I)
121143
for d in (a, b, c)

0 commit comments

Comments
 (0)