Here, λ λ is defined as a coupling parameter with a value between 0 and 1, and thus the potential energy as a function of λ λ varies from the energy of system A for λ λ = 0 and system B for λ λ = 1 . In the canonical ensemble, the partition function of the system can be written as: