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

Revert tests for multi-controlled-zyz #821

Merged
merged 15 commits into from
Aug 22, 2024
Merged

Conversation

maliasadi
Copy link
Member

@maliasadi maliasadi commented Jul 26, 2024

Before submitting

Please complete the following checklist when submitting a PR:

  • All new features must include a unit test.
    If you've fixed a bug or added code that should be tested, add a test to the
    tests directory!

  • All new functions and code must be clearly commented and documented.
    If you do make documentation changes, make sure that the docs build and
    render correctly by running make docs.

  • Ensure that the test suite passes, by running make test.

  • Add a new entry to the .github/CHANGELOG.md file, summarizing the
    change, and including a link back to the PR.

  • Ensure that code is properly formatted by running make format.

When all the above are checked, delete everything above the dashed
line and fill in the pull request template.


Context:
PR PennyLaneAI/pennylane#6042 adds support for multi-controlled zyz.
For Lightning, this means that custom decompositions to special zyz with multiple controlled wires will be supported.

Description of the Change:

  • Add tests for adjoint jacobian of the controlled gate with multiple controlled_wires.

Benefits:

Possible Drawbacks:

Related GitHub Issues:
[sc-67711]

Copy link
Contributor

Hello. You may have forgotten to update the changelog!
Please edit .github/CHANGELOG.md with:

  • A one-to-two sentence description of the change. You may include a small working example for new features.
  • A link back to this PR.
  • Your name (or GitHub username) in the contributors section.

Copy link

codecov bot commented Jul 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.86%. Comparing base (ee837d6) to head (99d244d).
Report is 79 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (ee837d6) and HEAD (99d244d). Click for more details.

HEAD has 4 uploads less than BASE
Flag BASE (ee837d6) HEAD (99d244d)
11 7
Additional details and impacted files
@@             Coverage Diff             @@
##           master     #821       +/-   ##
===========================================
- Coverage   95.13%   59.86%   -35.27%     
===========================================
  Files         114       17       -97     
  Lines       18350     1991    -16359     
===========================================
- Hits        17457     1192    -16265     
+ Misses        893      799       -94     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

Copy link
Contributor

@LuisAlfredoNu LuisAlfredoNu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you @maliasadi 👍

@multiphaseCFD
Copy link
Member

Looks good to me! Thanks @maliasadi !

Copy link
Member

@multiphaseCFD multiphaseCFD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @maliasadi ! Looks good to me!

@maliasadi maliasadi merged commit 7c38c96 into master Aug 22, 2024
80 of 81 checks passed
@maliasadi maliasadi deleted the multicontrolled-zyz-tests branch August 22, 2024 22:52
multiphaseCFD pushed a commit that referenced this pull request Sep 8, 2024
### Before submitting

Please complete the following checklist when submitting a PR:

- [ ] All new features must include a unit test.
If you've fixed a bug or added code that should be tested, add a test to
the
      [`tests`](../tests) directory!

- [ ] All new functions and code must be clearly commented and
documented.
If you do make documentation changes, make sure that the docs build and
      render correctly by running `make docs`.

- [x] Ensure that the test suite passes, by running `make test`.

- [x] Add a new entry to the `.github/CHANGELOG.md` file, summarizing
the
      change, and including a link back to the PR.

- [x] Ensure that code is properly formatted by running `make format`. 

When all the above are checked, delete everything above the dashed
line and fill in the pull request template.


------------------------------------------------------------------------------------------------------------

**Context:**
PR PennyLaneAI/pennylane#6042 adds support for
multi-controlled zyz.
For Lightning, this means that custom decompositions to special zyz with
multiple controlled wires will be supported.
 
**Description of the Change:**
- Add tests for adjoint jacobian of the controlled gate with multiple
controlled_wires.

**Benefits:**

**Possible Drawbacks:**

**Related GitHub Issues:**
[sc-67711]

---------

Co-authored-by: ringo-but-quantum <github-ringo-but-quantum@xanadu.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants