41 (*W.
begin())->Properties(WP::LOCALENERGY) = 1.1;
56 std::unique_ptr<LocalEnergyEstimator> le_est2{le_est.
clone()};
58 REQUIRE(le_est2.get() != &le_est);
66 (*W.
begin())->Properties(WP::LOCALENERGY) = 1.1;
67 (*W.
begin())->Properties(WP::LOCALPOTENTIAL) = 1.2;
91 (*W.
begin())->Properties(WP::LOCALENERGY) = 1.1;
92 (*W.
begin())->Properties(WP::LOCALPOTENTIAL) = 1.2;
94 std::vector<ObservableHelper> h5desc;
96 std::filesystem::path filename(
"tmp_obs.h5");
101 REQUIRE(std::filesystem::exists(filename));
103 REQUIRE(std::filesystem::remove(filename));
void setName(const std::string &aname)
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
Estimator for local energy only.
void accumulate(const MCWalkerConfiguration &W, WalkerIterator first, WalkerIterator last, RealType wgt) override
a virtual function to accumulate observables or collectables
std::string getName() const override
TEST_CASE("complex_helper", "[type_traits]")
void close()
close all the open groups and file
Collection of Local Energy Operators.
Class to accumulate the local energy and components.
std::vector< accumulator_type > scalars
scalars to be measured
void accumulate(const Walker_t &awalker, RealType wgt)
accumulation per walker
LocalEnergyEstimator * clone() override
clone the object
WalkerProperties::Indexes WP
REQUIRE(std::filesystem::exists(filename))
std::string getName() const override
void create(const std::vector< int > &agroup)
create grouped particles
bool create(const std::filesystem::path &fname, unsigned flags=H5F_ACC_TRUNC)
create a file
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
CHECK(log_values[0]==ComplexApprox(std::complex< double >{ 5.603777579195571, -6.1586603331188225 }))
void createWalkers(int numWalkers)
create numWalkers Walkers
iterator end()
return the last iterator, [begin(), end())
Declaration of a MCWalkerConfiguration.
Declaration of QMCHamiltonian.
iterator begin()
return the first iterator