Thermal transport in out-of-equilibrium quantum harmonic chains.