21 #include "mps_expected2_all.cc"
25 using namespace tensor;
27 RTensor
expected(
const RMPS &a,
const std::vector<RTensor> &op1,
const std::vector<RTensor> &op2)
29 return all_correlations_fast(a, op1, op2, a);
32 RTensor
expected(
const RMPS &a,
const RTensor &op1,
const RTensor &op2)
35 std::vector<RTensor> vec1(L, op1);
36 std::vector<RTensor> vec2(L, op2);
37 return all_correlations_fast(a, vec1, vec2, a);
Real matrix product structure.
double expected(const RMPS &psi, const Hamiltonian &H, double t)
Expected value of a Hamiltonian over a matrix product state.