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

Decomposition of arbitrary two-qubit unitaries. #1552

Merged

Commits on Aug 18, 2021

  1. Initial commit.

    Olivia Di Matteo committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    82ce28a View commit details
    Browse the repository at this point in the history
  2. Add scaffolding and helper function.

    Olivia Di Matteo committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    00e7d39 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2021

  1. Temp commit.

    Olivia Di Matteo committed Aug 19, 2021
    Configuration menu
    Copy the full SHA
    5e5f723 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2021

  1. Progress!!

    Olivia Di Matteo committed Aug 23, 2021
    Configuration menu
    Copy the full SHA
    53cd6dc View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2021

  1. Update su2su2 implementation.

    Olivia Di Matteo committed Aug 24, 2021
    Configuration menu
    Copy the full SHA
    7420283 View commit details
    Browse the repository at this point in the history
  2. Temp commit.

    Olivia Di Matteo committed Aug 24, 2021
    Configuration menu
    Copy the full SHA
    93e1a54 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2021

  1. Implementation that essentially works. Need testing.

    Olivia Di Matteo committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    3a7b920 View commit details
    Browse the repository at this point in the history
  2. Remove perms.

    Olivia Di Matteo committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    9d603bc View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2021

  1. Works about half the time.

    Olivia Di Matteo committed Aug 30, 2021
    Configuration menu
    Copy the full SHA
    33acb87 View commit details
    Browse the repository at this point in the history
  2. Tidy a bit.

    Olivia Di Matteo committed Aug 30, 2021
    Configuration menu
    Copy the full SHA
    7b75d65 View commit details
    Browse the repository at this point in the history
  3. Small tweaks.

    Olivia Di Matteo committed Aug 30, 2021
    Configuration menu
    Copy the full SHA
    02e45eb View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2021

  1. Temporary work.

    Olivia Di Matteo committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    aee732e View commit details
    Browse the repository at this point in the history
  2. Working version, minus tests.

    Olivia Di Matteo committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    cf61a09 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f3a133e View commit details
    Browse the repository at this point in the history
  4. Move decomposition tests to decomposition.

    Olivia Di Matteo committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    8a34c83 View commit details
    Browse the repository at this point in the history
  5. Update some tests. Add to docs.

    Olivia Di Matteo committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    81c1fb7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2f66c2c View commit details
    Browse the repository at this point in the history
  7. Remove old test file.

    Olivia Di Matteo committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    285357b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e41ddbc View commit details
    Browse the repository at this point in the history
  9. Run black.

    Olivia Di Matteo committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    83e617e View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2021

  1. Apply suggestions from code review

    Co-authored-by: Josh Izaac <josh146@gmail.com>
    glassnotes and josh146 authored Sep 1, 2021
    Configuration menu
    Copy the full SHA
    8794e1e View commit details
    Browse the repository at this point in the history
  2. Make E matrix numpy constant.

    Olivia Di Matteo committed Sep 1, 2021
    Configuration menu
    Copy the full SHA
    954e69f View commit details
    Browse the repository at this point in the history
  3. Vectorize permutation matrix construction.

    Olivia Di Matteo committed Sep 1, 2021
    Configuration menu
    Copy the full SHA
    a0bb0f0 View commit details
    Browse the repository at this point in the history
  4. Replace column negation with matrix multiplication.

    Olivia Di Matteo committed Sep 1, 2021
    Configuration menu
    Copy the full SHA
    b91a2d6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d27e195 View commit details
    Browse the repository at this point in the history
  6. qml.math to math

    Olivia Di Matteo committed Sep 1, 2021
    Configuration menu
    Copy the full SHA
    206b79d View commit details
    Browse the repository at this point in the history
  7. Remove unneeded variables.

    Olivia Di Matteo committed Sep 1, 2021
    Configuration menu
    Copy the full SHA
    f008f4e View commit details
    Browse the repository at this point in the history
  8. Merge branch 'master' into ch7103-implement-differentiable-two-qubit-…

    …qubitunitary
    Olivia Di Matteo committed Sep 1, 2021
    Configuration menu
    Copy the full SHA
    7cb8095 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2021

  1. Merge branch 'master' into ch7103-implement-differentiable-two-qubit-…

    …qubitunitary
    Olivia Di Matteo committed Sep 3, 2021
    Configuration menu
    Copy the full SHA
    a3483d7 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2021

  1. Calculate the required number of CNOTs from tr(gammaU).

    Olivia Di Matteo committed Sep 7, 2021
    Configuration menu
    Copy the full SHA
    0a0f78e View commit details
    Browse the repository at this point in the history
  2. Split into multiple cases. 0, 2, and 3-CNOT cases are currently funct…

    …ional.
    Olivia Di Matteo committed Sep 7, 2021
    Configuration menu
    Copy the full SHA
    50d98c0 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2021

  1. Add broken version.

    Olivia Di Matteo committed Sep 8, 2021
    Configuration menu
    Copy the full SHA
    4b5fe9f View commit details
    Browse the repository at this point in the history
  2. Update with integration tests.

    Olivia Di Matteo committed Sep 8, 2021
    Configuration menu
    Copy the full SHA
    ccfa975 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3815a6e View commit details
    Browse the repository at this point in the history
  4. Improve documentation.

    Olivia Di Matteo committed Sep 8, 2021
    Configuration menu
    Copy the full SHA
    aca20de View commit details
    Browse the repository at this point in the history
  5. Run black.

    Olivia Di Matteo committed Sep 8, 2021
    Configuration menu
    Copy the full SHA
    bf26a95 View commit details
    Browse the repository at this point in the history
  6. Fix matrix ordering.

    Olivia Di Matteo committed Sep 8, 2021
    Configuration menu
    Copy the full SHA
    ab18e19 View commit details
    Browse the repository at this point in the history
  7. RUn black.

    Olivia Di Matteo committed Sep 8, 2021
    Configuration menu
    Copy the full SHA
    a1ce224 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2021

  1. Configuration menu
    Copy the full SHA
    286eb47 View commit details
    Browse the repository at this point in the history
  2. Apply suggestions from code review

    Co-authored-by: Josh Izaac <josh146@gmail.com>
    glassnotes and josh146 authored Sep 9, 2021
    Configuration menu
    Copy the full SHA
    272e2a3 View commit details
    Browse the repository at this point in the history
  3. Update error message. Change all qml.math to math.

    Olivia Di Matteo committed Sep 9, 2021
    Configuration menu
    Copy the full SHA
    d830767 View commit details
    Browse the repository at this point in the history
  4. Fix tests.

    Olivia Di Matteo committed Sep 9, 2021
    Configuration menu
    Copy the full SHA
    2c27901 View commit details
    Browse the repository at this point in the history
  5. Change error to warning.

    Olivia Di Matteo committed Sep 9, 2021
    Configuration menu
    Copy the full SHA
    d6139c0 View commit details
    Browse the repository at this point in the history
  6. Remove unused warnings.

    Olivia Di Matteo committed Sep 9, 2021
    Configuration menu
    Copy the full SHA
    ff657cf View commit details
    Browse the repository at this point in the history
  7. Run black.

    Olivia Di Matteo committed Sep 9, 2021
    Configuration menu
    Copy the full SHA
    fcb9981 View commit details
    Browse the repository at this point in the history
  8. Test CNOT number computation.

    Olivia Di Matteo committed Sep 9, 2021
    Configuration menu
    Copy the full SHA
    9da5930 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b35a844 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2021

  1. Fix bug in zyz decomposition and tidy tests.

    Olivia Di Matteo committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    b238b02 View commit details
    Browse the repository at this point in the history
  2. Update CHANGELOG.

    Olivia Di Matteo committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    64aec27 View commit details
    Browse the repository at this point in the history
  3. Tweak comments.

    Olivia Di Matteo committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    ed6d55f View commit details
    Browse the repository at this point in the history
  4. Add single-CNOT case.

    Olivia Di Matteo committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    0bd7c62 View commit details
    Browse the repository at this point in the history
  5. Add testing for single-CNOT case.

    Olivia Di Matteo committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    4ca367d View commit details
    Browse the repository at this point in the history
  6. Separate out utility functions and clean up file.

    Olivia Di Matteo committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    46a4fbd View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2021

  1. Cast to 1j to handle square root of negative values.

    Olivia Di Matteo committed Sep 13, 2021
    Configuration menu
    Copy the full SHA
    58cce92 View commit details
    Browse the repository at this point in the history
  2. Partially working 2-CNOT case.

    Olivia Di Matteo committed Sep 13, 2021
    Configuration menu
    Copy the full SHA
    bda6a47 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2021

  1. Merge branch 'master' into ch7103-implement-differentiable-two-qubit-…

    …qubitunitary
    Olivia Di Matteo committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    50206a2 View commit details
    Browse the repository at this point in the history
  2. Revert qnode file.

    Olivia Di Matteo committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    06736f6 View commit details
    Browse the repository at this point in the history
  3. Fix CHANGELOG.

    Olivia Di Matteo committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    cf4a456 View commit details
    Browse the repository at this point in the history
  4. Fix CHANGELOG.

    Olivia Di Matteo committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    c93a2c1 View commit details
    Browse the repository at this point in the history
  5. Revert test files.

    Olivia Di Matteo committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    0b2ca09 View commit details
    Browse the repository at this point in the history
  6. Revert test_qnode.

    Olivia Di Matteo committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    b40aeca View commit details
    Browse the repository at this point in the history
  7. Run black.

    Olivia Di Matteo committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    5ae6600 View commit details
    Browse the repository at this point in the history
  8. Temporary commit.

    Olivia Di Matteo committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    ae22d8f View commit details
    Browse the repository at this point in the history
  9. Working 2-CNOT case!

    Olivia Di Matteo committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    3b34879 View commit details
    Browse the repository at this point in the history
  10. Run black.

    Olivia Di Matteo committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    cd38e2a View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2021

  1. It works!

    Olivia Di Matteo committed Sep 15, 2021
    Configuration menu
    Copy the full SHA
    5c9c97b View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into ch7103-implement-differentiable-two-qubit-…

    …qubitunitary
    Olivia Di Matteo committed Sep 15, 2021
    Configuration menu
    Copy the full SHA
    84e8e2d View commit details
    Browse the repository at this point in the history
  3. Fix test.

    Olivia Di Matteo committed Sep 15, 2021
    Configuration menu
    Copy the full SHA
    82ff384 View commit details
    Browse the repository at this point in the history
  4. Documentation and code factor fixes.

    Olivia Di Matteo committed Sep 15, 2021
    Configuration menu
    Copy the full SHA
    3ff4abd View commit details
    Browse the repository at this point in the history
  5. Tweak documentation.

    Olivia Di Matteo committed Sep 15, 2021
    Configuration menu
    Copy the full SHA
    e6074cc View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2021

  1. Configuration menu
    Copy the full SHA
    ce5afaa View commit details
    Browse the repository at this point in the history
  2. Apply suggestions from code review

    Co-authored-by: Josh Izaac <josh146@gmail.com>
    glassnotes and josh146 authored Sep 16, 2021
    Configuration menu
    Copy the full SHA
    d4c2dd1 View commit details
    Browse the repository at this point in the history
  3. Move functions back from utils to module.

    Olivia Di Matteo committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    b8b3c88 View commit details
    Browse the repository at this point in the history
  4. Make ASCII circuits in docstrings pretty.

    Olivia Di Matteo committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    93a34fb View commit details
    Browse the repository at this point in the history
  5. Make single-qubit constant matrices top-level.

    Olivia Di Matteo committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    13afd2b View commit details
    Browse the repository at this point in the history
  6. Rearrange CNOT check. Move matrix to top level.

    Olivia Di Matteo committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    2441222 View commit details
    Browse the repository at this point in the history
  7. Streamline conversion to SO(4).

    Olivia Di Matteo committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    26bb16c View commit details
    Browse the repository at this point in the history
  8. Remove LAST_COL_NEG.

    Olivia Di Matteo committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    6ff7bd8 View commit details
    Browse the repository at this point in the history
  9. Fix conj.

    Olivia Di Matteo committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    4f59371 View commit details
    Browse the repository at this point in the history
  10. Update docs and add developer notes.

    Olivia Di Matteo committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    ec1eef8 View commit details
    Browse the repository at this point in the history
  11. Update CHANGELOG.

    Olivia Di Matteo committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    e54ce46 View commit details
    Browse the repository at this point in the history
  12. Fix CHANGELOG.

    Olivia Di Matteo committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    a32806a View commit details
    Browse the repository at this point in the history
  13. Fix docstring.

    Olivia Di Matteo committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    3746937 View commit details
    Browse the repository at this point in the history
  14. Fix decomposition so expansion works.

    Olivia Di Matteo committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    19a6d04 View commit details
    Browse the repository at this point in the history
  15. Fix QMC test.

    Olivia Di Matteo committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    8930f2c View commit details
    Browse the repository at this point in the history
  16. Fix transform so expand works.

    Olivia Di Matteo committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    2bc2ed5 View commit details
    Browse the repository at this point in the history
  17. Remove unused import.

    Olivia Di Matteo committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    8a2ec08 View commit details
    Browse the repository at this point in the history
  18. Add length checks.

    Olivia Di Matteo committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    2c307e8 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    587160d View commit details
    Browse the repository at this point in the history
  20. Merge branch 'ch7103-implement-differentiable-two-qubit-qubitunitary'…

    … of https://github.com/PennyLaneAI/pennylane into ch7103-implement-differentiable-two-qubit-qubitunitary
    Olivia Di Matteo committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    695a27e View commit details
    Browse the repository at this point in the history
  21. Update changelog.

    Olivia Di Matteo committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    63c11bb View commit details
    Browse the repository at this point in the history
  22. Remove parameter shift test case.

    Olivia Di Matteo committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    ce5510c View commit details
    Browse the repository at this point in the history
  23. Tweak docstring.

    Olivia Di Matteo committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    db45dc4 View commit details
    Browse the repository at this point in the history
  24. Apply suggestions from code review

    Co-authored-by: Josh Izaac <josh146@gmail.com>
    glassnotes and josh146 authored Sep 16, 2021
    Configuration menu
    Copy the full SHA
    36bf33b View commit details
    Browse the repository at this point in the history
  25. Add SU(4) invalid check.

    Olivia Di Matteo committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    45e76f2 View commit details
    Browse the repository at this point in the history
  26. Merge branch 'ch7103-implement-differentiable-two-qubit-qubitunitary'…

    … of https://github.com/PennyLaneAI/pennylane into ch7103-implement-differentiable-two-qubit-qubitunitary
    Olivia Di Matteo committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    d47f894 View commit details
    Browse the repository at this point in the history
  27. Add test case for 3-qubit QubitUnitary in unitary_to_rot.

    Olivia Di Matteo committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    13832c3 View commit details
    Browse the repository at this point in the history
  28. Massive simplification.

    Olivia Di Matteo committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    daaff43 View commit details
    Browse the repository at this point in the history