triqs.operators.util.op_struct.set_operator_structure
-
triqs.operators.util.op_struct.
set_operator_structure
(spin_names, n_orb, off_diag)[source] Set the operator_structure for given spin and orbital names, according to whether or not the Green’s functions contain off-diagonal blocks.
Parameters: - spin_names (list of strings) – Names of the spins, e.g. [‘up’,’down’].
- n_orb (int) – Number of orbitals.
- off_diag (boolean) – Do we have (orbital) off-diagonal elements? If yes, the operators and blocks are denoted by (‘spin’, ‘orbital’), otherwise by (‘spin_orbital’,0).
Returns: op_struct – The structure of the operators [block:[inner], … ].
Return type: list