-
Notifications
You must be signed in to change notification settings - Fork 31
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
environments(::WindowMPS,H)
assumes same H for InfiniteMPS
and FiniteMPS
#88
Comments
I guess that given that the hamiltonian you provide has period 20, it does make sense that it has no way of knowing that you mean for the right part of the window to just repeat a single site, rather than the entire operator. Probably the cleanest way is to just have a WindowMPO as well? |
In the TimeDep branch, the environments function for an |
This should be resolved with commit 70e8420. There are now three different ways to construct an environment for a WindowMPS.
|
I think that I might prefer to only define the last two constructors; the first one is achieved very easily by replacing I would also consider having some way of differentiating between fixed or variable left/right parts, but maybe this is actually better included in the type information of struct WindowMPS{...,IsVariable} end |
When calling
environments
on aWindowMPS
without specifying thelenvs
andrenvs
kwargs it will calculate these with the supplied Hamiltonian. For some cases this will result in anAssertionError: len == length(ham)
down the line because at some point an explicit check forMPOHamInfEnv
that the length of H and the InfiniteMPS need to be equal, was introduced. For example these cases will result in an error.A potential solution would be to make the specification of lenv and renv mandatory or demand separate Hamiltonians for the different parts of the window.
The text was updated successfully, but these errors were encountered: