Hamiltonian Formulation as a Basis of Quantized Thermal Processes