A simple algorithm for generating random U(1) variables with Boltzmann distribution is presented. The rejection method and a transformation of variables are combined to obtain high acceptance rate and high speed for all range of temperatures of coupling parameters. Results of computer runs are presented to illustrate the efficiency. A method to find such algorithms is also presented, which may be applicable to other distributions of interest in Monte Carlo simulations.
ASJC Scopus subject areas
- Atomic and Molecular Physics, and Optics
- Nuclear and High Energy Physics