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

Fix the issue with initializing LK with zero-qubit and invalid number of control_wires in ctrl_decomp_zyz #757

Merged
merged 6 commits into from
Jun 7, 2024

Conversation

maliasadi
Copy link
Member

@maliasadi maliasadi commented Jun 7, 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:

Description of the Change:

Benefits:

Possible Drawbacks:

Related GitHub Issues:
Fixes #751

Copy link
Contributor

@vincentmr vincentmr left a comment

Choose a reason for hiding this comment

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

Looks good to me. Don't forget to update the changelog.

tests/test_adjoint_jacobian.py Show resolved Hide resolved
@maliasadi maliasadi force-pushed the maa-lk-decom-fixes branch from 82318f5 to d4944fd Compare June 7, 2024 17:50
@maliasadi maliasadi marked this pull request as ready for review June 7, 2024 17:57
Copy link

codecov bot commented Jun 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.74%. Comparing base (1783b8b) to head (4338732).
Report is 83 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #757      +/-   ##
==========================================
+ Coverage   92.92%   97.74%   +4.82%     
==========================================
  Files         122       66      -56     
  Lines       17846     9042    -8804     
==========================================
- Hits        16583     8838    -7745     
+ Misses       1263      204    -1059     

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

Copy link
Contributor

@vincentmr vincentmr left a comment

Choose a reason for hiding this comment

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

LGTM, happy to approve @maliasadi . Go ahead and merge when the CI goes green.

tests/test_adjoint_jacobian.py Show resolved Hide resolved
@maliasadi maliasadi requested a review from multiphaseCFD June 7, 2024 18:18
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.

Looks good to me ! Thanks @maliasadi !

@maliasadi maliasadi merged commit 9b933a2 into master Jun 7, 2024
83 checks passed
@maliasadi maliasadi deleted the maa-lk-decom-fixes branch June 7, 2024 19:00
multiphaseCFD pushed a commit that referenced this pull request Jun 7, 2024
… of control_wires in ctrl_decomp_zyz (#757)

Please complete the following checklist when submitting a PR:

- [x] 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!

- [x] 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`.

- [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:**
- [X] Fix the issue with initializing `lightning.kokkos` with zero-qubit
and
- [X] Invalid number of control_wires in ctrl_decomp_zyz (PR
PennyLaneAI/pennylane#5735)
- [x] Add test for `device('lightning.kokkos', wires=0)`

**Description of the Change:**

**Benefits:**

**Possible Drawbacks:**

**Related GitHub Issues:**
Fixes #751

---------

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.

Segmentation fault with lightning kokkos and 0 qubits.
4 participants