Skip to content

Commit 084ab72

Browse files
committed
minor changes from #263
1 parent d2da757 commit 084ab72

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

src/fusiontrees/manipulations.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -786,13 +786,13 @@ function elementary_trace(f::FusionTree{I,N}, i) where {I<:Sector,N}
786786
vertices_ = TupleTools.front(f.vertices)
787787
f_ = FusionTree(uncoupled_, coupled_, isdual_, inner_, vertices_)
788788
fs = FusionTree((b,), b, (!f.isdual[1],), (), ())
789-
for (f_′, coeff) in merge(fs, f_, unit, 1) # coloring gets reversed here, should be the other unit
789+
for (f_′, coeff) in merge(fs, f_, unit, 1)
790790
f_′.innerlines[1] == unit || continue
791791
uncoupled′ = Base.tail(Base.tail(f_′.uncoupled))
792792
isdual′ = Base.tail(Base.tail(f_′.isdual))
793793
inner′ = N <= 4 ? () : Base.tail(Base.tail(f_′.innerlines))
794794
vertices′ = N <= 3 ? () : Base.tail(Base.tail(f_′.vertices))
795-
f′ = FusionTree(uncoupled′, unit, isdual′, inner′, vertices′) # and this one?
795+
f′ = FusionTree(uncoupled′, unit, isdual′, inner′, vertices′)
796796
coeff *= sqrtdim(b)
797797
if !(f.isdual[N])
798798
coeff *= conj(frobeniusschur(b))

test/fusiontrees.jl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ ti = time()
212212
end
213213
end
214214
end
215-
@testset "Fusion tree $Istr: elementy artin braid" begin
215+
@testset "Fusion tree $Istr: elementary artin braid" begin
216216
N = length(out)
217217
isdual = ntuple(n -> rand(Bool), N)
218218
for in in (out...)
@@ -269,7 +269,7 @@ ti = time()
269269
end
270270
end
271271
@testset "Fusion tree $Istr: braiding and permuting" begin
272-
f = rand(collect(fusiontrees(out, in, isdual)))
272+
f = rand(collect(it))
273273
p = tuple(randperm(N)...)
274274
ip = invperm(p)
275275

@@ -380,7 +380,7 @@ ti = time()
380380
f1 = rand(collect(fusiontrees(out, incoming, ntuple(n -> rand(Bool), N))))
381381
f2 = rand(collect(fusiontrees(out[randperm(N)], incoming, ntuple(n -> rand(Bool), N))))
382382

383-
@testset "Double fusion tree $Istr: repartioning" begin
383+
@testset "Double fusion tree $Istr: repartitioning" begin
384384
for n in 0:(2 * N)
385385
d = @constinferred TK.repartition(f1, f2, $n)
386386
@test dim(incoming)
@@ -549,8 +549,7 @@ ti = time()
549549
@testset "Double fusion tree $Istr: planar trace" begin
550550
d1 = transpose(f1, f1, (N + 1, 1:N..., ((2N):-1:(N + 3))...), (N + 2,))
551551
f1front, = TK.split(f1, N - 1)
552-
T = typeof(Fsymbol(unit(I), unit(I), unit(I), unit(I), unit(I), unit(I))[1, 1, 1,
553-
1]) #TODO: change to _fscalartype
552+
T = sectorscalartype(I)
554553
d2 = Dict{typeof((f1front, f1front)),T}()
555554
for ((f1′, f2′), coeff′) in d1
556555
for ((f1′′, f2′′), coeff′′) in

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using TestExtras
33
using Random
44
using TensorKit
55
using Combinatorics
6-
using TensorKit: ProductSector, fusiontensor, pentagon_equation, hexagon_equation
6+
using TensorKit: ProductSector, fusiontensor
77
using TensorOperations
88
using Base.Iterators: take, product
99
# using SUNRepresentations: SUNIrrep

0 commit comments

Comments
 (0)