3static_assert(NDIM == 3,
"NDIM must be 3 here");
7int main(
int argc,
char *argv[]) {
13 lattice.
setup({128, 128, 128});
21 onsites(
ALL) f[X].gaussian_random();
29 hopping += f[X] * f[X + d].
dagger();
33 hila::out0 <<
"Average f^2 : " << fsqr / lattice.volume() <<
'\n';
34 hila::out0 <<
"Average hopping term " << hopping / (NDIM*lattice.volume()) <<
'\n';
The field class implements the standard methods for accessing Fields. Hilapp replaces the parity acce...
Field< A > dagger() const
Returns dagger or Hermitian conjugate of Field depending on how it is defined for Field type T.
double squarenorm() const
Squarenorm.
void setup(const CoordinateVector &siz)
General lattice setup.
#define foralldir(d)
Macro to loop over (all) Direction(s)
constexpr Parity ALL
bit pattern: 011
std::ostream out0
This writes output only from main process (node 0)
void initialize(int argc, char **argv)
Read in command line arguments. Initialise default stream and MPI communication.
void seed_random(uint64_t seed, bool device_rng=true)
Seed random generators with 64-bit unsigned value. On MPI shuffles the seed so that different MPI ran...
void finishrun()
Normal, controlled exit - all nodes must call this. Prints timing information and information about c...