This expression is akin to the definitions of the Helmholtz free energy for the isothermal ensemble and to the Gibbs free energy for the isothermal-isobaric ensemble, where k B S KL (p||q) corresponds to the negative entropy. We obtain more familiar looking equations if we perform the average in the q-ensemble,