triqs::hilbert_space::project

#include <triqs/hilbert_space/state.hpp>

Synopsis

  1. template<typename TargetState, typename OriginalState>
    TargetState project (OriginalState const & psi, hilbert_space const & proj_hs)
  2. template<typename TargetState, typename OriginalState>
    TargetState project (OriginalState const & psi, sub_hilbert_space const & proj_hs)

Documentation

1) Construct a projection of a state to a Hilbert space

2) Construct a projection of a state to a Hilbert subspace

Template parameters

  • TargetState Type of the result
  • OriginalState Type of the state being projected

Parameters

  • psi State to be projected
  • proj_hs Target Hilbert space