TRIQS/triqs_modest 3.3.0
Brillouin zone summation
Loading...
Searching...
No Matches
Analyze Green's functions

Detailed Description

Methods to analyze the degenerate blocks of a Green's function and use those blocks to symmetrize the Green's function object.

Functions

std::vector< std::vector< long > > triqs::modest::analyze_degenerate_blocks (block_gf< imfreq, matrix_valued > const &Gimp, double threshold=1.e-5)
 Find the generate blocks of a BlockGf by analyzing G(τ=0) or G(iω₀) using the union-find algorithm.
 
block_gf< imfreq, matrix_valued > triqs::modest::symmetrize_gf (block_gf< imfreq, matrix_valued > const &Gin, std::vector< std::vector< long > > degenerate_blocks)
 Symmetrize the blocks of a Green's function given a list of it's degenerate blocks.
 

Function Documentation

◆ analyze_degenerate_blocks()

std::vector< std::vector< long > > triqs::modest::analyze_degenerate_blocks ( block_gf< imfreq, matrix_valued > const &  Gimp,
double  threshold = 1.e-5 
)
inline

#include <triqs_modest/degenerate_blocks.hpp>

Find the generate blocks of a BlockGf by analyzing G(τ=0) or G(iω₀) using the union-find algorithm.

We use the union-find algorithm to group the blocks of the BlockGf (matrices) into equivalence classes based on approximate numerical equality. If two matrices are approximately equal, their blocks are united into the same set. The final result is a partitioning of the blocks (matrices) into degenerate groups.

Parameters
GimpBlock Green's function
thresholdtolerance for equivalence of blocks
Returns
A list of equivalent blocks

Definition at line 57 of file degenerate_blocks.hpp.

◆ symmetrize_gf()

block_gf< imfreq, matrix_valued > triqs::modest::symmetrize_gf ( block_gf< imfreq, matrix_valued > const &  Gin,
std::vector< std::vector< long > >  degenerate_blocks 
)
inline

#include <triqs_modest/degenerate_blocks.hpp>

Symmetrize the blocks of a Green's function given a list of it's degenerate blocks.

Average the degenerate blocks and replace the degenerate ones with their average.

Parameters
GinBlock Green's function
degenerate_blocksa list of the degenerate blocks.
Returns
The symmetrized Green's function.

Definition at line 93 of file degenerate_blocks.hpp.