triqs_modest.embedding.Embedding.flip_spin

Embedding.flip_spin()

Dispatched C++ function(s).

[1] (alpha: int)
  -> Embedding

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

[1] Flip the spins (\(\sigma\)) for block \(\alpha\).

For block \(\alpha\) transforms \((\sigma,\sigma') \to (\tau, \tau')\) to \((\sigma, \sigma') \to (\tau', \tau)\).


[2] Flip the spins (\(\sigma\)) for all \([\alpha]\).

For block \(\alpha\) transforms \((\sigma,\sigma') \to (\tau, \tau')\) to \((\sigma, \sigma') \to (\tau', \tau)\).


Parameters:
alphaint

The index of the alpha block to flip the spins.

alphas[int]

A list of alpha blocks to flip the spins.

Returns:
Embedding

New embedding with the updated \(\psi\) map.