Skip to content

Commit 8ae4593

Browse files
committed
move docstring and make generic
1 parent 9c199d5 commit 8ae4593

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/irreps/irreps.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,6 @@ Asymbol(a::I, b::I, c::I) where {I <: AbelianIrrep} = Int(Nsymbol(a, b, c))
5959
Bsymbol(a::I, b::I, c::I) where {I <: AbelianIrrep} = Int(Nsymbol(a, b, c))
6060
Rsymbol(a::I, b::I, c::I) where {I <: AbelianIrrep} = Int(Nsymbol(a, b, c))
6161

62-
"""
63-
fusiontensor(a::I, b::I, c::I) where {I <: AbstractIrrep} -> Array{T, 4}
64-
65-
Return the fusion tensor for the fusion `a ⊗ b -> c`, where `a`, `b`, and `c` are irreps of
66-
a group. The dimensions of the returned array are `(dim(a), dim(b), dim(c), Nsymbol(a, b, c))`.
67-
The components of the fusion tensor are simply the Clebsch-Gordan coefficients of the group,
68-
describing the unitary basis change from the tensor product of irreps `a` and `b` to the coupled irrep `c`.
69-
"""
7062
function fusiontensor(a::I, b::I, c::I) where {I <: AbelianIrrep}
7163
return fill(Int(Nsymbol(a, b, c)), (1, 1, 1, 1))
7264
end

src/sectors.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,16 @@ Base.:&(f₁::UnitStyle, f₂::UnitStyle) = f₂ & f₁
349349

350350
Base.:&(::GenericUnit, ::SimpleUnit) = GenericUnit()
351351

352+
"""
353+
fusiontensor(a::I, b::I, c::I) where {I <: Sector} -> Array{T, 4}
354+
355+
Return the fusion tensor for the fusion `a ⊗ b -> c`, where `a`, `b`, and `c` are irreps of
356+
a group. The dimensions of the returned array are `(dim(a), dim(b), dim(c), Nsymbol(a, b, c))`.
357+
The components of the fusion tensor are simply the Clebsch-Gordan coefficients of the group,
358+
describing the unitary basis change from the tensor product of irreps `a` and `b` to the coupled irrep `c`.
359+
"""
360+
function fusiontensor end
361+
352362
"""
353363
Fsymbol(a::I, b::I, c::I, d::I, e::I, f::I) where {I <: Sector}
354364

0 commit comments

Comments
 (0)