#include <triqs/mc_tools/mc_generic.hpp>


int warmup (uint64_t n_warmup_cycles,
int64_t length_cycle,
std::function<bool ()> stop_callback,
MCSignType sign_init,
communicator c = mpi::communicator{})

Warmup the Monte-Carlo configuration


  • n_warmup_cycles Number of QMC cycles in the warmup
  • length_cycle Number of QMC move attempts in one cycle
  • stop_callback A callback function () -> bool. It is called after each cycle
    to and the computation stops when it returns true. Typically used to set up the time limit, cf doc.
  • sign_init The sign of the initial configuration’s weight [optional]


0 if the computation has run until the end
1 if it has been stopped by stop_callback
2 if it has been stopped by receiving a signal