if we have a precise description of every single particle in the substance, then that's called a "microstate". Here is how we define the temperature of a particular macrostate. Step 1. Find the number of microstates corresponding to the macrostate. That is,
Temperature and the Sackur–Tetrode Equation