A negative-temperature heat engine is achieved with photons