triqs::hilbert_space::space_partition::foreach

#include <triqs/hilbert_space.hpp>

Synopsis

template<typename w_max>
void foreach (space_partition<StateType, OperatorType> & SP, w_max L)

Apply a callable object to all basis Fock states in a given space partition

The callable must take two arguments, 1) index of the basis Fock state in the considered full Hilbert space, and 2) index of the subspace this basis state belongs to.

Template parameters

  • w_max Type of the callable object

Parameters

  • SP Subject space partition

  • L Callable object