triqs.mesh.matsubara_freq.MatsubaraFreq
- class triqs.mesh.matsubara_freq.MatsubaraFreq(n, beta, statistic='Fermion')[source]
Bases:
objectA single Matsubara frequency \(i\omega_n\).
Castable to
complexviacomplex(freq); arithmetic with scalars is implemented by casting to complex, while arithmetic between twoMatsubaraFreqinstances returns a newMatsubaraFreqwhose statistic follows from the usual selection rules (fermion + fermion = boson, fermion + boson = fermion, etc.).The associated complex value is
\[i\omega_n = i\, \frac{(2n + \mathrm{is\_fermion})\,\pi}{\beta},\]so fermionic frequencies are odd multiples of \(\pi/\beta\) and bosonic frequencies are even multiples.
- Parameters:
- nint
The Matsubara index \(n\).
- betafloat
Inverse temperature \(\beta > 0\).
- statisticstr, optional
Particle statistic, either
'Fermion'or'Boson'. Default'Fermion'.
Attributes
Matsubara index \(n\) (alias of
n).Complex value \(i\omega_n\) of this Matsubara frequency.
Real part of \(i\omega_n\), identically zero.
Imaginary part of \(i\omega_n\).
n
(int) The Matsubara index \(n\).
beta
(float) Inverse temperature \(\beta\).
statistic
(str) Particle statistic,
'Fermion'or'Boson'.is_fermion
(bool)
Truefor a fermionic frequency,Falsefor a bosonic one.