Skip to main content

Python bindings for the Ising2D C++ simulation

Reason this release was yanked:

fftw not thread safe

Project description

Upload Python Package

PyIsing

PyIsing is a Python library for simulating the Ising model using C++ bindings via pybind11. It includes implementations of the Wolff and Metropolis Monte Carlo algorithms for efficient simulation of spin systems.

Features

  • Fast C++ core: Uses pybind11 to leverage high-performance C++ computations.
  • Wolff Algorithm: Implements cluster updates for efficient decorrelation.
  • Metropolis Algorithm: Standard single-spin update method.
  • Flexible Parameters: Supports different lattice sizes, temperatures.

installation

pip install pyising

for buliding from scratch

pythin setup.py install

usage

import pyising

temps = np.linspace(1, 4, 50)

L = 64
results = pyising.run_parallel_metropolis(temps, L, N_steps=N_steps,
                                          equ_N=equ_N,
                                          snapshot_interval=snapshot_interval,
                                          seed_base=seed_base,
                                          output_dir=output_dir,
                                          use_wolff=use_wolff,
                                          save_all_configs=save_all_configs
                                          )

References

I built the code based on the following code, added the python binding and made it modular after refining the structure. https://github.com/VictorSeven/IsingModel

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyising-0.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

pyising-0.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pyising-0.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pyising-0.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

pyising-0.1.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

Details for the file pyising-0.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyising-0.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 59f698193b6cab48b578789858c1a0c6fa839052dfd6b78b7a355f104cd389af
MD5 dd70beb60f126fe47edc87233f21fc26
BLAKE2b-256 7e0534eda6ff040d9981f59b3362d79540f97f5ba174a07191272663d45c96af

See more details on using hashes here.

File details

Details for the file pyising-0.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyising-0.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c36989e1cb45caedeaf835e77ab9e21ab3ef81ae417e5ff18e83d23908f29363
MD5 d15875387101da5e3c48388d13c55983
BLAKE2b-256 b23c95fefd88051e5b498acba39deedbe4ffb8bcb5bf3238a2c111751239be2b

See more details on using hashes here.

File details

Details for the file pyising-0.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyising-0.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 887e5088cebd6880685d7efb44a19551947216b0b29f0acddebc0fcc188b715b
MD5 29169be1bb06f0d99a4eaca5ed9924b4
BLAKE2b-256 3875f1b59dedc9c52cdba074761d99f59d1a094b77333ed70b5aa0e1d626e77f

See more details on using hashes here.

File details

Details for the file pyising-0.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyising-0.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5219376f3cdbc686076a46adb16d05cb79113daad3073dce0f8fb073e98856a3
MD5 babfdac66a83b75103ed803afcd3bdb9
BLAKE2b-256 d8114b15e00194069a3dca8087c9e11a430a4d6895926318c5dac334811d4a8b

See more details on using hashes here.

File details

Details for the file pyising-0.1.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyising-0.1.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3ab5e570301e551710eae9389991a899a582961b2f79d0bcf3931a31ce1dc1aa
MD5 2436b03533e84c6817fb90302fbf602c
BLAKE2b-256 063eec833c4257066ae1ed6c8df613e93fb6db4fccc782d8e30c10b69541cd94

See more details on using hashes here.

Supported by

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