Skip to content

Commit 0fb4d64

Browse files
borisdevoslkdvos
authored andcommitted
minor changes from #263
1 parent 07f57fc commit 0fb4d64

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/fusiontrees/manipulations.jl

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

test/fusiontrees.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ ti = time()
216216
end
217217
end
218218
end
219-
@testset "Fusion tree $Istr: elementy artin braid" begin
219+
@testset "Fusion tree $Istr: elementary artin braid" begin
220220
N = length(out)
221221
isdual = ntuple(n -> rand(Bool), N)
222222
for in in (out...)
@@ -273,7 +273,7 @@ ti = time()
273273
end
274274
end
275275
@testset "Fusion tree $Istr: braiding and permuting" begin
276-
f = rand(collect(fusiontrees(out, in, isdual)))
276+
f = rand(collect(it))
277277
p = tuple(randperm(N)...)
278278
ip = invperm(p)
279279

@@ -389,7 +389,7 @@ ti = time()
389389
f1 = rand(collect(fusiontrees(out, incoming, ntuple(n -> rand(Bool), N))))
390390
f2 = rand(collect(fusiontrees(out[randperm(N)], incoming, ntuple(n -> rand(Bool), N))))
391391

392-
@testset "Double fusion tree $Istr: repartioning" begin
392+
@testset "Double fusion tree $Istr: repartitioning" begin
393393
for n in 0:(2 * N)
394394
d = @constinferred TK.repartition(f1, f2, $n)
395395
@test dim(incoming)

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)