From Quantum Source Compression to Quantum Thermodynamics