-
Notifications
You must be signed in to change notification settings - Fork 16
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 Tree Tensor Networks #166
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
avoid unnecessary environment construction add ml-mctdh type tree
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #166 +/- ##
==========================================
+ Coverage 84.86% 85.87% +1.01%
==========================================
Files 105 117 +12
Lines 10232 12342 +2110
==========================================
+ Hits 8683 10599 +1916
- Misses 1549 1743 +194 ☔ View full report in Codecov by Sentry. |
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.
Related to #149
Status of the code
Functionalities
TreeNodeBasis
andBasisTree
. In each site/node, there could be no basis set (byBasisDummy
) or more than one basis sets.Mpdm
)A guide to the code
The functionalities are implemented in the
tn
module. The original MPS/MPO implementation/interface largely remain unchanged.node.py
andtreebase.py
provide basic utilities to build a tree where each node is associated with one or more physical dof.tree.py
provides definitions forTTNS
andTTNO
. The environment tensors are also stored in a tree format, inTTNEnviron
hop_expr.py
contains functions to buildopt_einsum
expression as the effective Hamiltonian operator. The implementation of the wholetn
module relies heavily onopt_einsum
.gs.py
implements 2-site optimization, which relies onhop_expr.py
time_evolution.py
contains time evolution algorithms, which also relies onhop_expr.py
. In themps.py
implementation the time evolution takes a lot of lines, so I decided to move them to a new file in TTNS implementation.symbolic_mpo.py
for auto construction of MPOutils_eph.py
now only has a function to construct the maximum entangled state. The current implementation of TTNS/TTNO is completely model agnostic and I hope it will stay so. Anything related to a specific model will be put in a separate file as another abstraction layer between actual applications.