  We study the expansion of single-particle and two-particle imaginary-time
Matsubara Green's functions of quantum impurity models in the basis of Legendre
orthogonal polynomials. We discuss various applications within the dynamical
mean-field theory (DMFT) framework. The method provides a more compact
representation of the Green's functions than standard Matsubara frequencies and
therefore significantly reduces the memory-storage size of these quantities.
Moreover, it can be used as an efficient noise filter for various physical
quantities within the continuous-time quantum Monte Carlo impurity solvers
recently developed for DMFT and its extensions. In particular, we show how to
use it for the computation of energies in the context of realistic DMFT
calculations in combination with the local density approximation to the density
functional theory (LDA+DMFT) and for the calculation of lattice
susceptibilities from the local irreducible vertex function.
