QM/MM partition and Metropolis sampling

Left view: which atoms are treated quantum-mechanically and which by a force field. Right view: the accept/reject loop that makes Monte Carlo sample the Boltzmann distribution.