TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
gf_tutorial_4.cpp
1#include <triqs/gfs.hpp>
2#include <triqs/mesh.hpp>
3using namespace triqs;
4using namespace triqs::gfs;
5
6int main() {
7 // Create a real-time mesh on the interval [tmin, tmax]
8 double tmin = 0, tmax = 10;
9 int n_times = 101; // number of time-points
10 auto t_mesh = mesh::retime{tmin, tmax, n_times};
11
12 // Create a scalar-valued Green function g[t1,t2] on the product-mesh and initialize
13 auto g = gf<prod<retime, retime>, scalar_valued>{t_mesh * t_mesh};
14}
The owning Green's function container.
Definition gf.hpp:194
Real time mesh type.
Definition retime.hpp:70
Umbrella header for the Green's function library.
Umbrella header for the TRIQS mesh types.
Target type for a complex scalar-valued Green's function.
Definition targets.hpp:188