triqs::hilbert_space::sub_hilbert_space::operator==

#include <triqs/hilbert_space/sub_hilbert_space.hpp>

Synopsis

bool operator== (sub_hilbert_space const & hs) const

Check two Hilbert subspaces for equality

Two subspaces are considered equal iff they have the same index and equal sets of basis Fock states.

Parameters

  • hs Another Hilbert subspace

Returns

true if the two subspaces are equal, false otherwise