Calculating heat distribution in Hilbert space