Skip to content

Commit bef4790

Browse files
borisdevoslkdvos
authored andcommitted
change conj to dual for sectors
1 parent fdf8271 commit bef4790

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/fusiontrees/fusiontrees.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ end
165165
function Base.convert(A::Type{<:AbstractArray}, f::FusionTree{I, 1}) where {I}
166166
c = f.coupled
167167
if f.isdual[1]
168-
sqrtdc = sqrtdim(c) # TODO: change conj to dual
169-
Zcbartranspose = sqrtdc * convert(A, fusiontensor(conj(c), c, unit(c)))[:, :, 1, 1]
168+
sqrtdc = sqrtdim(c)
169+
Zcbartranspose = sqrtdc * convert(A, fusiontensor(dual(c), c, unit(c)))[:, :, 1, 1]
170170
X = conj!(Zcbartranspose) # we want Zcbar^†
171171
else
172172
X = convert(A, fusiontensor(c, unit(c), c))[:, 1, :, 1, 1]

src/fusiontrees/manipulations.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ function artin_braid(f::FusionTree{I, N}, i; inv::Bool = false) where {I <: Sect
903903
return fusiontreedict(I)(f′ => coeff)
904904
elseif FusionStyle(I) isa SimpleFusion
905905
local newtrees
906-
for c′ in intersect(a d, e conj(b))
906+
for c′ in intersect(a d, e dual(b))
907907
coeff = oftype(
908908
oneT,
909909
if inv
@@ -924,7 +924,7 @@ function artin_braid(f::FusionTree{I, N}, i; inv::Bool = false) where {I <: Sect
924924
return newtrees
925925
else # GenericFusion
926926
local newtrees
927-
for c′ in intersect(a d, e conj(b))
927+
for c′ in intersect(a d, e dual(b))
928928
Rmat1 = inv ? Rsymbol(d, c, e)' : Rsymbol(c, d, e)
929929
Rmat2 = inv ? Rsymbol(d, a, c′)' : Rsymbol(a, d, c′)
930930
Fmat = Fsymbol(d, a, b, e, c′, c)

0 commit comments

Comments
 (0)