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

Implement __array__ for qasm2._DefinedGate (backport #12119) #12523

Merged
merged 1 commit into from
Jun 6, 2024

Commits on Jun 6, 2024

  1. Implement __array__ for qasm2._DefinedGate (#12119)

    * Implement `__array__` for `qasm2._DefinedGate`
    
    Gates defined from OpenQASM 2 should have a well-defined matrix form (up
    to global phase) whenever all the constituent parts of the definition
    do. This manually makes such a matrix available.
    
    * Fix signature for Numpy 2.0
    
    (cherry picked from commit 767bd07)
    jakelishman authored and mergify[bot] committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    7836274 View commit details
    Browse the repository at this point in the history