Quantum Equivalent of the Carnot Cycle