-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Context:** Adding the backend **Exact Tensor Network** from `lightning.tensor` to the Python layer **Description of the Change:** * Add pybind layer for the `ExaTNCuda` class * Update the python layer unit tests. * Python layer refactoring to allow runtime selection of MPS and ExaTN * Python layer unit tests update (gates, analytical measurement) **Benefits:** 1. Refactor MPSTNCuda class to TNCuda class * Both MPS and Exact TensorNetwork backends will be handled by the TNCuda class * User can select either MPS or Exact TensorNetwork at runtime by passing str (`mps` or `exatn`) to the constructor of theTNCuda class. 2. 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] --------- Co-authored-by: Shuli Shu <[email protected]> Co-authored-by: ringo-but-quantum <[email protected]> Co-authored-by: Shuli Shu <[email protected]> Co-authored-by: Ali Asadi <[email protected]>
- Loading branch information
1 parent
e6827b2
commit 182b9cd
Showing
20 changed files
with
1,635 additions
and
509 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,4 @@ | |
Version number (major.minor.patch[-label]) | ||
""" | ||
|
||
__version__ = "0.40.0-dev33" | ||
__version__ = "0.40.0-dev34" |
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
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
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
Oops, something went wrong.