54 bool accepted =
false;
78 rr_accepted = rr_proposed;
106 thisWalker.
Properties(WP::R2PROPOSED) = rr_proposed;
110 if (NonLocalMoveAcceptedTemp > 0)
169 bool accepted =
false;
195 thisWalker.
Properties(WP::R2PROPOSED) = rr_proposed;
203 rr_accepted = rr_proposed;
RealType evaluateLog(ParticleSet &P)
evalaute the log (internally gradients and laplacian) of the trial wavefunction.
const BranchEngineType * branchEngine
branch engine, stateless reference to the one in QMCDriver
ParticleSet::ParticlePos drift
temporary storage for drift
PropertyContainer_t Properties
scalar properties of a walker
Base class for update methods for each step.
A set of walkers that are to be advanced by Metropolis Monte Carlo.
helper functions for EinsplineSetBuilder
QTBase::RealType RealType
RealType getPhaseDiff() const
TrialWaveFunction & Psi
trial function
void saveProperty(IT first)
save the values of Hamiltonian elements to the Properties
bool phaseChanged(RealType psi0) const
Collection of Local Energy Operators.
void willDie()
marked to die
DMCUpdateAllWithKill(MCWalkerConfiguration &w, TrialWaveFunction &psi, QMCHamiltonian &h, RandomBase< FullPrecRealType > &rg)
Constructor.
void update(bool skipSK=false)
update the internal data
ParticleSet::ParticlePos deltaR
temporary storage for random displacement
int Age
Age of this walker age is incremented when a walker is not moved after a sweep.
T Dot(const ParticleAttrib< TinyVector< T, D >> &pa, const ParticleAttrib< TinyVector< T, D >> &pb)
T setScaledDriftPbyPandNodeCorr(T tau, const ParticleAttrib< TinyVector< T1, D >> &qf, ParticleAttrib< TinyVector< T, D >> &drift)
scale drift
WalkerProperties::Indexes WP
FullPrecRealType evaluateWithToperator(ParticleSet &P)
evaluate Local energy with Toperators updated.
RealType branchWeight(FullPrecRealType enew, FullPrecRealType eold) const
return the bare branch weight with a filtering using an energy window
DMCUpdateAllWithRejection(MCWalkerConfiguration &w, TrialWaveFunction &psi, QMCHamiltonian &h, RandomBase< FullPrecRealType > &rg)
Constructor.
std::vector< RealType > SqrtTauOverMass
sqrt(tau/Mass) per particle
~DMCUpdateAllWithKill() override
destructor
ParticleGradient G
gradients of the particles
void saveWalker(Walker_t &awalker)
save this to awalker
RealType logBackwardGF(const ParticleSet::ParticlePos &displ)
RealType getLogPsi() const
MakeReturn< UnaryNode< FnExp, typename CreateLeaf< Vector< T1, C1 > >::Leaf_t > >::Expression_t exp(const Vector< T1, C1 > &l)
~DMCUpdateAllWithRejection() override
destructor
MCWalkerConfiguration & W
walker ensemble
std::vector< RealType > MassInvP
1/Mass per particle
void loadWalker(Walker_t &awalker, bool pbyp)
load a Walker_t to the current ParticleSet
void auxHevaluate(ParticleSet &P)
RealType getPhase() const
void rejectedMove(ParticleSet &P, Walker_t &ThisWalker)
Looks like a hack see DMCBatched.cpp and DMC.cpp weight is used like temporary flag from DMC...
void advanceWalker(Walker_t &thisWalker, bool recompute) override
advance all the walkers with killnode==no
Class to represent a many-body trial wave function.
RandomBase< FullPrecRealType > & RandomGen
random number generator
void advanceWalker(Walker_t &thisWalker, bool recompute) override
advance all the walkers with killnode==yes
Indexes
an enum denoting index of physical properties
FullPrecRealType evaluate(ParticleSet &P)
evaluate Local Energy
FullPrecRealType Weight
Weight of the walker.
bool makeMoveAllParticlesWithDrift(const Walker_t &awalker, const ParticlePos &drift, const ParticlePos &deltaR, RealType dt)
move all the particles including the drift
int makeNonLocalMoves(ParticleSet &P)
make non local moves
IndexType nAccept
counter for number of moves accepted
IndexType nReject
counter for number of moves rejected
FullPrecRealType * getPropertyBase()
void setMultiplicity(WalkerIter_t it, WalkerIter_t it_end)
set the multiplicity of the walkers to branch
A container class to represent a walker.
QMCHamiltonian & H
Hamiltonian.
void resetProperty(FullPrecRealType logpsi, FullPrecRealType sigN, FullPrecRealType ene)
reset the property of a walker
IndexType NonLocalMoveAccepted
Total numer of non-local moves accepted.
ParticlePos R
The configuration vector (3N-dimensional vector to store the positions of all the particles for a sin...
bool UpdatePbyP
update particle-by-particle
void makeGaussRandomWithEngine(ParticleAttrib< TinyVector< T, D >> &a, RG &rng)