-
Notifications
You must be signed in to change notification settings - Fork 40
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
Add exact tensor network C++ backend to LT #977
Conversation
Hello. You may have forgotten to update the changelog!
|
…set before quantum state creation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #977 +/- ##
==========================================
- Coverage 95.84% 92.01% -3.84%
==========================================
Files 230 113 -117
Lines 38823 17017 -21806
==========================================
- Hits 37211 15658 -21553
+ Misses 1612 1359 -253 ☔ View full report in Codecov by Sentry. |
### 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`. - [ ] 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:** Lightning.tensor device adding TN backend **Description of the Change:** * Unit tests for gate support * Unit tests for measurements **Benefits:** **Possible Drawbacks:** **Related GitHub Issues:** [sc-77835] --------- Co-authored-by: Shuli Shu <[email protected]>
pennylane_lightning/core/src/simulators/lightning_tensor/tncuda/TNCudaBase.hpp
Show resolved
Hide resolved
do we want to change this method string to pennylane-lightning/pennylane_lightning/core/src/simulators/lightning_tensor/tncuda/ExactTNCuda.hpp Line 54 in 3e2cd56
|
Thanks for the awesome addition of exact tensor network! @multiphaseCFD Just added some questions/comments, happy to approve once answered! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @multiphaseCFD!
Nice code. Just a couple of comments but feel free to ignore them if you need.
pennylane_lightning/core/src/simulators/lightning_tensor/tncuda/ExactTNCuda.hpp
Outdated
Show resolved
Hide resolved
pennylane_lightning/core/src/simulators/lightning_tensor/tncuda/TNCuda.hpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @multiphaseCFD for this, looks good to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Happy to approve ⚡️
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 thechange, 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:
[sc-72879]
Description of the Change:
Benefits:
Possible Drawbacks:
Related GitHub Issues: