Skip to content

Commit f816aac

Browse files
committed
remove superfluous contractcheck
1 parent 23007d9 commit f816aac

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/algorithms/derivatives.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ function ∂AC(x::MPSTensor, ::Nothing, leftenv, rightenv)
8787
end
8888

8989
function ∂AC2(x::MPOTensor, operator1::MPOTensor, operator2::MPOTensor, leftenv, rightenv)
90-
@plansor contractcheck = true toret[-1 -2; -3 -4] := leftenv[-1 7; 6] * x[6 5; 1 3] *
91-
operator1[7 -2; 5 4] *
92-
operator2[4 -4; 3 2] *
93-
rightenv[1 2; -3]
90+
@plansor toret[-1 -2; -3 -4] := leftenv[-1 7; 6] * x[6 5; 1 3] *
91+
operator1[7 -2; 5 4] *
92+
operator2[4 -4; 3 2] *
93+
rightenv[1 2; -3]
9494
return toret isa BlockTensorMap ? only(toret) : toret
9595
end
9696
function ∂AC2(x::MPOTensor, ::Nothing, ::Nothing, leftenv, rightenv)

src/algorithms/toolbox.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,10 @@ function periodic_boundary_conditions(mpo::InfiniteMPO{O},
257257
F_left = i == 1 ? cup : F_right
258258
F_right = i == L ? cup :
259259
isomorphism(ST, V_right V_wrap' * right_virtualspace(mpo, i))
260-
@plansor contractcheck = true output[i][-1 -2; -3 -4] = F_left[-1; 1 2] *
261-
τ[-3 1; 4 3] *
262-
mpo[i][2 -2; 3 5] *
263-
conj(F_right[-4; 4 5])
260+
@plansor output[i][-1 -2; -3 -4] = F_left[-1; 1 2] *
261+
τ[-3 1; 4 3] *
262+
mpo[i][2 -2; 3 5] *
263+
conj(F_right[-4; 4 5])
264264
end
265265
266266
mpo isa SparseMPO && dropzeros!.(output) # the above process fills sparse mpos with zeros.

0 commit comments

Comments
 (0)