TRIQS/triqs_ctint unstable
A TRIQS application
Loading...
Searching...
No Matches
M3pp_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 "../container_set.hpp"
9
10namespace triqs_ctint::measures {
11
17 struct M3pp_tau {
18
19 M3pp_tau(params_t const &params_, qmc_config_t const &qmc_config_, container_set *results, g_tau_cv_t G0_tau_);
20
22 void accumulate(mc_weight_t sign);
23
25 void collect_results(mpi::communicator const &comm);
26
27 private:
28 // Capture the parameters
29 params_t const &params;
30
31 // The Monte-Carlo configuration
32 qmc_config_t const &qmc_config;
33
34 // Gf view for the accumulation of M3pp_tau
35 block2_gf_view<prod<imtime, imtime>, tensor_valued<4>> M3pp_tau_;
36
37 // Gf view for the accumulation of M3pp_delta
38 block2_gf_view<imtime, tensor_valued<4>> M3pp_delta_;
39
40 // The average sign
41 mc_weight_t Z = 0.0;
42
43 // The non-interacting Green function
44 g_tau_cv_t G0_tau;
45
46 // The tau-mesh for a single argument
47 mesh::imtime tau_mesh;
48
49 // A helper type to precompute the tau-binning
50 struct idx_t {
51 long tau_idx;
52 int u;
53 tau_t tau_pt;
54 };
55 };
56
57} // 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_tau.cpp:28
void collect_results(mpi::communicator const &comm)
Collect results and normalize.
Definition M3pp_tau.cpp:129
A struct combining both constr_params_t and solve_params_t.
Definition params.hpp:210