.. Generated automatically by cpp2rst .. highlight:: c .. role:: red .. role:: green .. role:: param .. _triqs__hilbert_space__hilbert_space__get_fock_state: triqs::hilbert_space::hilbert_space::get_fock_state =================================================== *#include * **Synopsis** .. rst-class:: cppsynopsis 1. | fock_state_t :red:`get_fock_state` (int :param:`i`) const 2. | fock_state_t :red:`get_fock_state` (:ref:`fundamental_operator_set ` const & :param:`fops`, | std::set const & :param:`indices`) const Documentation **1)** Return the `i`-th basis element as a Fock state **2)** Return the Fock state generated by a product of creation operators with given indices Parameters ^^^^^^^^^^ * :param:`i` Index of the basis state * :param:`fops` Fundamental operator set used to construct this Hilbert space * :param:`indices` An ordered set of index sequences (see `indices_t` in [[fundamental_operator_set]]) Returns ^^^^^^^ Fock state