@@ -165,7 +165,7 @@ operation is the inverse of `insertat` in the sense that if
165165 f₂ = FusionTree {I} (f. uncoupled, f. coupled, isdual2, f. innerlines, f. vertices)
166166 return f₁, f₂
167167 elseif M === 0
168- u = leftone (f. uncoupled[1 ])
168+ u = leftunit (f. uncoupled[1 ])
169169 f₁ = FusionTree {I} ((), u, (), ())
170170 uncoupled2 = (u, f. uncoupled... )
171171 coupled2 = f. coupled
@@ -286,7 +286,7 @@ function bendright(f₁::FusionTree{I, N₁}, f₂::FusionTree{I, N₂}) where {
286286 # map final splitting vertex (a, b)<-c to fusion vertex a<-(c, dual(b))
287287 @assert N₁ > 0
288288 c = f₁. coupled
289- a = N₁ == 1 ? leftone (f₁. uncoupled[1 ]) :
289+ a = N₁ == 1 ? leftunit (f₁. uncoupled[1 ]) :
290290 (N₁ == 2 ? f₁. uncoupled[1 ] : f₁. innerlines[end ])
291291 b = f₁. uncoupled[N₁]
292292
@@ -358,7 +358,7 @@ function foldright(f₁::FusionTree{I, N₁}, f₂::FusionTree{I, N₂}) where {
358358 hasmultiplicities = FusionStyle (a) isa GenericFusion
359359 local newtrees
360360 if N₁ == 1
361- cset = (leftone (c1),) # or rightone (a)
361+ cset = (leftunit (c1),) # or rightunit (a)
362362 elseif N₁ == 2
363363 cset = (f₁. uncoupled[2 ],)
364364 else
@@ -369,7 +369,7 @@ function foldright(f₁::FusionTree{I, N₁}, f₂::FusionTree{I, N₂}) where {
369369 for μ in 1 : Nsymbol (c1, c2, c)
370370 fc = FusionTree ((c1, c2), c, (! isduala, false ), (), (μ,))
371371 for (fl′, coeff1) in insertat (fc, 2 , f₁)
372- N₁ > 1 && ! isone (fl′. innerlines[1 ]) && continue
372+ N₁ > 1 && ! isunit (fl′. innerlines[1 ]) && continue
373373 coupled = fl′. coupled
374374 uncoupled = Base. tail (Base. tail (fl′. uncoupled))
375375 isdual = Base. tail (Base. tail (fl′. isdual))
@@ -722,7 +722,7 @@ corresponding coefficients.
722722function elementary_trace (f:: FusionTree{I, N} , i) where {I <: Sector , N}
723723 (N > 1 && 1 <= i <= N) ||
724724 throw (ArgumentError (" Cannot trace outputs i=$i and i+1 out of only $N outputs" ))
725- i < N || isone (f. coupled) ||
725+ i < N || isunit (f. coupled) ||
726726 throw (ArgumentError (" Cannot trace outputs i=$N and 1 of fusion tree that couples to non-trivial sector" ))
727727
728728 T = sectorscalartype (I)
@@ -735,7 +735,7 @@ function elementary_trace(f::FusionTree{I, N}, i) where {I <: Sector, N}
735735 # if trace is zero, return empty dict
736736 (b == dual (b′) && f. isdual[i] != f. isdual[j]) || return newtrees
737737 if i < N
738- inner_extended = (leftone (f. uncoupled[1 ]), f. uncoupled[1 ], f. innerlines... , f. coupled)
738+ inner_extended = (leftunit (f. uncoupled[1 ]), f. uncoupled[1 ], f. innerlines... , f. coupled)
739739 a = inner_extended[i]
740740 d = inner_extended[i + 2 ]
741741 a == d || return newtrees
@@ -759,11 +759,11 @@ function elementary_trace(f::FusionTree{I, N}, i) where {I <: Sector, N}
759759 if i > 1
760760 c = f. innerlines[i - 1 ]
761761 if FusionStyle (I) isa MultiplicityFreeFusion
762- coeff *= Fsymbol (a, b, dual (b), a, c, rightone (a))
762+ coeff *= Fsymbol (a, b, dual (b), a, c, rightunit (a))
763763 else
764764 μ = f. vertices[i - 1 ]
765765 ν = f. vertices[i]
766- coeff *= Fsymbol (a, b, dual (b), a, c, rightone (a))[μ, ν, 1 , 1 ]
766+ coeff *= Fsymbol (a, b, dual (b), a, c, rightunit (a))[μ, ν, 1 , 1 ]
767767 end
768768 end
769769 if f. isdual[i]
@@ -772,7 +772,7 @@ function elementary_trace(f::FusionTree{I, N}, i) where {I <: Sector, N}
772772 push! (newtrees, f′ => coeff)
773773 return newtrees
774774 else # i == N
775- unit = leftone (b)
775+ unit = leftunit (b)
776776 if N == 2
777777 f′ = FusionTree {I} ((), unit, (), (), ())
778778 coeff = sqrtdim (b)
@@ -838,14 +838,14 @@ function artin_braid(f::FusionTree{I, N}, i; inv::Bool = false) where {I <: Sect
838838 vertices = f. vertices
839839 oneT = one (sectorscalartype (I))
840840
841- if isone (uncoupled[i] ) || isone (uncoupled[i + 1 ] )
841+ if isunit (a ) || isunit (b )
842842 # braiding with trivial sector: simple and always possible
843843 inner′ = inner
844844 vertices′ = vertices
845845 if i > 1 # we also need to alter innerlines and vertices
846846 inner′ = TupleTools. setindex (
847847 inner,
848- inner_extended[isone (a) ? (i + 1 ) : (i - 1 )],
848+ inner_extended[isunit (a) ? (i + 1 ) : (i - 1 )],
849849 i - 1
850850 )
851851 vertices′ = TupleTools. setindex (vertices′, vertices[i], i - 1 )
0 commit comments