triqs_dft_tools.sumk_dft.SumkDFT.rotloc

SumkDFT.rotloc(ish, gf_to_rotate, direction, shells='corr')[source]

Rotates a block of the local Green’s function from the local frame to the global frame and vice versa.

Parameters:
ishinteger

Shell index of GF to be rotated.

  • if shells=’corr’: ish labels all correlated shells (equivalent or not)

  • if shells=’all’: ish labels only representative (inequivalent) non-correlated shells

gf_to_rotateGf

Block of the Green’s function that is to be rotated.

directionstring

The direction of rotation can be either

  • ‘toLocal’ : global -> local transformation,

  • ‘toGlobal’ : local -> global transformation.

shellsstring, optional
  • if shells=’corr’: the rotation matrix for the correlated shell ‘ish’ is used,

  • if shells=’all’: the rotation matrix for the generic (non-correlated) shell ‘ish’ is used.

Returns:
gf_rotatedGf

Rotated block of the local Green’s function.