Skip to main content

Crate caroli_disorder

Crate caroli_disorder 

Source
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.
MagneticImpurities
Classical magnetic impurities: distinct sites and their unit moments.
OnSiteMap
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 + b for a uniform u, azimuth φ = 2π u' uniform. The formulas are those of the thesis codes.

Functions§

choose_sites
n distinct sites drawn among candidates by a partial Fisher–Yates shuffle (thesis impurities_set): for i = 1..n, swap entry i with a uniform entry of i..=len. The order of candidates matters for reproducibility; the thesis lists the impurity region with x varying fastest.