Binary to calculate the expectation value of an operator and state. More...
#include "inc/tensor/tensor_gen.h"
#include "inc/mps/parse_operator.h"
#include "inc/t3n/parse_operator.h"
#include "inc/mps/state.h"
#include "inc/mps/lbo_state.h"
#include "inc/t3n/state.h"
#include "inc/util/bpo_helper.h"
#include "inc/util/string_replace.h"
Namespaces | |
namespace | syten |
Syten namespace. | |
Functions | |
template<typename Lattice , typename State > | |
std::string | syten::calc_expval (Lattice const &lat, State &&a, State &&b, SDef const &norm, std::string const &op_expr, int const variance, bool const column, bool const realOnly, bool const imagOnly, Index const prec) |
Calculates an expectation value and possibly a variance for given states, lattices and operators. More... | |
template<typename State , typename Lattice > | |
int | syten::do_expval (std::string const &aFile, std::string const &bFile, bool bpo_cache, std::string const &oprDesc, bool variance, bool column, bool realOnly, bool imagOnly, bool no_normalise, Index precision, std::string const &templateFile, std::string const &templateStart, std::string const &templateEnd, std::string const &abbrev) |
Templated wrapper for expectation value calculation including the parsing, set-up etc. More... | |
std::string | syten::print_result (SDef const result, bool const column, bool const realOnly, bool const imagOnly, Index const prec, std::string const &prefix="") |
Return a string representation of a numerical result. More... | |
Binary to calculate the expectation value of an operator and state.