File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
NDTensors/src/lib/SymmetrySectors/src/sector_definitions Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ sector_label(u::U1) = u.n
1919trivial (:: Type{U1} ) = trivial (U1{Int})
2020trivial (:: Type{U1{T}} ) where {T} = U1 (T (0 ))
2121
22- abelian_label_fusion_rule (T :: Type{<:U1} , n1, n2) = T (n1 + n2)
22+ abelian_label_fusion_rule (sector_type :: Type{<:U1} , n1, n2) = sector_type (n1 + n2)
2323
2424# hide label type in printing
2525function Base. show (io:: IO , u:: U1 )
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ modulus(::Type{Z{N}}) where {N} = N
1616
1717modulus (c:: Z ) = modulus (typeof (c))
1818
19- trivial (category_type :: Type{<:Z} ) = category_type (0 )
19+ trivial (sector_type :: Type{<:Z} ) = sector_type (0 )
2020
21- function abelian_label_fusion_rule (category_type :: Type{<:Z} , n1, n2)
22- return category_type ((n1 + n2) % modulus (category_type ))
21+ function abelian_label_fusion_rule (sector_type :: Type{<:Z} , n1, n2)
22+ return sector_type ((n1 + n2) % modulus (sector_type ))
2323end
2424
2525GradedAxes. dual (c:: Z ) = typeof (c)(mod (- sector_label (c), modulus (c)))
You can’t perform that action at this time.
0 commit comments