TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
gf_tutorial_3.cpp
1#include <triqs/gfs.hpp>
2#include <triqs/mesh.hpp>
3using namespace triqs;
4using namespace triqs::gfs;
5
6int main() {
7 // Create a imaginary-time mesh
8 double beta = 1;
9 int n_times = 101; // number of time-points
10 auto tau_mesh = mesh::imtime{beta, Fermion, n_times};
11
12 // Create a scalar-valued Green function g[tau] on the tau_mesh
13 auto g = gf<imtime, scalar_valued>{tau_mesh};
14}
The owning Green's function container.
Definition gf.hpp:194
Imaginary time mesh type.
Definition imtime.hpp:68
Umbrella header for the Green's function library.
Umbrella header for the TRIQS mesh types.