Skip to content

Commit

Permalink
Add sum over onsite expectation values
Browse files Browse the repository at this point in the history
  • Loading branch information
leburgel committed Jun 24, 2024
1 parent 954f9eb commit e78667a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operators/localoperator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ Compute the expectation value of an on-site and an anisotropic nearest-neighbor
This is used to evaluate and differentiate the energy in ground-state PEPS optimizations.
"""
function costfun(peps::InfinitePEPS, env, op::AnisotropicNNOperator)
oos = expectation_value(peps, env, op.h0)[1]
oos = sum(expectation_value(peps, env, op.h0))
oh = sum(expectation_value(peps, env, op.hx))
ov = sum(expectation_value(rotr90(peps), rotate_north(env, WEST), op.hy))
#ov = sum(expectation_value(rotl90(peps), rotl90(env), op.hy))
Expand Down

0 comments on commit e78667a

Please sign in to comment.