TRIQS/triqs_ctint 4.0.0
A TRIQS application
Loading...
Searching...
No Matches
density.hpp
1// Copyright (c) 2018--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
15 struct density {
16
17 density(params_t const &params_, qmc_config_t &qmc_config_, container_set *results);
18
20 void accumulate(mc_weight_t sign);
21
23 void collect_results(mpi::communicator const &comm);
24
25 private:
26 // Capture the parameters FIXME We cannot choose const, as we call try_insert
27 params_t const &params;
28
29 // The Monte-Carlo configuration
30 qmc_config_t &qmc_config;
31
32 // Container for the accumulation
33 block_matrix_v_t density_;
34
35 // The average sign
36 mc_weight_t Z = 0.0;
37 };
38
39} // 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 density.cpp:46
void accumulate(mc_weight_t sign)
Accumulate M_tau using binning.
Definition density.cpp:23
A struct combining both constr_params_t and solve_params_t.
Definition params.hpp:210