Skip to content

Commit ccf9ea1

Browse files
committed
use SymmetrySectors.nsymbol
1 parent 54daa02 commit ccf9ea1

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ LRUCache = "1.6.1"
2929
LabelledNumbers = "0.1.0"
3030
LinearAlgebra = "1.10.0"
3131
Strided = "2.2.0"
32-
SymmetrySectors = "0.1.7"
32+
SymmetrySectors = "0.1.9"
3333
TensorAlgebra = "0.2.4"
3434
TensorProducts = "0.1.3"
3535
TypeParameterAccessors = "0.2.0"

src/fusion_trees/fusiontree.jl

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,16 @@
55

66
using GradedUnitRanges: AbstractGradedUnitRange, GradedUnitRanges, flip, isdual, sector_type
77
using SymmetrySectors:
8-
×, AbstractSector, SectorProduct, SymmetrySectors, arguments, trivial, to_gradedrange
8+
×,
9+
AbstractSector,
10+
SectorProduct,
11+
SymmetrySectors,
12+
arguments,
13+
nsymbol,
14+
to_gradedrange,
15+
trivial
916
using TensorAlgebra: flatten_tuples
10-
using TensorProducts: , tensor_product
17+
using TensorProducts:
1118

1219
#
1320
# A fusion tree fuses N sectors sec1, secN onto one sector fused_sec. A given set of
@@ -185,14 +192,6 @@ function outer_multiplicity_kron(
185192
return linear_inds[outer_multiplicity1, outer_multiplicity2]
186193
end
187194

188-
# TODO move to GradedUnitRanges
189-
function nsymbol(s1::AbstractSector, s2::AbstractSector, s3::AbstractSector)
190-
full_space = to_gradedrange(s1 s2)
191-
x = findfirst(==(s3), blocklabels(full_space))
192-
isnothing(x) && return 0 # OR labelled(0, s3)?
193-
return Int(blocklengths(full_space)[x])
194-
end
195-
196195
function outer_multiplicity_split(
197196
sec1::S, sec2::S, fused::S, outer_mult_index::Integer
198197
) where {S<:SectorProduct}

test/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1616
Aqua = "0.8.9"
1717
SafeTestsets = "0.1"
1818
Suppressor = "0.2"
19+
SymmetrySectors = "0.1.9"
1920
Test = "1.10"

0 commit comments

Comments
 (0)