Skip to content

Commit 7c799b9

Browse files
committed
remove twists
1 parent 7583e47 commit 7c799b9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/algorithms/toolbox.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,9 @@ function periodic_boundary_conditions(mpo::InfiniteMPO{O},
274274
F_left = i == 1 ? cup : F_right
275275
F_right = i == L ? cup :
276276
isomorphism(ST, V_right V_wrap' * right_virtualspace(mpo, i))
277-
# account for fermionic boundary conditions
278-
o = i == L ? _twist(mpo[i], 4) : mpo[i]
279277
@plansor output[i][-1 -2; -3 -4] = F_left[-1; 1 2] *
280278
τ[-3 1; 4 3] *
281-
o[2 -2; 3 5] *
279+
mpo[i][2 -2; 3 5] *
282280
conj(F_right[-4; 4 5])
283281
end
284282

@@ -423,8 +421,6 @@ function periodic_boundary_conditions(H::InfiniteMPOHamiltonian, L=length(H))
423421
F_left = fusers[end][j, k, chi]
424422
k′ = indmap[j, k, chi]
425423
k′ == size(output[end], 1) && continue
426-
# apply twist for fermionic boundary conditions
427-
h = _twist(h, 4)
428424
@plansor o[-1 -2; -3 -4] := F_left[-1; 1 2 6] * h[1 3; -3 4] * τ[3 2; 4 5] *
429425
τ[5 6; -4 -2]
430426
output[end][k′, 1, 1, 1] = o

0 commit comments

Comments
 (0)