term_correlation_function_left for MPSEnvironment
Posted: 27 Jun 2022, 03:28
Hi,
I want to calculate the expectation value \(\langle \psi| S_i^z S_{i+1}^z |\phi \rangle\).
Because the two MPS are different, I create a tenpy.networks.mps.MPSEnvironment. What is the best way to compute the above correlation function? For tenpy.networks.mps.MPS there is tenpy.networks.mps.MPS.term_correlation_function_left() which I can use to define a left and right operator, but it seems that MPSEnvironment does not have this functionality. In that case, should I loop over \(i\), apply the local operators and then calculate the overlap via tenpy.networks.mps.MPSEnvironment.full_contraction()?
Thank you
I want to calculate the expectation value \(\langle \psi| S_i^z S_{i+1}^z |\phi \rangle\).
Because the two MPS are different, I create a tenpy.networks.mps.MPSEnvironment. What is the best way to compute the above correlation function? For tenpy.networks.mps.MPS there is tenpy.networks.mps.MPS.term_correlation_function_left() which I can use to define a left and right operator, but it seems that MPSEnvironment does not have this functionality. In that case, should I loop over \(i\), apply the local operators and then calculate the overlap via tenpy.networks.mps.MPSEnvironment.full_contraction()?
Thank you