TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
triqs::gfs::matsubara_freq

#include <triqs/mesh/matsubara_freq.hpp>

Detailed Description

Represents a Matsubara frequency \( i\omega_n \).

A Matsubara frequency is defined by an index \( n \), the inverse temperature \( \beta \) and the particle statistics triqs::mesh::statistic_enum:

  • for fermions, it takes the values \( i \omega_n = i\frac{2 \pi (n + 1)}{\beta} \) and
  • for bosons, it takes the values \( i\omega_n = i\frac{2 \pi n}{\beta} \).

Definition at line 53 of file matsubara_freq.hpp.

Inheritance diagram for triqs::gfs::matsubara_freq:
triqs::mesh::dlr_imfreq::mesh_point_t triqs::mesh::imfreq::mesh_point_t

Public Types

using cast_t = std::complex<double>
 Value type of a Matsubara frequency.

Public Member Functions

 matsubara_freq ()=default
 Default constructor initializes the Matsubara frequency with zero index, zero inverse temperature and fermionic statistics.
 matsubara_freq (long n_idx, double b, statistic_enum stat)
 Construct a Matsubara frequency with a given index \( n \), inverse temperature \( \beta \) and particle statistics.
long index () const
 Get the index \( n \) of the Matsubara frequency.
 operator cast_t () const
 Conversion to std::complex<double>.
std::partial_ordering operator<=> (matsubara_freq const &other) const
 Partial ordering by index when beta and statistic match, unordered otherwise.
bool operator== (matsubara_freq const &) const=default
 Equality comparison.

Public Attributes

double beta = 0.0
 Inverse temperature \( \beta \).
long n = 0
 Matsubara index \( n \).
statistic_enum statistic = Fermion
 Particle statistics.

Constructor & Destructor Documentation

◆ matsubara_freq()

triqs::mesh::matsubara_freq::matsubara_freq ( long n_idx,
double b,
statistic_enum stat )
inline

Construct a Matsubara frequency with a given index \( n \), inverse temperature \( \beta \) and particle statistics.

Parameters
n_idxMatsubara index \( n \).
bInverse temperature \( \beta \).
statParticle statistics.

Definition at line 80 of file matsubara_freq.hpp.


The documentation for this struct was generated from the following file: