Skip to main content

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

Project description

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

Documentation: https://ising.readthedocs.io/en/latest/

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

Installation

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

pip install ising

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

Usage example

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

\begin{equation*} H(s_0, s_1, s_2) = -2s_0s_1 + 3s_1s_2 + 2.5s_2s_3 -s_0 \end{equation*}
import ising

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

result = ising.search(graph, num_states=4)
print(result.energies)

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.

Source Distributions

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

Built Distributions

ising-0.1.23-cp37-cp37m-manylinux1_x86_64.whl (801.1 kB view details)

Uploaded CPython 3.7m

ising-0.1.23-cp36-cp36m-manylinux1_x86_64.whl (801.1 kB view details)

Uploaded CPython 3.6m

ising-0.1.23-cp35-cp35m-manylinux1_x86_64.whl (802.3 kB view details)

Uploaded CPython 3.5m

ising-0.1.23-cp34-cp34m-manylinux1_x86_64.whl (802.2 kB view details)

Uploaded CPython 3.4m

ising-0.1.23-cp27-cp27mu-manylinux1_x86_64.whl (799.1 kB view details)

Uploaded CPython 2.7mu

ising-0.1.23-cp27-cp27m-manylinux1_x86_64.whl (799.1 kB view details)

Uploaded CPython 2.7m

File details

Details for the file ising-0.1.23-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: ising-0.1.23-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 801.1 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.14

File hashes

Hashes for ising-0.1.23-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e4483c430a1101e06ca631acf42fdb6fd8674d56953c27646e30dcee348eb086
MD5 6572406f28090b2ef9dfcab8991e6c52
BLAKE2b-256 f3064fd36d00f7670a4353559e80ef24e1c2a29068384ecb838a968091af1973

See more details on using hashes here.

File details

Details for the file ising-0.1.23-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: ising-0.1.23-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 801.1 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.14

File hashes

Hashes for ising-0.1.23-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 97dc9adfa99fc74faa2c64591bdbbd52af1426060e17cdb254a60a54fc476111
MD5 208c639d4e81f2d941c7772ff2f61995
BLAKE2b-256 8424e447afa9ad914907200f2cfeaf3f845d3dc59ec14ab0b1bcf4dcb6d747f3

See more details on using hashes here.

File details

Details for the file ising-0.1.23-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: ising-0.1.23-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 802.3 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.14

File hashes

Hashes for ising-0.1.23-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 47df18459a3004eda245df05784914d2ae92ea9ce568366e95b02e424f9d042a
MD5 57640d5f25804cf05eb149deaac6c859
BLAKE2b-256 1978e3cc72e5728d2ff02307c67ab3d0a44ccac15ffa7c7f12d998b7be0fd656

See more details on using hashes here.

File details

Details for the file ising-0.1.23-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

  • Download URL: ising-0.1.23-cp34-cp34m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 802.2 kB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.14

File hashes

Hashes for ising-0.1.23-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 337bcfa123269a845aa795930b5e2e1c6ed5e5025e6dfbfc751fdfd94e9304d0
MD5 176ed32025e217a43219c9eca3cea232
BLAKE2b-256 6d5f6958e85cca8f356807face6cfa0ba7f8b617d3b44de6e78234c03571b03b

See more details on using hashes here.

File details

Details for the file ising-0.1.23-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

  • Download URL: ising-0.1.23-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 799.1 kB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.14

File hashes

Hashes for ising-0.1.23-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8d4440bd7a0b4c50897b8bfd9d98b533680eba29d04124ec624330b0c1a9771f
MD5 f9f30fd653c2a50acba2c2dbe1c642b2
BLAKE2b-256 fb103994e05cfb60d43694d65f6948a556aa99b986f93e465bbc1f535d9cf11f

See more details on using hashes here.

File details

Details for the file ising-0.1.23-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

  • Download URL: ising-0.1.23-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 799.1 kB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/38.2.4 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.14

File hashes

Hashes for ising-0.1.23-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c424f582169a00f464f8fa69116de69fc526f540e2073d63d235aa2524bee7d2
MD5 881620529ef8e110b8d9b4f90b220da3
BLAKE2b-256 82d217c0507a4f08cf4e08727b0dec2644867c1aab0ab5f74949fcb280f3fe03

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