Skip to content

Commit 52c33b5

Browse files
committed
Change convention add_physical_charge
1 parent c3521db commit 52c33b5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/operators/abstractmpo.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ end
261261

262262
function add_physical_charge(O::MPOTensor, charge::Sector)
263263
sectortype(O) === typeof(charge) || throw(SectorMismatch())
264-
auxspace = Vect[typeof(charge)](charge => 1)
264+
auxspace = Vect[typeof(charge)](charge => 1)'
265265
F = fuser(scalartype(O), physicalspace(O), auxspace)
266266
@plansor O_charged[-1 -2; -3 -4] := F[-2; 1 2] *
267267
O[-1 1; 4 3] *
@@ -270,16 +270,14 @@ function add_physical_charge(O::MPOTensor, charge::Sector)
270270
end
271271
function add_physical_charge(O::BraidingTensor, charge::Sector)
272272
sectortype(O) === typeof(charge) || throw(SectorMismatch())
273-
auxspace = Vect[typeof(charge)](charge => 1)
273+
auxspace = Vect[typeof(charge)](charge => 1)'
274274
V = left_virtualspace(O) fuse(physicalspace(O), auxspace)
275275
fuse(physicalspace(O), auxspace) right_virtualspace(O)
276276
return BraidingTensor{scalartype(O)}(V)
277277
end
278278
function add_physical_charge(O::AbstractBlockTensorMap{<:Any,<:Any,2,2}, charge::Sector)
279279
sectortype(O) == typeof(charge) || throw(SectorMismatch())
280-
281-
auxspace = Vect[typeof(charge)](charge => 1)
282-
280+
auxspace = Vect[typeof(charge)](charge => 1)'
283281
Odst = similar(O,
284282
left_virtualspace(O) fuse(physicalspace(O), auxspace)
285283
fuse(physicalspace(O), auxspace) right_virtualspace(O))

0 commit comments

Comments
 (0)