Metadata-Version: 2.2
Name: pyising
Version: 0.1.2
Summary: Python bindings for the Ising2D C++ simulation
Home-page: https://github.com/yourusername/Ising2DProject
Author: Morteza Maleki
Author-email: maleki.morteza92@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: C++
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: pybind11>=2.5.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# 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
```bash
pip install pyising
```

## usage
```python
import pyising

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

L = 64
results = pyising.run_parallel_metropolis(temps, L, N_steps=100000,
                                                   seed_base=42,
                                                   output_dir="simultion",
                                                    use_wolff=False, 
                                                    save_all_configs=False)
```
