The noun statistical mechanics is uncountable.
The singular form of statistical mechanics is also statistical mechanics.