Expand description
Disorder: reproducible random streams, Anderson disorder and classical magnetic impurities.
The draws follow the algorithms of the thesis codes (same order, same formulas). With
rng::Xoshiro256::gfortran they rebuild the thesis configurations bit for bit; with any
other seed they are ordinary, reproducible random configurations.
Modules§
- rng
- Reproducible random streams.
Structs§
- Anderson
- Anderson disorder: uniform on-site energies in
[−w/2, w/2)times the identity. - Magnetic
Impurities - Classical magnetic impurities: distinct sites and their unit moments.
- OnSite
Map - Site-dependent on-site matrices stored in a map (sums when a site is added twice).
Enums§
- Moments
- Distribution of classical unit moments, axisymmetric about z:
n_z = a u + bfor a uniformu, azimuthφ = 2π u'uniform. The formulas are those of the thesis codes.
Functions§
- choose_
sites ndistinct sites drawn amongcandidatesby a partial Fisher–Yates shuffle (thesisimpurities_set): fori = 1..n, swap entryiwith a uniform entry ofi..=len. The order ofcandidatesmatters for reproducibility; the thesis lists the impurity region with x varying fastest.