Closed
Description
Description of the issue
During the review of #4386 which reduced the number of CNOT gates produced by BooleanHamiltonian
, there was a remark that the functions _simplify_cnots_triplets
and _simplify_commuting_cnots
can be made faster. As soon as they find a simplification, they return early and then start from scratch again. Maybe continuing would be more efficient.
Cirq version
0.13.0.dev