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

Adds elementary gate decomposition for single-qubit QubitUnitary #1427

Merged
merged 45 commits into from
Jul 7, 2021

Commits on Jun 22, 2021

  1. Add decomposition for QubitUnitary.

    Olivia Di Matteo committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    acb3357 View commit details
    Browse the repository at this point in the history
  2. Add tests. Rewrite decomposition as Rot instead of RZ,RY,RZ.

    Olivia Di Matteo committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    62863e1 View commit details
    Browse the repository at this point in the history
  3. Update decomposition to use qml.math for differentiability.

    Olivia Di Matteo committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    5dbe2c0 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2021

  1. Apply suggestions from code review

    Co-authored-by: Josh Izaac <josh146@gmail.com>
    glassnotes and josh146 committed Jun 23, 2021
    Configuration menu
    Copy the full SHA
    2772e52 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bb6f7f0 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2021

  1. Re-implement decomposition as a transform.

    Olivia Di Matteo committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    c90439a View commit details
    Browse the repository at this point in the history
  2. Rework code to work with different interfaces.

    Olivia Di Matteo committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    f3c5bd0 View commit details
    Browse the repository at this point in the history
  3. Change check for diagonal to use matrix element instead of computed a…

    …ngle.
    Olivia Di Matteo committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    3fef91d View commit details
    Browse the repository at this point in the history
  4. Get things working for 64 bit data in all interfaces.

    Olivia Di Matteo committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    4d66997 View commit details
    Browse the repository at this point in the history
  5. Remove print statements.

    Olivia Di Matteo committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    5f723fb View commit details
    Browse the repository at this point in the history
  6. Add test of transform in all interfaces.

    Olivia Di Matteo committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    b8a524b View commit details
    Browse the repository at this point in the history
  7. Differentiability tests (currently only working for autograd).

    Olivia Di Matteo committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    60a0b1e View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2021

  1. Fix order of variables and use interface math for each case.

    Olivia Di Matteo committed Jun 25, 2021
    Configuration menu
    Copy the full SHA
    f8d41ce View commit details
    Browse the repository at this point in the history
  2. Fix return of single measurement in qfunc transform.

    Olivia Di Matteo committed Jun 25, 2021
    Configuration menu
    Copy the full SHA
    dccdba7 View commit details
    Browse the repository at this point in the history
  3. Add unit test.

    Olivia Di Matteo committed Jun 25, 2021
    Configuration menu
    Copy the full SHA
    f457347 View commit details
    Browse the repository at this point in the history
  4. Update CHANGELOG.

    Olivia Di Matteo committed Jun 25, 2021
    Configuration menu
    Copy the full SHA
    284e65f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    85eb1ab View commit details
    Browse the repository at this point in the history
  6. Coax all the interfaces to compute gradients.

    Olivia Di Matteo committed Jun 25, 2021
    Configuration menu
    Copy the full SHA
    c6ad65b View commit details
    Browse the repository at this point in the history
  7. Merge branch 'master' into su2_su4_decomposition

    Olivia Di Matteo committed Jun 25, 2021
    Configuration menu
    Copy the full SHA
    9cc9ffe View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2021

  1. Configuration menu
    Copy the full SHA
    6986829 View commit details
    Browse the repository at this point in the history
  2. Add comment for circular import.

    Olivia Di Matteo committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    5fddce4 View commit details
    Browse the repository at this point in the history
  3. Apply suggestions from code review

    Co-authored-by: Josh Izaac <josh146@gmail.com>
    glassnotes and josh146 committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    e4591c9 View commit details
    Browse the repository at this point in the history
  4. Fix shape check in convert_to_su2.

    Olivia Di Matteo committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    0fe201e View commit details
    Browse the repository at this point in the history
  5. Change qml.math to math.

    Olivia Di Matteo committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    b09e6d8 View commit details
    Browse the repository at this point in the history
  6. Restructure; move decompositions into new directory.

    Olivia Di Matteo committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    91ae536 View commit details
    Browse the repository at this point in the history
  7. Remove redundant checks.

    Olivia Di Matteo committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    ef09356 View commit details
    Browse the repository at this point in the history
  8. Apply suggestions from code review

    Co-authored-by: Josh Izaac <josh146@gmail.com>
    glassnotes and josh146 committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    b9480be View commit details
    Browse the repository at this point in the history
  9. Rename transform.

    Olivia Di Matteo committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    b621546 View commit details
    Browse the repository at this point in the history
  10. Update tests to new name.

    Olivia Di Matteo committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    a40f05b View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3b6c694 View commit details
    Browse the repository at this point in the history
  12. Raise NotImplementedError and add new test. Fixes qmc test.

    Olivia Di Matteo committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    97ee4db View commit details
    Browse the repository at this point in the history
  13. Update tests to use 2-qubit unitary.

    Olivia Di Matteo committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    7232294 View commit details
    Browse the repository at this point in the history
  14. Change unsupported QASM gate to DoubleExcitationPlus.

    Olivia Di Matteo committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    262fbaf View commit details
    Browse the repository at this point in the history
  15. Fix gradient test names and add min version for torch.

    Olivia Di Matteo committed Jun 29, 2021
    Configuration menu
    Copy the full SHA
    1489d81 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2021

  1. Configuration menu
    Copy the full SHA
    4e2925e View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2021

  1. Merge branch 'master' into su2_su4_decomposition

    Olivia Di Matteo committed Jul 5, 2021
    Configuration menu
    Copy the full SHA
    0cd62fa View commit details
    Browse the repository at this point in the history
  2. Add backprop diff method to tests.

    Olivia Di Matteo committed Jul 5, 2021
    Configuration menu
    Copy the full SHA
    379ea3f View commit details
    Browse the repository at this point in the history
  3. Switch transform to using qml.apply.

    Olivia Di Matteo committed Jul 5, 2021
    Configuration menu
    Copy the full SHA
    0dd4ce0 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2021

  1. fix tests

    josh146 committed Jul 6, 2021
    Configuration menu
    Copy the full SHA
    8c41a0d View commit details
    Browse the repository at this point in the history
  2. Merge branch 'su2_su4_decomposition' of https://github.com/PennyLaneA…

    …I/pennylane into su2_su4_decomposition
    Olivia Di Matteo committed Jul 6, 2021
    Configuration menu
    Copy the full SHA
    513a4d6 View commit details
    Browse the repository at this point in the history
  3. Fix to work with qml.apply; don't requeue ops.

    Olivia Di Matteo committed Jul 6, 2021
    Configuration menu
    Copy the full SHA
    40fdf67 View commit details
    Browse the repository at this point in the history
  4. Add zyz_decomp to docs.

    Olivia Di Matteo committed Jul 6, 2021
    Configuration menu
    Copy the full SHA
    8a20067 View commit details
    Browse the repository at this point in the history
  5. Clarify decomposition docstring.

    Olivia Di Matteo committed Jul 6, 2021
    Configuration menu
    Copy the full SHA
    26575ea View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2021

  1. Update CHANGELOG.

    Olivia Di Matteo committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    03bd4dd View commit details
    Browse the repository at this point in the history
  2. Update CHANGELOG.

    Olivia Di Matteo committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    070bc97 View commit details
    Browse the repository at this point in the history