Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid operator creation in transpiler (backport #12826) #12875

Merged
merged 1 commit into from
Jul 31, 2024

Commits on Jul 31, 2024

  1. Avoid operator creation in transpiler (#12826)

    * Avoid operator creation in transpiler
    
    This removes very nearly all of the use of `DAGOpNode.op` in the default
    transpiler paths.  The sole exception is in `InverseCancellation`, which
    currently would involve some quite awkward gymnastics for little
    near-term benefit. The pass should move fully to Rust soon, making it
    not worth the effort.
    
    Most of the tricks here involve using the knowledge that most operations
    will involve only Rust-space standard gates, and that these cannot be
    control-flow operations.
    
    * Fix `HighLevelSynthesis` fast path
    
    ---------
    
    Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
    (cherry picked from commit 0afb06e)
    jakelishman authored and mergify[bot] committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    ec04618 View commit details
    Browse the repository at this point in the history