Expectation value of an operator
Posted: 21 Aug 2023, 17:57
Hi,
I am a relatively new entrant into TeNPy. I am interested in calculating an expectation value of an operator with a single conservation law (such as total magnetization being conserved) ,
\(<\psi|O(t)|\psi>\) where \(|\psi>\) is a simple product state and my operator \(O(t)\) is obtained after a Heisenberg evolution of some initial operator, say \(O(0)\).
I am able to get \(O(t)\) using my TEBD code and I also have a code written up for the simple MPS \(|\psi>\). I now just need to compute the expectation value \(<\psi|O(t)|\psi>\) ( I would like to keep the time evolution on the operator only)..
Is there an inbuilt function in Tenpy that takes inputs as (\(O,|\psi>\)) and returns for me the expectation value ?
Thank you very much !
I am a relatively new entrant into TeNPy. I am interested in calculating an expectation value of an operator with a single conservation law (such as total magnetization being conserved) ,
\(<\psi|O(t)|\psi>\) where \(|\psi>\) is a simple product state and my operator \(O(t)\) is obtained after a Heisenberg evolution of some initial operator, say \(O(0)\).
I am able to get \(O(t)\) using my TEBD code and I also have a code written up for the simple MPS \(|\psi>\). I now just need to compute the expectation value \(<\psi|O(t)|\psi>\) ( I would like to keep the time evolution on the operator only)..
Is there an inbuilt function in Tenpy that takes inputs as (\(O,|\psi>\)) and returns for me the expectation value ?
Thank you very much !