Skip to content

Commit c04b978

Browse files
authored
use SymmetrySectors.nsymbol (#21)
1 parent 54daa02 commit c04b978

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "FusionTensors"
22
uuid = "e16ca583-1f51-4df0-8e12-57d32947d33e"
33
authors = ["ITensor developers <[email protected]> and contributors"]
4-
version = "0.2.2"
4+
version = "0.2.3"
55

66
[deps]
77
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
@@ -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)