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

Make optimize_1q_gates U and P aware #5429

Merged
merged 8 commits into from
Nov 26, 2020

Commits on Nov 24, 2020

  1. Make optimize_1q_gates U aware

    The optimize 1q gates pass currently only operates on u1, u2, u3 (or a
    subset of that), however the u gate is interchangeable with the u3 gate
    and the pass can be run if there is a u in the basis just as easily as
    if it were a u3. This comes up for backends with overcomplete basis
    sets, like Aer, which can have u and u3 in the same circuit. The
    optimization pass will not simplify those gates despite it being
    possible.
    mtreinish committed Nov 24, 2020
    Configuration menu
    Copy the full SHA
    ee87525 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2020

  1. Make Optimize1QGates Phase gate aware too

    Just as U and U3 are interchangeable, U1 and P are also interchangeable.
    This commit makes the same change to the Optimize1QGates pass done
    earlier for supporting U for U1 and P so that if will work for a basis
    where P is used instead of U1.
    mtreinish committed Nov 25, 2020
    Configuration menu
    Copy the full SHA
    e37928c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9c6d648 View commit details
    Browse the repository at this point in the history
  3. Fix lint

    mtreinish committed Nov 25, 2020
    Configuration menu
    Copy the full SHA
    6065ef6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    843d97f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0929a10 View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2020

  1. Configuration menu
    Copy the full SHA
    6988dfb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    df542fe View commit details
    Browse the repository at this point in the history