TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
triqs::mc_tools::MCMeasure

#include <triqs/mc_tools/concepts.hpp>

Detailed Description

Check if a type can be used as a MC measure.

A MC measure type is required to define the following methods:

  • accumulate(MCSignType): Performs a measurement on the current MC configuration given the sign of its weight.
  • collect_results(mpi::communicator const &): Collects results from multiple MPI processes.

See also triqs::mc_tools::measure, triqs::mc_tools::measure_set and triqs::mc_tools::measure_aux for more information.

Template Parameters
TType to check.

Definition at line 77 of file concepts.hpp.

Concept definition

template<typename T, typename MCSignType>
concept triqs::mc_tools::MCMeasure = requires(T x, mpi::communicator comm) {
{ x.accumulate(std::declval<MCSignType>()) };
{ x.collect_results(comm) };
}
Check if a type can be used as a MC measure.
Definition concepts.hpp:77