OpenFermion icon indicating copy to clipboard operation
OpenFermion copied to clipboard

Use numpy isclose and allclose where possible

Open kevinsung opened this issue 7 years ago • 0 comments

A lot of the code has stuff like if abs(x) > EQ_TOLERANCE. Is there a reason we don't do things the normal way, i.e., if not numpy.isclose(x, 0)? This would make the code more readable and portable.

kevinsung avatar Jul 28 '18 18:07 kevinsung