mirror of
https://github.com/paboyle/Grid.git
synced 2025-06-14 22:07:05 +01:00
Skeleton of HMC/Integrators
This commit is contained in:
@ -543,6 +543,26 @@ Note that in step D setting B ~ X - A and using B in place of A in step E will g
|
||||
taExp(lie,out);
|
||||
}
|
||||
|
||||
static void GaussianLieAlgebraMatrix(GridParallelRNG &pRNG,LatticeMatrix &out,double scale=1.0){
|
||||
GridBase *grid = out._grid;
|
||||
LatticeComplex ca (grid);
|
||||
LatticeMatrix lie(grid);
|
||||
LatticeMatrix la (grid);
|
||||
Complex ci(0.0,scale);
|
||||
Matrix ta;
|
||||
|
||||
out=zero;
|
||||
for(int a=0;a<generators();a++){
|
||||
|
||||
gaussian(pRNG,ca);
|
||||
generator(a,ta);
|
||||
|
||||
la=ci*ca*ta;
|
||||
out = lie+la; // e^{i la ta}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static void HotConfiguration(GridParallelRNG &pRNG,LatticeGaugeField &out){
|
||||
LatticeMatrix Umu(out._grid);
|
||||
for(int mu=0;mu<Nd;mu++){
|
||||
|
Reference in New Issue
Block a user