Experimental Quantum Thermodynamics with Linear Optics