triqs.operators.util.extractors

Functions to extract coefficients from many-body operators

Functions

block_matrix_from_op

Signature : (many_body_operator H, gf_struct_t gf_struct, bool ignore_irrelevant = false) -> block_matrix_t

dict_to_matrix

Convert a 2/4-index dictionary to a 2/4-dimensional NumPy array given the structure of the Green's function.

extract_U_dict2

Signature : (many_body_operator H, bool ignore_irrelevant = false) -> dict2_t<real_or_complex>

extract_U_dict4

Signature : (many_body_operator H, bool ignore_irrelevant = false) -> dict4_t<real_or_complex>

extract_h_dict

Signature : (many_body_operator H, bool ignore_irrelevant = false) -> dict2_t<real_or_complex>

op_from_block_matrix

Signature : (block_matrix_t bl_mat, gf_struct_t gf_struct) -> many_body_operator

quadratic_terms

Signature : (many_body_operator H) -> many_body_operator

quartic_terms

Signature : (many_body_operator H) -> many_body_operator