Skip to content

Commit 3dab6ba

Browse files
committed
change conj to dual for sectors
1 parent 1803c59 commit 3dab6ba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/fusiontrees/fusiontrees.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ end
152152
function Base.convert(A::Type{<:AbstractArray}, f::FusionTree{I,1}) where {I}
153153
c = f.coupled
154154
if f.isdual[1]
155-
sqrtdc = sqrtdim(c) # TODO: change conj to dual
156-
Zcbartranspose = sqrtdc * convert(A, fusiontensor(conj(c), c, unit(c)))[:, :, 1, 1]
155+
sqrtdc = sqrtdim(c)
156+
Zcbartranspose = sqrtdc * convert(A, fusiontensor(dual(c), c, unit(c)))[:, :, 1, 1]
157157
X = conj!(Zcbartranspose) # we want Zcbar^†
158158
else
159159
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
@@ -898,7 +898,7 @@ function artin_braid(f::FusionTree{I,N}, i; inv::Bool=false) where {I<:Sector,N}
898898
return fusiontreedict(I)(f′ => coeff)
899899
elseif FusionStyle(I) isa SimpleFusion
900900
local newtrees
901-
for c′ in intersect(a d, e conj(b))
901+
for c′ in intersect(a d, e dual(b))
902902
coeff = oftype(oneT,
903903
if inv
904904
conj(Rsymbol(d, c, e) * Fsymbol(d, a, b, e, c′, c)) *
@@ -919,7 +919,7 @@ function artin_braid(f::FusionTree{I,N}, i; inv::Bool=false) where {I<:Sector,N}
919919
return newtrees
920920
else # GenericFusion
921921
local newtrees
922-
for c′ in intersect(a d, e conj(b))
922+
for c′ in intersect(a d, e dual(b))
923923
Rmat1 = inv ? Rsymbol(d, c, e)' : Rsymbol(c, d, e)
924924
Rmat2 = inv ? Rsymbol(d, a, c′)' : Rsymbol(a, d, c′)
925925
Fmat = Fsymbol(d, a, b, e, c′, c)

0 commit comments

Comments
 (0)