A class of stochastic algorithms for the Wigner equation