34 std::vector<TrialWaveFunction*>& psi,
35 std::vector<QMCHamiltonian*>& h,
52 for (
int ipsi = 0; ipsi <
nPsi; ipsi++)
53 H1[ipsi]->rejectedMove(
W, thisWalker);
59 for (
int ipsi = 0; ipsi <
nPsi; ipsi++)
70 for (
int ipsi = 0; ipsi <
nPsi - 1; ipsi++)
72 for (
int jpsi = ipsi + 1; jpsi <
nPsi; jpsi++)
79 for (
int ipsi = 0; ipsi <
nPsi; ipsi++)
85 for (
int ipsi = 0; ipsi <
nPsi; ipsi++)
94 for (
int ipsi = 0; ipsi <
nPsi; ipsi++)
95 H1[ipsi]->rejectedMove(
W, thisWalker);
102 for (
int ipsi = 0; ipsi <
nPsi; ipsi++)
111 thisWalker.
Properties(ipsi, WP::LOCALENERGY) = et;
112 H1[ipsi]->auxHevaluate(
W, thisWalker);
121 std::vector<TrialWaveFunction*>& psi,
122 std::vector<QMCHamiltonian*>& h,
143 for (
int ipsi = 1; ipsi <
nPsi; ipsi++)
144 H1[ipsi]->rejectedMove(
W, thisWalker);
153 for (
int ipsi = 0; ipsi <
nPsi; ipsi++)
163 for (
int ipsi = 0; ipsi <
nPsi - 1; ipsi++)
165 for (
int jpsi = ipsi + 1; jpsi <
nPsi; jpsi++)
172 for (
int ipsi = 0; ipsi <
nPsi; ipsi++)
178 for (
int ipsi = 0; ipsi <
nPsi; ipsi++)
194 for (
int ipsi = 1; ipsi <
nPsi; ipsi++)
195 H1[ipsi]->rejectedMove(
W, thisWalker);
202 thisWalker.G = cumGrad;
203 for (
int ipsi = 0; ipsi <
nPsi; ipsi++)
211 thisWalker.
Properties(ipsi, WP::LOCALENERGY) = et;
212 H1[ipsi]->auxHevaluate(
W, thisWalker);
ParticleSet::ParticlePos drift
temporary storage for drift
std::vector< RealType > sumratio
PropertyContainer_t Properties
scalar properties of a walker
typename p_traits::ParticleGradient ParticleGradient
array of gradients
std::vector< RealType > cumNorm
CSVMCUpdateAll(MCWalkerConfiguration &w, std::vector< TrialWaveFunction *> &psi, std::vector< QMCHamiltonian *> &h, RandomBase< FullPrecRealType > &rg)
Constructor.
A set of walkers that are to be advanced by Metropolis Monte Carlo.
helper functions for EinsplineSetBuilder
QTBase::RealType RealType
CSVMCUpdateAllWithDrift(MCWalkerConfiguration &w, std::vector< TrialWaveFunction *> &psi, std::vector< QMCHamiltonian *> &h, RandomBase< FullPrecRealType > &rg)
Constructor.
void assignDrift(T s, const ParticleAttrib< TinyVector< TG, D >> &ga, ParticleAttrib< TinyVector< T, D >> &da)
Definition of CSVMCUpdateAll.
ParticleSet::ParticlePos deltaR
temporary storage for random displacement
ParticleLaplacian L
laplacians of the particles
std::vector< TrialWaveFunction * > Psi1
a list of TrialWaveFunctions for multiple method
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)
std::vector< RealType > logpsi
WalkerProperties::Indexes WP
std::vector< RealType > invsumratio
std::vector< RealType > SqrtTauOverMass
sqrt(tau/Mass) per particle
ParticleGradient G
gradients of the particles
RealType logBackwardGF(const ParticleSet::ParticlePos &displ)
std::vector< ParticleSet::ParticleGradient * > G1
MakeReturn< UnaryNode< FnExp, typename CreateLeaf< Vector< T1, C1 > >::Leaf_t > >::Expression_t exp(const Vector< T1, C1 > &l)
MCWalkerConfiguration & W
walker ensemble
std::vector< RealType > MassInvP
1/Mass per particle
void advanceWalker(Walker_t &thisWalker, bool recompute) override
move a walker
void loadWalker(Walker_t &awalker, bool pbyp)
load a Walker_t to the current ParticleSet
MakeReturn< UnaryNode< FnSqrt, typename CreateLeaf< Vector< T1, C1 > >::Leaf_t > >::Expression_t sqrt(const Vector< T1, C1 > &l)
RandomBase< FullPrecRealType > & RandomGen
random number generator
Indexes
an enum denoting index of physical properties
typename p_traits::SingleParticleValue SingleParticleValue
typedef for value data type.
std::vector< RealType > avgNorm
bool makeMoveAllParticlesWithDrift(const Walker_t &awalker, const ParticlePos &drift, const ParticlePos &deltaR, RealType dt)
move all the particles including the drift
std::vector< ParticleSet::ParticleLaplacian * > L1
IndexType nAccept
counter for number of moves accepted
IndexType nReject
counter for number of moves rejected
void advanceWalker(Walker_t &thisWalker, bool recompute) override
move a walker
FullPrecRealType * getPropertyBase()
FullPrecRealType Multiplicity
Number of copies for branching When Multiplicity = 0, this walker will be destroyed.
std::vector< RealType > MassInvS
1/Mass per species
bool makeMoveAllParticles(const Walker_t &awalker, const ParticlePos &deltaR, RealType dt)
move all the particles of a walker
A container class to represent a walker.
std::vector< QMCHamiltonian * > H1
a list of QMCHamiltonians for multiple method
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)