Skip to content

Commit

Permalink
Add fusionproduct
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Mar 27, 2024
1 parent 7ad41f6 commit d80e1cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/TensorKit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export infimum, supremum, isisomorphic, ismonomorphic, isepimorphic

# methods for sectors and properties thereof
export sectortype, sectors, hassector, Nsymbol, Fsymbol, Rsymbol, Bsymbol,
frobeniusschur, twist
frobeniusschur, twist, fusionproduct
export fusiontrees, braid, permute, transpose
export ZNSpace, SU2Irrep, U1Irrep, CU1Irrep
# other fusion tree manipulations, should not be exported:
Expand Down
2 changes: 2 additions & 0 deletions src/sectors/sectors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ Base.isless(::Trivial, ::Trivial) = false
#---------------------------------------------
"""
⊗(a::I, b::I) where {I<:Sector}
fusionproduct(a::I, b::I) where {I<:Sector}
Return an iterable of elements of `c::I` that appear in the fusion product `a ⊗ b`.
Expand All @@ -128,6 +129,7 @@ Note that every element `c` should appear at most once, fusion degeneracies (if
"""
(::Trivial, ::Trivial) = (Trivial(),)
(I::Sector) = (I,)
fusionproduct(a::I, b::Vararg{I}) where {I<:Sector} = (a, b...)

Check warning on line 132 in src/sectors/sectors.jl

View check run for this annotation

Codecov / codecov/patch

src/sectors/sectors.jl#L132

Added line #L132 was not covered by tests

"""
Nsymbol(a::I, b::I, c::I) where {I<:Sector} -> Integer
Expand Down

0 comments on commit d80e1cf

Please sign in to comment.