A partition function for liquids | Synapse