SyTen
syten-expectation.cpp File Reference

Binary to calculate the expectation value of an operator and state. More...

+ Include dependency graph for syten-expectation.cpp:

Namespaces

 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...
 

Detailed Description

Binary to calculate the expectation value of an operator and state.