TRIQS/triqs_ctint 4.0.0
A TRIQS application
Loading...
Searching...
No Matches
auto_corr_time.hpp
1// Copyright (c) 2021--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 <triqs/stat/log_binning.hpp>
8#include "../qmc_config.hpp"
9#include "../container_set.hpp"
10
11namespace triqs_ctint::measures {
12
14 struct auto_corr_time {
15
16 auto_corr_time(params_t const &params, qmc_config_t const &qmc_config, container_set *results);
17
19 void accumulate(mc_weight_t sign);
20
22 void collect_results(mpi::communicator const &comm);
23
24 private:
25 params_t const &params;
26 qmc_config_t const &qmc_config;
27 double &auto_corr_time_;
28
29 // Log-binning accumulators: [0] = perturbation order, [1..] = sign * density per orbital
30 std::vector<triqs::stat::log_binning<dcomplex>> log_accs;
31 };
32
33} // 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 observables for autocorrelation analysis.
void collect_results(mpi::communicator const &comm)
Reduce and normalize.
A struct combining both constr_params_t and solve_params_t.
Definition params.hpp:210