Code for simulating 1D Ising Model
-
Run ising_1D to define true model, parameters, and observables
-
Run diffusion_ising for the Simple MLP // training --> Defined parameters in this section
- Uses standard noise prediction, MLE Loss
- Uses reverse time Euler sampling
-
Run plot_correlations to visualize xi v. T, domain wall density v. T
- Outputs two visuals: correlation length xi and domain wall density based on xi and rho data from diffusion_ising script
- plot_diffusion_v_true_1D
- loads true ising data and diffusion results to plot the domain wall density vs. temperature for both the true and generated 1D ising
- 2D_MC_Initialization
- Initialize 2D monte carlo
- 2D_diffusion_utils
- Define utilities needed for diffusion model
- 2D_Model
- UNet, attention, and diffusion classes
- 2D_Training
- Train model --> 100 Epochs --> 300 timesteps
- 2D_sampling
- Draw samples
- 2D_JS_Div
- JS Divergence
- 2D_Loop
- Iterate through temps