Ising model on a 2,000 x 2,000 square lattice, in 1B steps, simulated via Monte Carlo, implemented in Rust. Compiled executable completes simulation in less than 6 seconds on M1 Pro processor.
Initial lattice | Final lattice |
---|---|
Time evolution of relative spin count |
---|
To play around with the lattice, parameters, constants, etc., modify
src/main.rs
and call cargo run
to run. Keep in mind that this simulation
will take considerably longer than the optimized executable version. To obtain
the optimized executable version, build the project using cargo build -r
and
then call the executable (likely /target/release/ising
).