Skip to main content

XyRealization

Type Alias XyRealization 

Source
pub type XyRealization = ModelRealization<[f64; 2]>;

Aliased Type§

pub struct XyRealization {
    pub couplings: Vec<f64>,
    pub spins: Vec<[f64; 2]>,
    pub temperatures: Vec<f64>,
    pub system_ids: Vec<usize>,
    pub rngs: Vec<Xoshiro256StarStar>,
    pub pair_rngs: Vec<Xoshiro256StarStar>,
    pub energies: Vec<f64>,
    /* private fields */
}

Fields§

§couplings: Vec<f64>

Forward couplings, length n_spins * n_neighbors.

§spins: Vec<[f64; 2]>

All spin configurations, length n_systems * n_spins (±1 for Ising, unit vectors for XY).

§temperatures: Vec<f64>

Temperature assigned to each system slot, length n_systems.

§system_ids: Vec<usize>

Parallel-tempering permutation: system_ids[slot] is the system index currently occupying temperature slot slot.

§rngs: Vec<Xoshiro256StarStar>

One PRNG per system.

§pair_rngs: Vec<Xoshiro256StarStar>

One PRNG per overlap-update pair slot, length n_temps * (n_replicas / 2).

§energies: Vec<f64>

Scratch cache of the interaction energy per system (-H/N), length n_systems. It is current only right after a measurement or tempering step.