You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the discussion in #69 I tried some ways to get a finite MPS from Infinite ones.
Directly slicing via psi_finite = psi[start:stop] creates problems with the dangling Link indices at the beginning and the end of the resulting MPS when using functions designed for finite MPS, i.e. correlation_matrix.
The solution I would implement would be creating a finite MPS by attaching two "Dummy" indices at the beginning and the end of the chain via delta tensors to close the dangling links, after having put the finite slice in a proper canonical form. One would only need to take the precaution not to do any operation on the dummy sites.
I tried it and it works when computing the correlation function, both using the function in ITensorCorrelators (ITensors correlation_matrix automatically applies operators to the first site of the MPS) and by directly applying the operators.
I plan on making a PR with an example file with a function toMPS and some tests but open this issue in case something else comes up.
The text was updated successfully, but these errors were encountered:
Following the discussion in #69 I tried some ways to get a finite MPS from Infinite ones.
Directly slicing via
psi_finite = psi[start:stop]
creates problems with the dangling Link indices at the beginning and the end of the resulting MPS when using functions designed for finite MPS, i.e.correlation_matrix
.The solution I would implement would be creating a finite MPS by attaching two "Dummy" indices at the beginning and the end of the chain via delta tensors to close the dangling links, after having put the finite slice in a proper canonical form. One would only need to take the precaution not to do any operation on the dummy sites.
I tried it and it works when computing the correlation function, both using the function in ITensorCorrelators (ITensors
correlation_matrix
automatically applies operators to the first site of the MPS) and by directly applying the operators.I plan on making a PR with an example file with a function
toMPS
and some tests but open this issue in case something else comes up.The text was updated successfully, but these errors were encountered: