triqs_modest.module.Embedding.flip_spin

Embedding.flip_spin()

Function dispatched to the following (C++) functions:

[1] (alpha: int)
  -> Embedding

[2] (alphas: [int])
  -> Embedding

[0] Flip the spins (σ) for block α.

For block α transforms (σ,σ’) -> (τ, τ’) to (σ, σ’) -> (τ’, τ).


[1] Flip the spins (σ) for all [α].

For block α transforms (σ,σ’) -> (τ, τ’) to (σ, σ’) -> (τ’, τ).


Parameters
alpha:

the index of the alpha block to flip the spins.

alphas:

a list of alpha blocks to flip the spins.


Returns

[0] a new embedding with the updated ψ map.

[1] New embedding with the updated ψ map.