TRIQS/triqs_ctint 4.0.0
A TRIQS application
Loading...
Searching...
No Matches
M_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 M_tau {
18
19 M_tau(params_t const &params_, qmc_config_t const &qmc_config_, container_set *results);
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 M_tau accumulation
35 block_gf_view<imtime, M_tau_target_t> M_tau_;
36
37 // Matrix views for the hartree term accumulation
38 std::vector<matrix_view<M_tau_scalar_t>> M_hartree_;
39
40 // The average sign
41 mc_weight_t Z = 0.0;
42 };
43
44} // 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 M_tau.cpp:21
void collect_results(mpi::communicator const &comm)
Collect results and normalize.
Definition M_tau.cpp:46
A struct combining both constr_params_t and solve_params_t.
Definition params.hpp:210