qmc is a library for simulating classical and quantum ising systems on a lattice
using monte carlo methods.
The sse library contains built-in classes to handle ising models, as well as classes which handle arbitrary interactions.
It also offers a few feature gated modules:
- parallel tempering system using the
- autocorrelation calculations on variables, bonds, or arbitrary values: use
- graph serialization using serde with the
use qmc::sse::*; use rand::prelude::*; // H = J_ij s_i s_j let edges = vec![ ((0, 1), -1.0), // ((i, j), J) ((1, 2), 1.0), ((2, 3), 1.0), ((3, 0), 1.0) ]; let transverse = 1.0; let longitudinal = 0.0; let beta = 1.0; // Make an ising model using default system prng. let rng = rand::thread_rng(); let mut g = DefaultQMCIsingGraph::<ThreadRng>::new_with_rng(edges, transverse, longitudinal, 3, rng, None); // Take timesteps g.timesteps(1000, beta); // Take timesteps and sample states (as Vec<Vec<bool>>). let (state, average_energy) = g.timesteps_sample(1000, beta, None);
A limited classical monte carlo library for ising models. Contains utilities for classical monte carlo simulations.
QMC algorithms and traits. A module with various QMC algorithms and traits.
Memory management, useful for building custom QMC backends.