quil-rs
quil-rs copied to clipboard
Expressions containing NaN are not equal when everything else matches
This was surfaced by proptest fuzzing just now. The expression "aa[0]/(pi - pi)" fails the simplification test because NaN != NaN. This follows the IEEE standard, but I think for our purposes it may make sense to make them equal for the purposes of PartialEq for Expression.