-
Notifications
You must be signed in to change notification settings - Fork 39
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 var support to LTensor #804
Conversation
Hello. You may have forgotten to update the changelog!
|
### 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`. - [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:** Add GPU device compute capability check. L-Tensor has device compute capability check like L-GPU now. [SC-69118] **Description of the Change:** **Benefits:** Error will be raised when running `lightning.tensor` on a unsupported GPU. **Possible Drawbacks:** **Related GitHub Issues:** #799 --------- Co-authored-by: ringo-but-quantum <github-ringo-but-quantum@xanadu.ai>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #804 +/- ##
==========================================
+ Coverage 98.50% 98.84% +0.34%
==========================================
Files 111 116 +5
Lines 17900 18259 +359
==========================================
+ Hits 17632 18049 +417
+ Misses 268 210 -58 ☔ View full report in Codecov by Sentry. |
...htning/core/src/simulators/lightning_tensor/tncuda/observables/ObservablesTNCudaOperator.hpp
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.
Nice work @multiphaseCFD! I have a few suggestions in my first round. I'll check tests and coverage tomorrow 🚀
...htning/core/src/simulators/lightning_tensor/tncuda/observables/ObservablesTNCudaOperator.hpp
Outdated
Show resolved
Hide resolved
...htning/core/src/simulators/lightning_tensor/tncuda/observables/ObservablesTNCudaOperator.hpp
Outdated
Show resolved
Hide resolved
...htning/core/src/simulators/lightning_tensor/tncuda/observables/ObservablesTNCudaOperator.hpp
Outdated
Show resolved
Hide resolved
...htning/core/src/simulators/lightning_tensor/tncuda/observables/ObservablesTNCudaOperator.hpp
Outdated
Show resolved
Hide resolved
...htning/core/src/simulators/lightning_tensor/tncuda/observables/ObservablesTNCudaOperator.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.
Nice progress @multiphaseCFD , and some more comments.
...htning/core/src/simulators/lightning_tensor/tncuda/measurements/tests/Test_MPSTNCuda_Var.cpp
Show resolved
Hide resolved
...htning/core/src/simulators/lightning_tensor/tncuda/measurements/tests/Test_MPSTNCuda_Var.cpp
Show resolved
Hide resolved
...htning/core/src/simulators/lightning_tensor/tncuda/observables/ObservablesTNCudaOperator.hpp
Outdated
Show resolved
Hide resolved
...htning/core/src/simulators/lightning_tensor/tncuda/measurements/tests/Test_MPSTNCuda_Var.cpp
Outdated
Show resolved
Hide resolved
...htning/core/src/simulators/lightning_tensor/tncuda/observables/ObservablesTNCudaOperator.hpp
Outdated
Show resolved
Hide resolved
...htning/core/src/simulators/lightning_tensor/tncuda/observables/ObservablesTNCudaOperator.hpp
Outdated
Show resolved
Hide resolved
...htning/core/src/simulators/lightning_tensor/tncuda/observables/ObservablesTNCudaOperator.hpp
Outdated
Show resolved
Hide resolved
...htning/core/src/simulators/lightning_tensor/tncuda/observables/ObservablesTNCudaOperator.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.
Nice work @multiphaseCFD!!! Good addition to Tensor backend
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.
Neat refactor of the initialization logic. I think this is ready to go now. Thanks @multiphaseCFD .
...htning/core/src/simulators/lightning_tensor/tncuda/observables/ObservablesTNCudaOperator.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! 💯
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! - [ ] 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:** [SC-65783] **Description of the Change:** **Benefits:** **Possible Drawbacks:** **Related GitHub Issues:** --------- Co-authored-by: ringo-but-quantum <github-ringo-but-quantum@xanadu.ai>
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-65783]
Description of the Change:
Benefits:
Possible Drawbacks:
Related GitHub Issues: