A thermodynamic device can be designed so its changing physical state represents variables in a mathematical problem. Measuring those states can produce samples or estimates related to the problem.
The approach suits some calculations better than others. A useful device needs a way to encode the problem, measure the results and verify its accuracy and resource use.
ELI5
Thermodynamic computing gives a noisy physical system a problem whose answer can be found in how that system behaves.
For example, imagine needing many random numbers with a particular pattern. A suitably configured circuit can help produce those samples.
What is sampling in thermodynamic computing?
Sampling means taking readings from a physical system to obtain outcomes that approximate a desired probability distribution.
Does thermodynamic computing replace general-purpose processors?
It is a specialized approach. Conventional hardware and software can still be needed to set up calculations, read the outputs and perform other tasks.

