15 #ifndef QMCPLUSPLUS_COSTFUNCTION_H 16 #define QMCPLUSPLUS_COSTFUNCTION_H 42 #ifdef HAVE_LMY_ENGINE 43 void engine_checkConfigurations(cqmc::engine::LMYEngine<Return_t>* EngineObj,
45 const std::string& MinMethod)
override;
49 void resetPsi(
bool final_reset =
false)
override;
50 void GradCost(std::vector<Return_rt>& PGradient,
const std::vector<Return_rt>& PM, Return_rt FiniteDiff = 0)
override;
54 std::vector<std::unique_ptr<HamiltonianRef>>
H_KE_Node;
65 #ifdef HAVE_LMY_ENGINE 66 size_t total_samples();
67 Return_rt LMYEngineCost_detail(cqmc::engine::LMYEngine<Return_t>* EngineObj)
override;
A set of walkers that are to be advanced by Metropolis Monte Carlo.
void checkConfigurations(EngineHandle &handle) override
evaluate everything before optimization
helper functions for EinsplineSetBuilder
Manager clones for threaded applications.
void GradCost(std::vector< Return_rt > &PGradient, const std::vector< Return_rt > &PM, Return_rt FiniteDiff=0) override
~QMCCostFunction() override
Destructor.
Return_rt fillOverlapHamiltonianMatrices(Matrix< Return_rt > &Left, Matrix< Return_rt > &Right) override
Collection of Local Energy Operators.
EffectiveWeight correlatedSampling(bool needGrad=true) override
run correlated sampling return effective walkers ( w_i)^2/(Nw * w^2_i)
QMCTraits::QTFull::RealType EffectiveWeight
Timer accumulates time and call counts.
std::vector< std::unique_ptr< HamiltonianRef > > H_KE_Node
Wrapping information on parallelism.
std::vector< Matrix< Return_t > * > DerivRecords
Temp derivative properties and Hderivative properties of all the walkers.
void resetPsi(bool final_reset=false) override
reset the wavefunction
Implements wave-function optimization.
void getConfigurations(const std::string &aroot) override
Class to represent a many-body trial wave function.
Manager class to handle multiple threads.
QMCCostFunction(MCWalkerConfiguration &w, TrialWaveFunction &psi, QMCHamiltonian &h, Communicate *comm)
Constructor.
std::vector< Matrix< Return_rt > * > HDerivRecords
std::vector< Matrix< Return_rt > * > RecordsOnNode
Implements wave-function optimization.