TRIQS/triqs_ctint 4.0.0
A TRIQS application
Loading...
Searching...
No Matches
M3pp_iw.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
18 struct M3pp_iw {
19
20 M3pp_iw(params_t const &params_, qmc_config_t const &qmc_config_, container_set *results, g_tau_cv_t G0_tau_);
21
22 // M3pp_iw needs to be uncopyable due to nfft_buf_t
23 M3pp_iw(M3pp_iw const &) = delete;
24 M3pp_iw(M3pp_iw &&) = default;
25 ~M3pp_iw() = default;
26 M3pp_iw &operator=(M3pp_iw const &) = delete;
27 M3pp_iw &operator=(M3pp_iw &&) = delete;
28
30 void accumulate(mc_weight_t sign);
31
33 void collect_results(mpi::communicator const &comm);
34
35 private:
36 // Capture the parameters
37 params_t const &params;
38
39 // The Monte-Carlo configuration
40 qmc_config_t const &qmc_config;
41
42 // Container for the accumulation
43 block2_gf_view<prod<imfreq, imfreq>, tensor_valued<4>> M3pp_iw_;
44
45 // The average sign
46 mc_weight_t Z = 0.0;
47
48 // Container of nfft_buffers. buf_arrarr(block)(u_i,u_j)
49 array<array<nfft_buf_t<1>, 2>, 1> buf_arrarr;
50
51 // The non-interacting Green function
52 g_tau_cv_t G0_tau;
53
54 // Intermediate scattering matrix in the measurement of M3pp
55 block_gf<imfreq, matrix_valued> GM;
56 };
57
58} // namespace triqs_ctint::measures
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.
Definition M3pp_iw.cpp:36
void collect_results(mpi::communicator const &comm)
Collect results and normalize.
Definition M3pp_iw.cpp:77
A struct combining both constr_params_t and solve_params_t.
Definition params.hpp:210