triqs_dft_tools.block_structure.BlockStructure.map_gf_struct_solver
- BlockStructure.map_gf_struct_solver(mapping)[source]
Map the Green function structure from one struct to another.
- Parameters:
- mappinglist of dict
the dict consists of elements (from_block,from_index) : (to_block,to_index) that maps from one structure to the other (one for each shell; use a mapping
None
for a shell you want to leave unchanged)
Examples
Consider a gf_struct_solver consisting of two \(1 \times 1\) blocks, block_1 and block_2. Say you want to have a new block structure where you merge them into one block because you want to introduce an off-diagonal element. You could perform the mapping via:
map_gf_struct_solver([{('block_1',0) : ('block', 0) ('block_2',0) : ('block', 1)}])