GithubHelp home page GithubHelp logo

potatoasad / computational-physics-final-project Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 12.44 MB

Final Project for the Computational Physics course at UT Austin

Python 1.53% Jupyter Notebook 98.47%

computational-physics-final-project's Introduction

Sampling spheres and spins

Notebooks, documentation for the sampler package can be found in the docs site for this repo

Final Project, Computational Physics, Fall 2023

Aditi Pujar, Asad Hussain, Kody Anderson, Shivan Mittal

Imagine a distribution $\rho(\mathbf{x})$ over the domain $\mathbf{x} \in X \subset \mathbb{R}^n.$ Sampling algorithms are answers to the question: Given that we do not have exact knowledge of the functional form of $\rho,$ can we nonetheless generate samples from $\rho?$ In particular, Markov Chain Monte Carlo algorithm is a sampling algorithm that only requires the knowledge of relative likelihood of two samples $\mathbf{x}_1$ and $\mathbf{x}_2$ drawn from the distribution $\rho,$ i.e. knowledge of ${\rm Likelihood} = \rho(\mathbf{x}_1) / \rho(\mathbf{x}_2)).$ Hamiltonian Monte Carlo algorithm is another such sampling algorithm that further requires the knowledge of (a priori or empirically by differentiable ``code'') the gradient of the likelihood. Numerous Physical problems can benefit from sampling algorithms. These range from (Classical and Quantum) many-body problems to data analysis for large scale Physics experiments (LIGO, CERN).

  1. to package our own Markov Chain Monte Carlo algorithm and existing Hamiltonian Monte Carlo algorithm from blackjax library into a single class interface, and
  2. to demonstrate the ease of use of out interface and the utility of the sampling algorithms via the following examples of,
    1. Phase transition in classical soft-sphere packing problem
      1. Applications to classical error correcting codes
    2. Phase transition in 1D quantum spin Hamiltonians
    3. Black hole parameter estimation using real observatory data from LIGO
    4. Phase transitions in 2D Ising ferromagnets and spin glasses

Plots from our work

Phase transition in soft sphere packing correlation function with lowering temperature



Phase transition in 1D Quantum spin chain with increasing parameter "p" of the Hamiltonian (characterizes the Bell-state property of a local term in the Hamiltonian)

Posterior distribution for the hyperparameters of a population model computed by performing hierarchical inference on samples from every confident LIGO binary black hole detection



Phase transition in spin glasses upon decreasing temperature, reflected in both - the Edwards Anderson Order parameter and the rugged energy landscapes



Phase transition in 2D Ising model upon decreasing temperature

computational-physics-final-project's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.