Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Ising: a Python package for exactly solving abritrary Ising model instances using exhaustive search.

Project description

\K. Jałowiecki, M. Rams and B. Gardas


**Ising** is an open source package for exactly solving abritrary Ising model instances via exhaustive search. It can be used as an excellent tool for benchmarking other solvers or generating low energy spectra. The package is compatible with \*NIX systems (and in principle should work on Windows too). **Ising** supports parallel computation via OpenMP or GPU, if it was build with CUDA support.

Build status
|Build Status| |Documentation Status|

.. |Build Status| image::
.. |Documentation Status| image::
:alt: Documentation Status

If you are running Linux and are interested in CPU-only implementation, you can install **Ising** from Python Package Index.

.. code-block:: shell-session

pip install ising

For other installation options, including building with CUDA support, please visit the official documentation_.

.. _documentation:

Usage example
The below example finds 4 lowest energy states of the Ising model defined by

.. math::

H(s_0, s_1, s_2) = -2s_0s_1 + 3s_1s_2 + 2.5s_2s_3 -s_0

.. code:: python

import ising

graph = {(0, 1): 2, (1, 2): -3, (2, 3): 2.5, (0, 0): 1}

result =, num_states=4)

For advanced usage, including GPU support and tweaking execution parameters see documentation_.

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
ising-0.1.23-cp27-cp27m-manylinux1_x86_64.whl (799.1 kB) Copy SHA256 hash SHA256 Wheel cp27
ising-0.1.23-cp27-cp27mu-manylinux1_x86_64.whl (799.1 kB) Copy SHA256 hash SHA256 Wheel cp27
ising-0.1.23-cp34-cp34m-manylinux1_x86_64.whl (802.2 kB) Copy SHA256 hash SHA256 Wheel cp34
ising-0.1.23-cp35-cp35m-manylinux1_x86_64.whl (802.3 kB) Copy SHA256 hash SHA256 Wheel cp35
ising-0.1.23-cp36-cp36m-manylinux1_x86_64.whl (801.1 kB) Copy SHA256 hash SHA256 Wheel cp36
ising-0.1.23-cp37-cp37m-manylinux1_x86_64.whl (801.1 kB) Copy SHA256 hash SHA256 Wheel cp37

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page