TRIQS/triqs_ctint 4.0.0
A TRIQS application
Loading...
Searching...
No Matches
M4_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 M4_iw {
19
20 M4_iw(params_t const &params_, qmc_config_t const &qmc_config_, container_set *results);
21
22 // M4_iw needs to be uncopyable due to nfft_buf_t
23 M4_iw(M4_iw const &) = delete;
24 M4_iw(M4_iw &&) = default;
25 ~M4_iw() = default;
26 M4_iw &operator=(M4_iw const &) = delete;
27 M4_iw &operator=(M4_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, imfreq>, tensor_valued<4>> M4_iw_;
44
45 // The average sign
46 mc_weight_t Z = 0.0;
47
48 // Container of nfft_buffers: buf_arrarr(block)(u_j,u_i)
49 array<array<nfft_buf_t<2>, 2>, 1> buf_arrarr;
50
51 // Intermediate scattering matrix in the measurement of M4
52 block_gf<prod<imfreq, imfreq>, matrix_valued> M;
53 };
54
55} // namespace triqs_ctint::measures
Type of the Monte-Carlo configuration.
Container for all (optional) quantities measured and post-processed by the solver.
void collect_results(mpi::communicator const &comm)
Collect results and normalize.
Definition M4_iw.cpp:81
void accumulate(mc_weight_t sign)
Accumulate M_tau using binning.
Definition M4_iw.cpp:39
A struct combining both constr_params_t and solve_params_t.
Definition params.hpp:210