OpenFermion icon indicating copy to clipboard operation
OpenFermion copied to clipboard

Fix :Exclude zero-valued same-spin two-body terms in generate_hamiltonian

Open Aniketsy opened this issue 3 months ago • 1 comments

#856

This pull request fixes issue by adding a condition to the generate_hamiltonian function that skips the inclusion of two-body Hamiltonian terms with repeated creation .

Aniketsy avatar Sep 21 '25 04:09 Aniketsy

Similar to the other PR I just commented on, I recommend running tests locally and debugging the changes locally because that will be easier and faster than waiting for CI checks. This PR currently fails checks; it doesn't look like this code change is correct by itself.

mhucka avatar Oct 13 '25 05:10 mhucka