.. Generated automatically by cpp2rst .. highlight:: c .. role:: red .. role:: green .. role:: param .. _triqs__hilbert_space__sub_hilbert_space__get_state_index: triqs::hilbert_space::sub_hilbert_space::get_state_index ======================================================== *#include * **Synopsis** .. rst-class:: cppsynopsis | int :red:`get_state_index` (fock_state_t :param:`f`) const Find the index of a given Fock state within this subspace Parameters ^^^^^^^^^^ * :param:`f` Fock state in question Returns ^^^^^^^ State index