We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07f57fc commit 0fb4d64Copy full SHA for 0fb4d64
3 files changed
src/fusiontrees/manipulations.jl
@@ -789,13 +789,13 @@ function elementary_trace(f::FusionTree{I, N}, i) where {I <: Sector, N}
789
vertices_ = TupleTools.front(f.vertices)
790
f_ = FusionTree(uncoupled_, coupled_, isdual_, inner_, vertices_)
791
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
+ for (f_′, coeff) in merge(fs, f_, unit, 1)
793
f_′.innerlines[1] == unit || continue
794
uncoupled′ = Base.tail(Base.tail(f_′.uncoupled))
795
isdual′ = Base.tail(Base.tail(f_′.isdual))
796
inner′ = N <= 4 ? () : Base.tail(Base.tail(f_′.innerlines))
797
vertices′ = N <= 3 ? () : Base.tail(Base.tail(f_′.vertices))
798
- f′ = FusionTree(uncoupled′, unit, isdual′, inner′, vertices′) # and this one?
+ f′ = FusionTree(uncoupled′, unit, isdual′, inner′, vertices′)
799
coeff *= sqrtdim(b)
800
if !(f.isdual[N])
801
coeff *= conj(frobeniusschur(b))
test/fusiontrees.jl
@@ -216,7 +216,7 @@ ti = time()
216
end
217
218
219
- @testset "Fusion tree $Istr: elementy artin braid" begin
+ @testset "Fusion tree $Istr: elementary artin braid" begin
220
N = length(out)
221
isdual = ntuple(n -> rand(Bool), N)
222
for in in ⊗(out...)
@@ -273,7 +273,7 @@ ti = time()
273
274
275
@testset "Fusion tree $Istr: braiding and permuting" begin
276
- f = rand(collect(fusiontrees(out, in, isdual)))
+ f = rand(collect(it))
277
p = tuple(randperm(N)...)
278
ip = invperm(p)
279
@@ -389,7 +389,7 @@ ti = time()
389
f1 = rand(collect(fusiontrees(out, incoming, ntuple(n -> rand(Bool), N))))
390
f2 = rand(collect(fusiontrees(out[randperm(N)], incoming, ntuple(n -> rand(Bool), N))))
391
392
- @testset "Double fusion tree $Istr: repartioning" begin
+ @testset "Double fusion tree $Istr: repartitioning" begin
393
for n in 0:(2 * N)
394
d = @constinferred TK.repartition(f1, f2, $n)
395
@test dim(incoming) ≈
test/runtests.jl
@@ -3,7 +3,7 @@ using TestExtras
3
using Random
4
using TensorKit
5
using Combinatorics
6
-using TensorKit: ProductSector, fusiontensor, pentagon_equation, hexagon_equation
+using TensorKit: ProductSector, fusiontensor
7
using TensorOperations
8
using Base.Iterators: take, product
9
# using SUNRepresentations: SUNIrrep
0 commit comments