Skip to main content

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

Metadata

Release files for pyising 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for pyising 0.1.5
File Actions
pyising-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for pyising-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pyising-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for pyising-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pyising-0.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for pyising-0.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pyising-0.1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details for pyising-0.1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pyising-0.1.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details for pyising-0.1.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Total release size: 11.5 MB

Release files / pyising-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pyising-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.3 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
f69db7179a81b9571dd7f858f887cc772e39d8be2ed4a8d9ca076f27a5dcb966
BLAKE2b-256 checksum
How to use checksums
9bbc0b39d722105d169e495b4703d6d6865739db370139e49703461183023a2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / pyising-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pyising-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.3 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
6f90720df6ab2f357ba34275a6070165a5f9d3aff04f82ddc3a75f0a705ccbae
BLAKE2b-256 checksum
How to use checksums
b0ef200d211591ce04da0a6ce1d10cce269585844565ec75726bf6ffab72eba5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / pyising-0.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pyising-0.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.3 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
c0c1d8ab5e24023be1b75068d7d08b0f27986e035c5a14b523533226ed16de5a
BLAKE2b-256 checksum
How to use checksums
d1b5fc13e4c6535f8873ee725cdd4f281f47f2980d0e3cdc8d355d1ea02982be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / pyising-0.1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pyising-0.1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.3 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
24a3587427b0b10f50563a2df29753ffac0be04c881961bc8fc044f88a4d6691
BLAKE2b-256 checksum
How to use checksums
5c74b87822c09661e03e3fe546ac01b8da1a8c5150ac199f87d29c18fd2d122b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / pyising-0.1.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pyising-0.1.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.3 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
970cb870de1e753c3e1822af222283bb587959c5ab4f6a2a385260235fd3dfca
BLAKE2b-256 checksum
How to use checksums
bf86006eb75bf8cd892332b8112534cb19078fff23ff22f7af0400868b0c4ae6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for pyising 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.5 This release

5 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page