OpenFermion
OpenFermion copied to clipboard
Use numpy isclose and allclose where possible
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.