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 ce7595c commit ef19af0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chainTDVP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ function tdvp1sweep_lc!(dt2, A::Vector, M::Vector, lc::ChainLightCone, F=nothing
end

if k == lc.edge && lc.edge != N
@tensor v = scalar(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])
if 1-norm(v) > lc.thresh
lc.edge += 1
end
Expand All @@ -374,7 +374,7 @@ function tdvp1sweep_lc!(dt2, A::Vector, M::Vector, lc::ChainLightCone, F=nothing
end

if k == lc.edge-1 && lc.edge != N
@tensor v = scalar(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])
if 1-norm(v) > lc.thresh
lc.edge += 1
end
Expand Down

0 comments on commit ef19af0

Please sign in to comment.