triqs.gf.block2_gf.Block2Gf

class triqs.gf.block2_gf.Block2Gf(name_list1, name_list2, block_list, **kwargs)[source]

Generic Green’s Function by two-index Block.

Methods

__init__(name_list1, name_list2, block_list, …)
  • Block2Gf(name_list1, name_list2, block_list, make_copies = False, name = ‘G2’)
copy(*args) Returns a (deep) copy of self (i.e.
copy_from(G2) Copy the Green’s function from G2: G2 MUST have the same structure!
copy_selected_blocks(selected_blocks1, …) Returns a COPY of the selected blocks of self, in the same order as self.
view_selected_blocks(selected_blocks1, …) Returns a VIEW of the selected blocks of self, in the same order as self.
zero()

Attributes

all_indices An Iterator on Block2Gf indices and indices of the blocks of the form: block_index1,block_index2,n1,n2, where n1,n2 are indices of the block
imag A Gf with only the imag part of data.
indices A generator of the block indices
indices1 A generator of the first block indices
indices2 A generator of the second block indices
n_blocks Number of blocks
real A Gf with only the real part of data.