triqs_modest.embedding.Embedding.replace

Embedding.replace()

Dispatched C++ function(s).

[1] (imp_idx_to_remove: int, imp_idx_to_replace_with: int)
  -> Embedding

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

Replaces the impurity solver corresponding to imp_idx_to_remove with the impurity solver at imp_idx_to_replace_with and updates the underlying table \(\psi\).

Parameters:
imp_idx_to_removeint

The index of the impurity solver to be replaced.

imp_idx_to_replace_withint

The index of the impurity solver that will replace imp_idx_to_remove.

Returns:
Embedding

A new embedding with the updated \(\psi\) map.