triqs_modest.embedding.Embedding

class triqs_modest.embedding.Embedding

The embedding class.

The embedding class encodes the mapping between impurities and the correlated space \(\mathcal{C}\) (cf. ModEST implementation notes). In particular, it maps the individual “blocks” within an impurity self-energy to a block and spin of the embedded self-energy function, which can then be upfolded (downfolded) to obtain the lattice self-energy and the local Green’s function.


Dispatched C++ constructor(s).

[1] (sigma_embed_decomposition: [int],
     imp_decompositions: [[int]],
     psi: ndarray[ImpBlockT, 2],
     sigma_names: [str])

[2] ()

[1] Construct an embedding object.


[2] Default constructor for reading from HDF5.


Parameters:
sigma_embed_decomposition[int]

Decomposition (list of block sizes) for \(\Sigma_{\text{embed}}\): \([ \alpha ] =\) block size. Note that the decompositions are given for \(\alpha\), \(\gamma\) index, and are independent of \(\sigma\).

imp_decompositions[[int]]

List of decomposition of solvers: [n_imp][\(\gamma\)] = block size.

psindarray[ImpBlockT, 2]

The mapping \(\psi[\alpha,\sigma]\) -> n_imp, \(\gamma\), \(\tau\).

sigma_names[str]

Names for the values of the \(\sigma\) index (e.g., “up”, “down”).

Attributes

get_psi

The mapping table \(\psi\).

imp_block_shape

Gf block structure for the impurity solvers.

n_alpha

Number of blocks in \(\alpha\) for the \(\Sigma_{\text{embed}}\).

n_impurities

Number of impurities.

n_sigma

Number of blocks in \(\sigma\) for the \(\Sigma_{\text{embed}}\).

sigma_names

The names of the sigma indices.

Methods

description

Summarize the embedding object.

drop

Remove an impurity from the embedding table \(\psi\).

embed

Embed single-particle quantities (TRIQS/ModEST).

embed_1p

Embed single-particle quantities (CoQui).

embed_2p

Embed two-particle quantities (CoQui).

embed_tensor

Embed tensors (CoQui).

extract

Extract single-particle quantities (TRIQS/ModEST).

extract_1p

Extract single-particle quantities (CoQui).

extract_2p

Extract two-particle quantities (CoQui).

extract_tensor

Extract tensors (CoQui).

flip_spin

Flip the spins (\(\sigma\)) for block \(\alpha\).

imp_decomposition

The impurity decomposition.

make_zero_imp_self_energies

Zero initialize impurity self-energies.

n_gamma

Number of blocks in \(\gamma\) for the \(\Sigma_{\text{imp}}\) [imp_idx].

replace

Replaces one impurity in the embedding table \(\psi\).

split

Split impurity imp_idx.