TRIQS/triqs_ctint
unstable
A TRIQS application
Loading...
Searching...
No Matches
chiAB_tau.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
10
namespace
triqs_ctint::measures {
11
15
struct
chiAB_tau {
16
17
chiAB_tau(
params_t
const
¶ms_,
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
¶ms;
28
29
// The Monte-Carlo configuration
30
qmc_config_t
&qmc_config;
31
32
// Container for the accumulation
33
gf_view<imtime> chiAB_tau_;
34
35
// The bosonic operator vectors
36
using
op_term_t = std::tuple<dcomplex, std::pair<int, int>, std::pair<int, int>>;
37
std::vector<std::vector<op_term_t>> A_vec;
38
std::vector<std::vector<op_term_t>> B_vec;
39
40
// The average sign
41
mc_weight_t Z = 0.0;
42
43
// The tau-mesh
44
mesh::imtime tau_mesh;
45
};
46
47
}
// namespace triqs_ctint::measures
triqs_ctint::qmc_config_t
Type of the Monte-Carlo configuration.
Definition
qmc_config.hpp:17
triqs_ctint::container_set
Container for all (optional) quantities measured and post-processed by the solver.
Definition
container_set.hpp:13
triqs_ctint::measures::chiAB_tau::accumulate
void accumulate(mc_weight_t sign)
Accumulate M_tau using binning.
Definition
chiAB_tau.cpp:28
triqs_ctint::measures::chiAB_tau::collect_results
void collect_results(mpi::communicator const &comm)
Collect results and normalize.
Definition
chiAB_tau.cpp:89
triqs_ctint::params_t
A struct combining both constr_params_t and solve_params_t.
Definition
params.hpp:210
triqs_ctint
measures
chiAB_tau.hpp
Generated by
1.15.0