Skip to content

grasp-lyrl/1DIsingModel

Repository files navigation

1D Ising Model

Code for simulating 1D Ising Model

  1. Run ising_1D to define true model, parameters, and observables

  2. Run diffusion_ising for the Simple MLP // training --> Defined parameters in this section

    • Uses standard noise prediction, MLE Loss
    • Uses reverse time Euler sampling
  3. 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
  1. 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 Ising Model

  1. 2D_MC_Initialization
  • Initialize 2D monte carlo
  1. 2D_diffusion_utils
  • Define utilities needed for diffusion model
  1. 2D_Model
  • UNet, attention, and diffusion classes
  1. 2D_Training
  • Train model --> 100 Epochs --> 300 timesteps
  1. 2D_sampling
  • Draw samples
  1. 2D_JS_Div
  • JS Divergence
  1. 2D_Loop
  • Iterate through temps

About

Code for simulating 1D Ising Model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors