qlat_utils.RngState

class qlat_utils.RngState(x=None, y=None)
__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

c_rand_gen(self, Coordinate size)

size can be total_site of the lattice

copy(self, Bool is_copying_data=True)

g_rand_arr(self, shape)

return numpy array with shape and dtype=np.float64 Gaussian distribution center=0.0 with sigma=1.0

g_rand_fill(self, arr, double center=0.0, ...)

obsolete

g_rand_fill_real_d(self, double[, ...)

g_rand_gen(self, double center=0.0, ...)

rand_arr(self, shape)

return numpy array with shape and dtype=np.uint64 Uniformly distributed random integer ranges from 0 up to 2**64 - 1

rand_fill_u_long(self, ULong[)

rand_gen(self)

Generate a uniformly distributed random integer ranges from 0 up to 2**64 - 1

select(self, list l)

split(self, string seed)

u_rand_arr(self, shape)

return numpy array with shape and dtype=np.float64 Uniform distribution from 0.0 to 1.0

u_rand_fill(self, arr, double upper=1.0, ...)

obsolete

u_rand_fill_real_d(self, double[, ...)

u_rand_gen(self, double upper=1.0, ...)

Attributes

cdata