Skip to content

Commit

Permalink
Add otimes as alternative for ⊗
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Mar 30, 2024
1 parent 7ad41f6 commit b8aec58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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, otimes
export fusiontrees, braid, permute, transpose
export ZNSpace, SU2Irrep, U1Irrep, CU1Irrep
# other fusion tree manipulations, should not be exported:
Expand Down
4 changes: 3 additions & 1 deletion src/sectors/sectors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ Base.isless(::Trivial, ::Trivial) = false
# FusionStyle: the most important aspect of Sector
#---------------------------------------------
"""
⊗(a::I, b::I) where {I<:Sector}
⊗(a::I, b::I...) where {I<:Sector}
otimes(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,)
const otimes =

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

0 comments on commit b8aec58

Please sign in to comment.