Skip to content

Commit 9c199d5

Browse files
committed
add docstring for fusiontensor
1 parent 6f8ab3e commit 9c199d5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/irreps/irreps.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ 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+
"""
6270
function fusiontensor(a::I, b::I, c::I) where {I <: AbelianIrrep}
6371
return fill(Int(Nsymbol(a, b, c)), (1, 1, 1, 1))
6472
end

0 commit comments

Comments
 (0)