Skip to content

Commit

Permalink
Add normalization of bond env
Browse files Browse the repository at this point in the history
  • Loading branch information
Yue-Zhengyuan committed Jan 11, 2025
1 parent 9bd30e5 commit b9a2d68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/algorithms/time_evolution/bondenv/env_ctm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function bondenv_fu(row::Int, col::Int, X::PEPSOrth, Y::PEPSOrth, envs::CTMRGEnv
@autoopt @tensor env[DX1, DY1; DX0, DY0] := (

Check warning on line 61 in src/algorithms/time_evolution/bondenv/env_ctm.jl

View check run for this annotation

Codecov / codecov/patch

src/algorithms/time_evolution/bondenv/env_ctm.jl#L61

Added line #L61 was not covered by tests
lhalf[DX1, DX0, χ5, χ6] * rhalf[DY1, DY0, χ5, χ6]
)
return env
return env / norm(env, Inf)

Check warning on line 64 in src/algorithms/time_evolution/bondenv/env_ctm.jl

View check run for this annotation

Codecov / codecov/patch

src/algorithms/time_evolution/bondenv/env_ctm.jl#L64

Added line #L64 was not covered by tests
end

"""
Expand Down

0 comments on commit b9a2d68

Please sign in to comment.