-
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 exactn cpp binding #1014
Add exactn cpp binding #1014
Conversation
…set before quantum state creation
### 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]>
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 @LuisAlfredoNu for updating the design and naming conventions! Here are my suggestions for the implementation and docstrings. I'd be happy to review the PR again after addressing the unresolved comments
...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
Outdated
Show resolved
Hide resolved
...ane_lightning/core/src/simulators/lightning_tensor/tncuda/bindings/LTensorTNCudaBindings.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 for the great work @LuisAlfredoNu, I've just added some minor comments!
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 @LuisAlfredoNu!
I have nothing more to add, except for a few questions.
I will update UI stuff later in a following PR defined in [sc-80075]. CC @maliasadi |
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 @LuisAlfredoNu for the nice work! Happy to approve.
Context:
Adding the backend Exact Tensor Network from
lightning.tensor
to the Python layerDescription of the Change:
ExaTNCuda
classBenefits:
Refactor MPSTNCuda class to TNCuda class
mps
orexatn
) to the constructor of theTNCuda class.Measurement class
expval()
support can be get without changing current code base for the MPS backend.Possible Drawbacks:
qml.StatePrep()
won't be supported for 'exatn'Related GitHub Issues:
[sc-77837][sc-77840]