|
TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
|
This page collects compilable C++ examples that exercise the TRIQS library.
For the equivalent Python usage, see the Python user guide.
| Example | Description |
|---|---|
| Mesh types | C++ mesh types — constructing each mesh and iterating its points |
| Green's functions | Green's functions — creating and manipulating \(G(i\omega)\), \(G(\tau)\), \(G(t)\), ... |
All examples have been compiled on a MacBook Pro with an Apple M2 Max chip with
installed via homebrew.
We further used clang 22.1.4 together with cmake 4.3.2.
Assuming that TRIQS has been installed locally (see the installation instructions) and that the actual example code is in a file main.cpp, the following generic CMakeLists.txt should work for all examples (see also Integration in C++ projects):