Cirq icon indicating copy to clipboard operation
Cirq copied to clipboard

Common mod near integer and integer multiple of pi code should be refactored

Open dabacon opened this issue 4 years ago • 1 comments

In convert_to_sqrt_iswap.py we use code to dermine closeness to an integer or a 2 pi times an integer. These helpers appear in a lot in gates and should likely be included in some utility location.

dabacon avatar May 04 '20 18:05 dabacon

Alternatively ideas of actual discrete gate sets could be developed which handle these parameter range checking intricacies

dabacon avatar May 04 '20 18:05 dabacon