Skip to main content

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

Project description

SU(2) x SU(2)

This python package offers efficient simulation and data analysis routines for the SU(2) x 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.

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

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.1.1.tar.gz (28.5 kB view details)

Uploaded Source

Built Distribution

SU2xSU2-1.1.1-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

Details for the file SU2xSU2-1.1.1.tar.gz.

File metadata

  • Download URL: SU2xSU2-1.1.1.tar.gz
  • Upload date:
  • Size: 28.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.1.1.tar.gz
Algorithm Hash digest
SHA256 fcd1c7444e1e56ffac5520755ec485e0f59f27b14a14cc36f8ffeaf5957a2db6
MD5 4d399e83929f9a713bd2d22595d08ebf
BLAKE2b-256 f4a327b115a1e47ff484048471393be2fb7e99ed54212ad80295a4f170985916

See more details on using hashes here.

File details

Details for the file SU2xSU2-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: SU2xSU2-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 29.2 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6fe29ec4827c93bc74465570d0e12f09d1a08d1ca0cf43ee586e8b03869691fe
MD5 2f0cdfea43f6e39b3df98fd28df42ae9
BLAKE2b-256 f40c74453b694077967e853f017c86da7ef320c85eef42895bd405051a425804

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