TRIQS / triqs

a Toolbox for Research on Interacting Quantum Systems
https://triqs.github.io
GNU General Public License v3.0
141 stars 72 forks source link

[atom_diag] Another go at fixing #825 #835

Closed krivenko closed 2 years ago

krivenko commented 2 years ago

This solution is based on a conceptionally different implementation of atom_diag::get_matrix_element_of_monomial(). It is proposed by @Wentzell in https://github.com/TRIQS/triqs/issues/825#issuecomment-1036647227.

I have also made atom_diag::get_matrix_element_of_monomial() public and removed the free function matrix_element_of_monomial() from atom_diag/impl/functions.cpp as it was doing the very same thing.

Wentzell commented 2 years ago

Merging this, thank you again @krivenko !