triqs::atom_diag::atom_diag::get_matrix_element_of_monomial

#include <triqs/atom_diag/atom_diag.hpp>

Synopsis

std::pair<int, matrix_t> get_matrix_element_of_monomial (operators::monomial_t const & op_vec, int B) const

Get matrix representation for a monomial operator

Parameters

  • op_vec A product of canonical operators operators (a monomial)

  • B Initial subspace B

Returns

Index of the subspace connected from by op_vec from B and the corresponding matrix (not necessarily square)