16 #ifndef QMCPLUSPLUS_LOCALENERGYESTIMATOR_H 17 #define QMCPLUSPLUS_LOCALENERGYESTIMATOR_H 68 scalars[0](ePtr[WP::LOCALENERGY], wwght);
69 scalars[1](ePtr[WP::LOCALENERGY] * ePtr[WP::LOCALENERGY], wwght);
70 scalars[2](ePtr[WP::LOCALPOTENTIAL], wwght);
72 scalars[target](ePtr[source], wwght);
82 for (; first != last; ++first)
86 std::string
getName()
const override {
return "LocalEnergyEstimator"; }
This file contains the input classes for the supported "main estimator" classes derived from ScalarEs...
A set of walkers that are to be advanced by Metropolis Monte Carlo.
void registerObservables(std::vector< ObservableHelper > &h5dec, hdf_archive &file) override
add descriptors of observables to utilize hdf5
helper functions for EinsplineSetBuilder
std::string getName() const override
Collection of Local Energy Operators.
Class to accumulate the local energy and components.
const std::string & get_type() const
const LocalEnergyInput input_
QMCTraits::FullPrecRealType RealType
std::vector< accumulator_type > scalars
scalars to be measured
void accumulate(const MCWalkerConfiguration &W, WalkerIterator first, WalkerIterator last, RealType wgt) override
legacy accumulation function
Declaration of ObservableHelper and other helper class for observables.
bool isMainEstimator() const override
LocalEnergyEstimator is the main estimator for VMC and DMC.
void accumulate(const Walker_t &awalker, RealType wgt)
accumulation per walker
LocalEnergyEstimator * clone() override
clone the object
RecordNamedProperty< RealType > RecordListType
const std::string & getSubTypeStr() const override
String representation of the derived type of the ScalarEstimator.
std::vector< std::reference_wrapper< T > > RefVector
const QMCHamiltonian & refH
void add2Record(RecordListType &record) override
add the local energy, variance and all the Hamiltonian components to the scalar record container ...
Indexes
an enum denoting index of physical properties
FullPrecRealType Weight
Weight of the walker.
MCWalkerConfiguration::const_iterator WalkerIterator
void accumulate(const RefVector< MCPWalker > &walkers) override
Accumulate the hamiltonian operator values for system This is the batched version.
Abstract class for an estimator of a scalar operator.
FullPrecRealType * getPropertyBase()
A container class to represent a walker.
LocalEnergyEstimator(const QMCHamiltonian &h, bool use_hdf5)
constructor
Declaration of QMCHamiltonian.