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
>
3
using namespace
triqs;
4
using namespace
triqs::gfs;
5
6
int
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
}
triqs::gfs::gf
The owning Green's function container.
Definition
gf.hpp:194
triqs::mesh::imtime
Imaginary time mesh type.
Definition
imtime.hpp:68
gfs.hpp
Umbrella header for the Green's function library.
mesh.hpp
Umbrella header for the TRIQS mesh types.
doc
doxygen
examples
gf_tutorial_3.cpp
Generated by
1.15.0