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

[ITensors] [BUG] svdMPO generates unnecessarily large intermediate weight matrices #1231

Merged
merged 2 commits into from
Nov 3, 2023

Conversation

b-kloss
Copy link
Contributor

@b-kloss b-kloss commented Nov 2, 2023

Description

Replaces Vector filled with references to the same Dict with a Vector of references to independent Dicts. This reduces the dimensions of intermediate weight matrices, on which compression via SVD is performed.

How Has This Been Tested?

Passes tests in test/ITensorLegacyMPS/base. (One broken, not sure why?)

Checklist:

  • My code follows the style guidelines of this project. Please run using JuliaFormatter; format(".") in the base directory of the repository (~/.julia/dev/ITensors) to format your code according to our style guidelines.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have added tests that verify the behavior of the changes I made.
  • I have made corresponding changes to the documentation.
  • [] My changes generate no new warnings.
  • Any dependent changes have been merged and published in downstream modules.

@codecov-commenter
Copy link

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (fe84b9e) 85.31% compared to head (97b889d) 53.84%.
Report is 7 commits behind head on main.

❗ Current head 97b889d differs from pull request most recent head ecbbcae. Consider uploading reports for the commit ecbbcae to get more accurate results

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1231       +/-   ##
===========================================
- Coverage   85.31%   53.84%   -31.47%     
===========================================
  Files          89       87        -2     
  Lines        8445     7898      -547     
===========================================
- Hits         7205     4253     -2952     
- Misses       1240     3645     +2405     
Files Coverage Δ
src/physics/autompo/opsum_to_mpo.jl 0.00% <0.00%> (-100.00%) ⬇️

... and 65 files with indirect coverage changes

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

@mtfishman
Copy link
Member

[test ITensors mps]

Copy link
Contributor

github-actions bot commented Nov 3, 2023

Run ITensors mps tests from comment trigger: succeeded ✅
https://github.com/ITensor/ITensors.jl/actions/runs/6739622318

1 similar comment
Copy link
Contributor

github-actions bot commented Nov 3, 2023

Run ITensors mps tests from comment trigger: succeeded ✅
https://github.com/ITensor/ITensors.jl/actions/runs/6739622318

@mtfishman
Copy link
Member

Thanks! Tests marked as broken are just things that we now are broken and would like to fix in the future, you can ignore that.

@mtfishman mtfishman merged commit 063ccbe into ITensor:main Nov 3, 2023
7 checks passed
@emstoudenmire
Copy link
Collaborator

Thanks Benedikt!

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.

4 participants