-
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
Optimize lightning.tensor
by adding direct MPS sites data set
#983
Conversation
Hello. You may have forgotten to update the changelog!
|
…tning into statePrep_MPS
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #983 +/- ##
==========================================
- Coverage 97.93% 96.06% -1.87%
==========================================
Files 233 233
Lines 39905 39070 -835
==========================================
- Hits 39079 37532 -1547
- Misses 826 1538 +712 ☔ View full report in Codecov by Sentry. |
…tning into statePrep_MPS
…tning into statePrep_MPS
pennylane_lightning/core/src/simulators/lightning_tensor/utils/tncuda_utils/tncuda_helpers.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! 🎄
pennylane_lightning/core/src/simulators/lightning_tensor/tncuda/TNCuda.hpp
Outdated
Show resolved
Hide resolved
pennylane_lightning/core/src/simulators/lightning_tensor/tncuda/TNCuda.hpp
Show resolved
Hide resolved
...ane_lightning/core/src/simulators/lightning_tensor/tncuda/bindings/LTensorTNCudaBindings.hpp
Show resolved
Hide resolved
...ane_lightning/core/src/simulators/lightning_tensor/tncuda/bindings/LTensorTNCudaBindings.hpp
Outdated
Show resolved
Hide resolved
...ane_lightning/core/src/simulators/lightning_tensor/tncuda/bindings/LTensorTNCudaBindings.hpp
Show resolved
Hide resolved
pennylane_lightning/core/src/simulators/lightning_tensor/utils/tncuda_utils/tncuda_helpers.hpp
Outdated
Show resolved
Hide resolved
pennylane_lightning/core/src/simulators/lightning_tensor/utils/tncuda_utils/tncuda_helpers.hpp
Outdated
Show resolved
Hide resolved
pennylane_lightning/core/src/simulators/lightning_tensor/utils/tncuda_utils/tncuda_helpers.hpp
Show resolved
Hide resolved
pennylane_lightning/core/src/simulators/lightning_tensor/tncuda/tests/Tests_MPSTNCuda.cpp
Outdated
Show resolved
Hide resolved
...ane_lightning/core/src/simulators/lightning_tensor/tncuda/bindings/LTensorTNCudaBindings.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.
Just have some small comments!
pennylane_lightning/core/src/simulators/lightning_tensor/tncuda/TNCuda.hpp
Outdated
Show resolved
Hide resolved
pennylane_lightning/core/src/simulators/lightning_tensor/tncuda/TNCuda.hpp
Outdated
Show resolved
Hide resolved
pennylane_lightning/core/src/simulators/lightning_tensor/utils/tncuda_utils/tncuda_helpers.hpp
Outdated
Show resolved
Hide resolved
pennylane_lightning/core/src/simulators/lightning_tensor/utils/tncuda_utils/tncuda_helpers.hpp
Outdated
Show resolved
Hide resolved
Added some small comments, happy to approve straight away once they're dealt with! @LuisAlfredoNu |
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.
LTGM, thanks @LuisAlfredoNu
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.
Happy to approve 🥳
Context:
Optimize
lightning.tensor
by adding direct MPS sites data setDescription of the Change:
Adding the
MPSPrep
gate to be able to pass an MPS directly to the Tensor Network.The
MPSPrep
gate frontend was developed on this PRBenefits:
Avoid the decomposition from state vector to MPS sites which are expensive and inefficient
Possible Drawbacks:
Related GitHub Issues:
[sc-74709]