Skip to content

Speed up simplification of CNOTs in BooleanHamiltonian #4532

Closed
@tonybruguier

Description

@tonybruguier

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/performancekind/healthFor CI/testing/release process/refactoring/technical debt items

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions