ITensor / ITensorNetworks.jl

A package with general tools for working with higher-dimensional tensor networks based on ITensor.
MIT License
63 stars 13 forks source link

Efficient implementation of `expect` for `AbstractTTN` #129

Closed b-kloss closed 9 months ago

b-kloss commented 10 months ago

This PR addresses #128 and adds an implementation of expect that should allow evaluation of local observables at all sites in a TTN at linear cost in the number of vertices in the TTN.

Basic tests have been added:

Open issues:

b-kloss commented 10 months ago

I'll fix keyword argument signature that makes the solver_tests fail.

b-kloss commented 10 months ago

If tests pass this is ready for review.

mtfishman commented 9 months ago

Looks good, thanks!

codecov-commenter commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (56fcb93) 72.90% compared to head (36386b9) 72.73%. Report is 1 commits behind head on main.

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

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #129 +/- ## ========================================== - Coverage 72.90% 72.73% -0.17% ========================================== Files 71 68 -3 Lines 4097 3947 -150 ========================================== - Hits 2987 2871 -116 + Misses 1110 1076 -34 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.