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

Move ITensorTDVP.jl MPS solver code into ITensorNetworks.jl #43

Merged
merged 4 commits into from
Jan 9, 2023

Conversation

mtfishman
Copy link
Member

@mtfishman mtfishman commented Jan 9, 2023

This moves the code in the package ITensorTDVP.jl into this package, including tests and examples.

This is in preparation for @leburgel's PR ITensor/ITensorTDVP.jl#43, which extends those MPS solver functions to general tree tensor networks which are defined in this package. We agreed it makes the most sense to just move that PR here to keep ITensorTDVP.jl dependent on only ITensors.MPS/ITensors.MPO.

It also makes KrylovKit.eigsolve an alias for ITensorNetworks.dmrg (previously ITensorTDVP.dmrg).

@emstoudenmire we had discussed merging ITensor/ITensorTDVP.jl#43 into ITensorTDVP.jl but I spoke to Lander and we both agreed it makes more sense this way. I think also we can be more aggressive about deprecating old types in this package, like ITensors.AbstractObserver, ITensors.Sweeps, ITensors.AbstractMPS and subtypes, etc.

@emstoudenmire
Copy link
Contributor

Sounds good – if you and Lander find this to be the easiest then I'm all for it. I just didn't want Lander to have to re-create his PR here if that ended up being more work; but if it's less work then it is the way to go.

@emstoudenmire
Copy link
Contributor

Also fine to deprecate those older types or leave them out completely. We can always re-wrap them into the existing system later if we want to. Or else provide an "upgrade path" from using functions taking ITensors.MPS to ITensorNetworks.MPS.

@codecov-commenter
Copy link

codecov-commenter commented Jan 9, 2023

Codecov Report

Merging #43 (422ca7b) into main (7c98d32) will increase coverage by 0.78%.
The diff coverage is 86.54%.

@@            Coverage Diff             @@
##             main      #43      +/-   ##
==========================================
+ Coverage   80.17%   80.96%   +0.78%     
==========================================
  Files          29       45      +16     
  Lines        1226     1828     +602     
==========================================
+ Hits          983     1480     +497     
- Misses        243      348     +105     
Impacted Files Coverage Δ
src/ITensorNetworks.jl 77.77% <ø> (ø)
src/treetensornetworks/solvers/tdvp_sweeps.jl 0.00% <0.00%> (ø)
src/treetensornetworks/treetensornetwork.jl 88.63% <ø> (ø)
src/treetensornetworks/solvers/tdvporder.jl 33.33% <33.33%> (ø)
src/treetensornetworks/solvers/projmps2.jl 78.33% <78.33%> (ø)
src/treetensornetworks/solvers/tdvp_generic.jl 80.00% <80.00%> (ø)
src/treetensornetworks/solvers/solver_utils.jl 85.00% <85.00%> (ø)
src/treetensornetworks/solvers/tdvp_step.jl 89.59% <89.59%> (ø)
src/treetensornetworks/solvers/applyexp.jl 90.41% <90.41%> (ø)
src/treetensornetworks/solvers/projmpo_mps2.jl 92.59% <92.59%> (ø)
... and 9 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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.

None yet

3 participants