Skip to content

Commit

Permalink
Update chainTDVP.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
tfmlaX authored Jan 30, 2024
1 parent de1da1d commit 0d1c4b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/chainTDVP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,8 @@ function tdvp1sweep_lc!(dt2, A::Vector, M::Vector, lc::ChainLightCone, F=nothing
end

if k == lc.edge-1 && lc.edge != N
@tensor v = tensorscalar(conj(AC[a,b,s])*lc.ref[k+1][a,b,s])
#@tensor v = tensorscalar(conj(AC[a,b,s])*lc.ref[k+1][a,b,s])
@tensor v = (conj(AC[a,b,s])*lc.ref[k+1][a,b,s])[]
if 1-norm(v) > lc.thresh
lc.edge += 1
end
Expand Down

0 comments on commit 0d1c4b8

Please sign in to comment.