Say we have a nasty probability distribution like, $$ P(x) = \frac{P^*(x)}{Z} $$ where we can easily compute $P^*(x)$ for a given $x$ but not $P(x)$ because partition function $Z$ is expensive to compute. There are approximation techniques like Monte Carlo which can be used to estimate the expectation of functions under this distribution.
Instead of some expectations, if we want a probability of some $x$, can we get it using some sampling techniques? Can we approximate the partition function $Z$ itself? I can't see resources which do these approximations, probably because it is not a standard thing to do.