Skip to content

Commit 3905686

Browse files
authored
Remove vertexlabel functionality
Remove vertexlabel functionality
2 parents 3a6388e + ef698a1 commit 3905686

File tree

2 files changed

+1
-29
lines changed

2 files changed

+1
-29
lines changed

src/TensorKitSectors.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export otimes, deligneproduct, times
1616
export FusionStyle, UniqueFusion, MultipleFusion, SimpleFusion, GenericFusion,
1717
MultiplicityFreeFusion
1818
export BraidingStyle, NoBraiding, SymmetricBraiding, Bosonic, Fermionic, Anyonic
19-
export SectorSet, SectorValues, findindex, vertex_ind2label, vertex_labeltype
19+
export SectorSet, SectorValues, findindex
2020

2121
export pentagon_equation, hexagon_equation
2222

src/sectors.jl

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ and optionally
2525
* `Bsymbol(a::I, b::I, c::I)`: B-symbol: scalar (in case of
2626
`UniqueFusion`/`SimpleFusion`) or matrix (in case of `GenericFusion`)
2727
* `twist(a::I)` -> twist of sector `a`
28-
and optionally, if `FusionStyle(I) isa GenericFusion`
29-
* `vertex_ind2label(i::Int, a::I, b::I, c::I)` -> a custom label for the `i`th copy of
30-
`c` appearing in `a ⊗ b`
3128
3229
Furthermore, `iterate` and `Base.IteratorSize` should be made to work for the singleton type
3330
[`SectorValues{I}`](@ref).
@@ -191,31 +188,6 @@ it is a rank 4 array of size
191188
"""
192189
function Fsymbol end
193190

194-
# If a I::Sector with `fusion(I) == GenericFusion` fusion wants to have custom vertex
195-
# labels, a specialized method for `vertindex2label` should be added
196-
"""
197-
vertex_ind2label(k::Int, a::I, b::I, c::I) where {I<:Sector}
198-
199-
Convert the index `k` of the fusion vertex (a,b)->c into a label. For
200-
`FusionStyle(I) == UniqueFusion()` or `FusionStyle(I) == MultipleFusion()`, where every
201-
fusion output occurs only once and `k == 1`, the default is to suppress vertex labels by
202-
setting them equal to `nothing`. For `FusionStyle(I) == GenericFusion()`, the default is to
203-
just use `k`, unless a specialized method is provided.
204-
"""
205-
function vertex_ind2label(k::Int, a::I, b::I, c::I) where {I<:Sector}
206-
return _ind2label(FusionStyle(I), k::Int, a::I, b::I, c::I)
207-
end
208-
_ind2label(::UniqueFusion, k, a, b, c) = nothing
209-
_ind2label(::SimpleFusion, k, a, b, c) = nothing
210-
_ind2label(::GenericFusion, k, a, b, c) = k
211-
212-
"""
213-
vertex_labeltype(I::Type{<:Sector}) -> Type
214-
215-
Return the type of labels for the fusion vertices of sectors of type `I`.
216-
"""
217-
vertex_labeltype(I::Type{<:Sector}) = typeof(vertex_ind2label(1, one(I), one(I), one(I)))
218-
219191
# properties that can be determined in terms of the F symbol
220192
# TODO: find mechanism for returning these numbers with custom type T<:AbstractFloat
221193
"""

0 commit comments

Comments
 (0)