Specify how work is measured
Set the lower energy to zero and the upper energy initially to \(\epsilon_i\). Prepare a canonical ensemble at inverse temperature \(\beta\), isolate it and suddenly change the gap to \(\epsilon_f\) without changing the energy eigenvectors. A run that started low stays low and requires zero work. A run that started high stays high and requires work \(\epsilon_f-\epsilon_i\), positive if the external control gives energy to the sample. No heat flows during the jump. Returning the system to equilibrium afterwards can exchange heat, but it is a separate part of the protocol.
The initial high-state probability is
Therefore
Taking a negative logarithm and multiplying by \(1/\beta\) gives the equilibrium free-energy difference of two ensembles at the same temperature. The actual final population after the jump is still \(p_i\), which generally differs from the final equilibrium occupation. This distinction explains why an equilibrium state function can be recovered from a nonequilibrium final distribution.
Compare the two averages
The mean work is \(p_i(\epsilon_f-\epsilon_i)\). Convexity of the exponential gives
In units of \(k_BT\), take an initial gap of 4 and a final gap of 0. The high state occurs with probability 0.01799 and gives work −4 when it occurs. Mean work is about −0.07194, yet \(\Delta F=-\ln[2/(1+e^{-4})]\simeq-0.6750\). Both numbers are negative. The greater number is the one closer to zero. Checking only the sign of average work would not reveal the large difference.
Each rare upper-state event contributes \(e^4\) to the exponential average. Its probability times its weight is nearly one, comparable to the entire contribution of the common lower state. This is why replacing an average of exponentials by an exponential of an average loses essential information. Repeating the same protocol more slowly with contact to a bath would describe a different path through state space.
Ask what a finite dataset can support
For \(N\) independent preparations, the probability of seeing no initial upper state is \((1-p_i)^N\). With 20 runs in the example this is about 0.696. In such a dataset every measured work is zero and the empirical free-energy difference is zero. This is fully compatible with the model. To have at least a 95 percent chance of seeing even one upper-state event requires \(N\ge\ln(0.05)/\ln(1-p_i)\), or about 166 runs. Seeing only one such event still gives a noisy estimate of its frequency.
The graph holds the final gap at zero. Change the initial gap and ensemble size. It shows the probability of missing the rare branch at each sample size, together with the five-percent level. The reported exact free energy and mean work use all initial states. These predictions can be checked by explicitly enumerating a two-outcome histogram, without drawing a random sample and silently treating its fluctuations as a new law.
Tutorial
For an initial gap zero and a final gap \(2k_BT\), calculate \(\langle W\rangle\) and \(\Delta F\).
Work through the solution
Initially \(p_i=1/2\). The average work is \(k_BT\). The free-energy difference is \(k_BT\ln[2/(1+e^{-2})]\simeq0.5662 k_BT\). Some energy supplied by the control is unavailable as recoverable equilibrium free energy at this temperature.
A preparation procedure always starts the sample in its lower state independent of the specified initial gap. Can the same equality be used by changing only the sample count?
Work through the solution
No. The canonical initial probabilities were used algebraically to turn the weighted sum into \(Z_f/Z_i\). With deterministic preparation the exponential average is one in this protocol. Repeated measurements approach that different expectation.
At fixed initial and final gaps, what does reducing temperature do to the number of runs required to see an initial excitation?
Work through the solution
The excitation probability is approximately \(e^{-\beta\epsilon_i}\) for a large positive reduced gap. Required sample count grows approximately as \(1/p_i\) for any fixed detection probability. Controlling preparation and understanding tails become more important as temperature falls.
Connect this model to the partition function and to the role of free energy in a reversible isothermal process.