Skip to main content

Hybrid Monte Carlo with Fourier Acceleration simulation package for the N=2 Principal Chiral model.

Project description

logo

GitHub DOI PyPI version Documentation Status

This python package offers efficient simulation and data analysis routines for the $SU(2) \times SU(2)$ Principal Chiral model. The key feature offered is the integration of Fourier Acceleration into the Hybrid Monte Carlo algorithm which leads to a significant reduction in the degree of critical slowing down.

Currently the simulation is only supported for a two dimensional cubic lattice.

Installation

To install SU2xSU2 using pip run:

pip install SU2xSU2

Its is recommended to work in a virtual environment. The package comes with a custom style sheet which is used by default.

Documentation

Read the docs here.

Example

A basic example showing how to set up a simulation using Fourier accelerated HMC to measure the wall-to-wall correlation function. Further examples can be found here.

from SU2xSU2.SU2xSU2 import SU2xSU2

# define model and lattice parameters 
model_paras = {'L':40, 'a':1, 'ell':5, 'eps':1/5, 'beta':0.6}
model = SU2xSU2(**model_paras)
# define simulation parameters and measurements
sim_paras = {'M':500, 'thin_freq':1, 'burnin_frac':0.5, 'accel':True, 'measurements':[model.ww_correlation_func], 'chain_paths':['corfunc_chain.npy']}
model.run_HMC(**sim_paras) 

Licence

SU2xSU2 is free software made available under the MIT License. For details see the LICENSE file.

To Do

  • allow for external measurement functions to be passed. Just need additional argument to run_HMC, specifying the measurement data structure. Add such an example (such as computing kinetic energy per site) to examples.py
  • remove thin_freq
  • Runtime warning in correlations l.64
  • add tests
  • generalize simulation and data analysis to d-dimensional cubic lattice

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SU2xSU2-1.2.5b0.tar.gz (33.5 kB view details)

Uploaded Source

Built Distribution

SU2xSU2-1.2.5b0-py3-none-any.whl (31.8 kB view details)

Uploaded Python 3

File details

Details for the file SU2xSU2-1.2.5b0.tar.gz.

File metadata

  • Download URL: SU2xSU2-1.2.5b0.tar.gz
  • Upload date:
  • Size: 33.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for SU2xSU2-1.2.5b0.tar.gz
Algorithm Hash digest
SHA256 f03a34ef35a6fc10d1c569ce4d6f8d8da748f37661b6b1ee98d625e4262a99ca
MD5 faea5483633badb2b6f02d3904e32ea3
BLAKE2b-256 8b2bd6392c2db681bccb370166b69877f68d3f0d57fd6df5dc8a3a35d5c02406

See more details on using hashes here.

File details

Details for the file SU2xSU2-1.2.5b0-py3-none-any.whl.

File metadata

  • Download URL: SU2xSU2-1.2.5b0-py3-none-any.whl
  • Upload date:
  • Size: 31.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for SU2xSU2-1.2.5b0-py3-none-any.whl
Algorithm Hash digest
SHA256 b856da224ac7785366e6c4ebbf9b3d9c5980e002c6c3d27102cc213976958483
MD5 75e60905dcdb3b4e5ef20a5f89186af9
BLAKE2b-256 d2876051a8c8e72b0a018b31ec0645bbffb53ad69b9a6b562ae8ef6127a6d2f3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page