PHYSICS 142/242

Spring 2015

Laboratory 6


Discussion of topics for Final project


I. Quantum Monte Carlo Method

Quantum Monte Carlo and Harmonic Oscillator (PDF Document)


Assignment 3: Quantum Monte Carlo (PDF Document)


II. On Random Numbers:

Mersenne Twister

(Best random number generator in the Universe)

Period 2**19937-1

Caution: MT is for MonteCarlo, and is NOT SECURE for CRYPTOGRAPHY as is. See the following Frequently Asked Question.

What is Mersenne Twister?

Mersenne Twister(MT) is a pseudorandom number generator developed by Makoto Matsumoto and Takuji Nishimura during 1996-1997. MT has the following merits:

The scientific paper on MT

is below.

C codes

The implemented C-code([0,1]-interval mt19937.c )
Unsigned 32-bit integer version mt19937int.c

Standard MT codes and outputs, 99/10/29 version (initialization modified) click here ('99/10/29)


Hiroshi Takano at Department of Physics at Keio Univ. kindly wrote Fortran versions: mt19937.f for real mt19937int.f for integer. These codes yielded the same output as C-code in f77 and f90 on HP-UX 10.20, g77 on SunOS 4.1.4, and f77 on NEWS-OS 4.2.1R, but yet to be tested.