Skip to content
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

Use QR for MPO construction and allow calculating entropies with TTN #170

Merged
merged 4 commits into from
Jun 26, 2024

Conversation

liwt31
Copy link
Collaborator

@liwt31 liwt31 commented Jun 26, 2024

  • By default, use QR instead of Hopcroft-Carp for MPO construction, which in some cases will produce a more compact MPO and the time cost is comparable.
    • Currently using dense QR. Opt to sparse QR could potentially improve the performance
    • The Hopcroft-Carp algorithm is still accessible by setting the algo argument.
    • The local MPO by QR is numerically different from the Hopcroft-Carp algorithm and is generally more dense.
  • Allow TTNS to calculation 1/2-site RDM/entropy, 1/2-dof RDM/entropy and mutual entropy.
  • Also improved README a bit.

Copy link

codecov bot commented Jun 26, 2024

Codecov Report

Attention: Patch coverage is 95.84055% with 24 lines in your changes missing coverage. Please review.

Project coverage is 86.21%. Comparing base (cd1f4ed) to head (083abf2).

Files Patch % Lines
renormalizer/tn/tree.py 93.80% 23 Missing ⚠️
renormalizer/mps/symbolic_mpo.py 98.52% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #170      +/-   ##
==========================================
+ Coverage   85.98%   86.21%   +0.22%     
==========================================
  Files         118      118              
  Lines       12494    12779     +285     
==========================================
+ Hits        10743    11017     +274     
- Misses       1751     1762      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@liwt31 liwt31 merged commit 68eb5bc into master Jun 26, 2024
5 checks passed
@liwt31 liwt31 deleted the qr_mpo branch June 26, 2024 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant