-
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 pybind11
and Python
layers to lightning.tensor
#748
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
maliasadi
reviewed
Jun 12, 2024
vincentmr
approved these changes
Jun 12, 2024
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 . A few more suggestions which can be address in follow-up PRs, so I'm approving already.
pennylane_lightning/core/src/simulators/lightning_tensor/tncuda/MPSTNCuda.hpp
Outdated
Show resolved
Hide resolved
...ing/core/src/simulators/lightning_tensor/tncuda/measurements/tests/Test_MPSTNCuda_Expval.cpp
Outdated
Show resolved
Hide resolved
mudit2812
reviewed
Jun 12, 2024
maliasadi
approved these changes
Jun 12, 2024
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.
Great work 🚀
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
Add both
python
andpybind
layer to thelightning.tensor
-mps
device.MultiRZ
gate is not supported.lightning
state vector backends except forqml.Projector
andSparseHamiltionian
qml.QubitStateVector
andqml.StatePrep
are not supported.qml.state()
is not supported and thestate()
returns aLightningStateTensor
object represents the whole compute graphqml.BasisState
only accepts array representation of a basis state. Aint
value can only supports up to32
qubit system.qml.expval
is the only measurementlightning.tensor
support.gradient support
withparameter-shift
. And a100
qubits SEL circuit was tested onA100 80 GB GPU
maxBondDim
is default as128
.pip
editable installation withPL_BACKEND="lightning_tensor" pip install -e .
, given thatcutensornet-cu12
is installed anvenv
env. Detailed instructions are on PR#756.lightning.tensor
is also tested against all the tests intests/
if the tested feature is supported inlightning.tensor
. The skipped tests are tasks for the next step.[SC-62440] [SC-62439] [SC-60329] [SC-60325]
Description of the Change:
Benefits:
Possible Drawbacks:
Related GitHub Issues: