13 #ifndef QMCPLUSPLUS_EXAMPLEHECOMPONENT_H 14 #define QMCPLUSPLUS_EXAMPLEHECOMPONENT_H 38 std::string
getClassName()
const override {
return "ExampleHeComponent"; }
73 bool put(xmlNodePtr cur);
std::vector< std::pair< int, int > > PtclGrpIndexes
LogValue evaluateLog(const ParticleSet &P, ParticleSet::ParticleGradient &G, ParticleSet::ParticleLaplacian &L) override
evaluate the value of the WaveFunctionComponent from scratch
void checkInVariablesExclusive(OptVariablesType &active) override
check in variational parameters to the global list of parameters used by the optimizer.
WaveFunctionComponent::PsiValue PsiValue
helper functions for EinsplineSetBuilder
QTBase::RealType RealType
void registerData(ParticleSet &P, WFBufferType &buf) override
For particle-by-particle move.
const int my_table_ee_idx_
void restore(int iat) override
If a move for iat-th particle is rejected, restore to the content.
std::string getClassName() const override
return class name
For distance tables of virtual particle (VP) sets constructed based on this table, whether full table is needed on host The corresponding DT of VP need to set MW_EVALUATE_RESULT_NO_TRANSFER_TO_HOST accordingly.
Walker_t::WFBuffer_t WFBufferType
const ParticleSet & ions_
LatticeGaussianProduct::GradType GradType
GradType evalGrad(ParticleSet &P, int iat) override
return the current gradient for the iat-th particle
void evaluateDerivatives(ParticleSet &P, const OptVariablesType &optvars, Vector< ValueType > &dlogpsi, Vector< ValueType > &dhpsioverpsi) override
Compute the derivatives of both the log of the wavefunction and kinetic energy with respect to optimi...
Attaches a unit to a Vector for IO.
const int my_table_ei_idx_
An abstract class for a component of a many-body trial wave function.
Specialized paritlce class for atomistic simulations.
bool isOptimizable() const override
if true, this contains optimizable components
OptVariablesType my_vars_
PsiValue ratio(ParticleSet &P, int iat) override
evaluate the ratio of the new to old WaveFunctionComponent value
void resetParametersExclusive(const OptVariablesType &active) override
reset the parameters during optimizations.
class to handle a set of variables that can be modified during optimizations
optimize::VariableSet OptVariablesType
ExampleHeComponent(const ParticleSet &ions, ParticleSet &els)
std::unique_ptr< WaveFunctionComponent > makeClone(ParticleSet &tpq) const override
make clone
void extractOptimizableObjectRefs(UniqueOptObjRefs &opt_obj_refs) override
extract underlying OptimizableObject references
PsiValue ratioGrad(ParticleSet &P, int iat, GradType &grad_iat) override
evaluate the ratio of the new to old WaveFunctionComponent value and the new gradient ...
void copyFromBuffer(ParticleSet &P, WFBufferType &buf) override
For particle-by-particle move.
void insertFrom(const VariableSet &input)
insert a VariableSet to the list
Declaration of WaveFunctionComponent.
std::complex< double > LogValue
void checkOutVariables(const OptVariablesType &active) override
check out variational optimizable variables
int getIndex(const std::string &vname) const
return the Index vaule for the named parameter
void push_back(OptimizableObject &obj)
whether temporary data set on the host is updated or not when a move is proposed. ...
void acceptMove(ParticleSet &P, int iat, bool safe_to_delay=false) override
a move for iat-th particle is accepted.
LogValue updateBuffer(ParticleSet &P, WFBufferType &buf, bool fromscratch=false) override
For particle-by-particle move.