@@ -14,14 +14,11 @@ applying `artin_braid(f′, i; inv = true)` to all the outputs `f′` of
1414`artin_braid(f, i; inv = false)` and collecting the results should yield a single fusion
1515tree with non-zero coefficient, namely `f` with coefficient `1`. This keyword has no effect
1616if `BraidingStyle(sectortype(f)) isa SymmetricBraiding`.
17+
18+ For sectors without `UniqueFusion`, the braid of `f` has to be a single fusion tree, which is the
19+ case if `f` is the only fusion tree with its uncoupled and coupled sectors; this throws otherwise.
1720"""
1821function artin_braid (f:: FusionTree{I, N} , i; inv:: Bool = false ) where {I, N}
19- @assert FusionStyle (I) === UniqueFusion ()
20- return _artin_braid_single (f, i, inv)
21- end
22- # also for a tree that is the only one with its uncoupled sectors, whose braid is again a single
23- # tree (`only` throws otherwise)
24- function _artin_braid_single (f:: FusionTree{I, N} , i, inv:: Bool ) where {I, N}
2522 1 <= i < N || throw (ArgumentError (lazy " Cannot swap outputs i=$i and i+1 out of only $N outputs" ))
2623
2724 uncoupled = f. uncoupled
@@ -84,15 +81,12 @@ function _artin_braid_single(f::FusionTree{I, N}, i, inv::Bool) where {I, N}
8481end
8582
8683# the inner lines `c′` of `a ⊗ d → c′ → c′ ⊗ b → e`, i.e. `intersect(a ⊗ d, e ⊗ conj(b))`,
87- # without constructing the second fusion product for sectors with a simple unit
88- function _artin_channels (a:: I , b:: I , d:: I , e:: I ) where {I <: Sector }
89- UnitStyle (I) isa SimpleUnit || return intersect (a ⊗ d, e ⊗ conj (b))
90- return Iterators. filter (c′ -> ! iszero (Nsymbol (c′, b, e)), a ⊗ d)
91- end
92- # the only such line, for a fusion tree that braids into a single one
84+ # without constructing the second fusion product
85+ _artin_channels (a, b, d, e) = Iterators. filter (c′ -> ! iszero (Nsymbol (c′, b, e)), a ⊗ d)
86+ # the only such line, for a fusion tree that braids into a single one (`only` throws otherwise)
9387_artin_channel (a, b, d, e) = _artin_channel (FusionStyle (a), a, b, d, e)
9488_artin_channel (:: UniqueFusion , a, b, d, e) = only (a ⊗ d)
95- _artin_channel (:: FusionStyle , a, b, d, e) = first (_artin_channels (a, b, d, e))
89+ _artin_channel (:: FusionStyle , a, b, d, e) = only (_artin_channels (a, b, d, e))
9690
9791function artin_braid (src:: FusionTreeBlock{I, N, 0} , i; inv:: Bool = false ) where {I, N}
9892 n = length (src) # braiding a complete block keeps its size
347341 for s in permutation2swaps (p)
348342 _check_levels (BraidingStyle (I), levels, s)
349343 inv = levels[s] > levels[s + 1 ]
350- f, c = _artin_braid_single (f, s, inv)
344+ f, c = artin_braid (f, s; inv)
351345 coeff *= c
352346 l = levels[s]
353347 levels = TupleTools. setindex (levels, levels[s + 1 ], s)
0 commit comments