Computational physics

A simulation samples configurations from a proposal distribution q(x) to estimate an expectation under a target distribution p(x). Which adjustment is generally needed for each sampled contribution?