triqs.operators.util.op_struct

Block/index helpers for many-body operators and Green’s functions.

Functions

get_mkind(off_diag, map_operator_structure)

Build the index function that maps a (spin, orbital) pair to an operator/GF-block index.

set_operator_structure(spin_names, n_orb, ...)

Build the operator block structure for the given spin and orbital names.