TRIQS/triqs_ctint 4.0.0
A TRIQS application
Loading...
Searching...
No Matches
chi2_tau.hpp
1// Copyright (c) 2017--present, The Simons Foundation
2// This file is part of TRIQS/ctint and is licensed under the terms of GPLv3 or later.
3// SPDX-License-Identifier: GPL-3.0-or-later
4// See LICENSE in the root of this distribution for details.
5
6#pragma once
7#include "../qmc_config.hpp"
8#include "../nfft_buf.hpp"
9#include "../container_set.hpp"
10
11namespace triqs_ctint::measures {
12
16 template <Chan_t Chan> struct chi2_tau {
17
18 chi2_tau(params_t const &params_, qmc_config_t &qmc_config_, container_set *results);
19
21 void accumulate(mc_weight_t sign);
22
24 void collect_results(mpi::communicator const &comm);
25
26 private:
27 // Capture the parameters FIXME We cannot choose const, as we call try_insert
28 params_t const &params;
29
30 // The Monte-Carlo configuration
31 qmc_config_t &qmc_config;
32
33 // Container for the accumulation
34 block2_gf_view<imtime, tensor_valued<4>> chi2_tau_;
35
36 // The average sign
37 mc_weight_t Z = 0.0;
38
39 // The tau-mesh
40 mesh::imtime tau_mesh;
41 };
42
43} // namespace triqs_ctint::measures
44
45#include "./chi2_tau_impl.hpp"
Type of the Monte-Carlo configuration.
Container for all (optional) quantities measured and post-processed by the solver.
void accumulate(mc_weight_t sign)
Accumulate M_tau using binning.
void collect_results(mpi::communicator const &comm)
Collect results and normalize.
A struct combining both constr_params_t and solve_params_t.
Definition params.hpp:210