Learning Neural Free-Energy Functionals with Pair-Correlation Matching | Synapse