SyTen

◆ expectation() [2/2]

SDef syten::IPEPS::expectation ( State const &  psi,
SumOp const &  op,
Truncation const &  trunc = Truncation() 
)

For each two-site operator in op, calculates the expectation value and returns their sum.

No CTM steps are done, so the full CTM and double layer has to be available in psi.

References std::accumulate(), std::vector< T >::back(), std::vector< T >::begin(), std::vector< T >::end(), syten::IPEPS::Horz2CTM::expectation_value(), syten::IPEPS::Vert2CTM::expectation_value(), grow_bottom_rung(), grow_left_rung(), grow_right_rung(), grow_top_rung(), syten::logGd(), std::move(), std::vector< T >::push_back(), syten::restrict(), and std::vector< T >::size().

+ Here is the call graph for this function: