Skip to main content

Ising Model on Networks

This is a python package which simulates the Ising model on complex networks.

Given any network built using the networkx package as input, this package runs Monte Carlo simulations on random source nodes and evaluates the model according to the Metropolis algorithm, and returns the magnetization and the energy of the system.

Version 1.0.2: This has an added visualizer to plot the output graphs.

Version 1.0.4: The Github repo has an added ipynb that can be referred to for instructions about usage.

Version 1.0.10: A new parallel implementation has been added.

Version 1.1.1: Two much faster functions have been added for both serial and parallel simulations.

Version 1.1.3: Added functions to calculate Curie temperature and decay time.

Version 1.1.4: Added a function to compute average degree

Installation

Run the following to install:

pip install isingnetworks

Additional packages required:

pip install joblib

Usage

Import the class:

from isingnetworks import IsingModel

Create a graph (g) using networkx.

Create an intance of the IsingModel class:

model = IsingModel(g)

Using the viz function:

model.set_J(val_of_J)
model.set_iterations(no_of_iterations)
model.set_initial_state(0) # 0 or 1

# Serial Implementation
model.viz(temperature_array)

# Parallel Implementation
model.viz_parallel(temperature_array)

# Faster Implementations
model.viz_fast(temperature_array)
model.viz_fast_parallel(temperature_array)

Metadata

Release files for isingnetworks 1.1.4

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

Source distribution (sdist)

Source distribution for isingnetworks 1.1.4
File Size Uploaded Provenance Actions
isingnetworks-1.1.4.tar.gz 4.7 kB Without provenance Details for isingnetworks-1.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for isingnetworks 1.1.4
File Interpreter ABI Platform Actions
isingnetworks-1.1.4-py3-none-any.whl Python 3 none any Details for isingnetworks-1.1.4-py3-none-any.whl

Total release size: 9.5 kB

Release files / isingnetworks-1.1.4.tar.gz

Download URL isingnetworks-1.1.4.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
dc529f021628f65e3dd0aacfa416dece15912b872baff0b1af92030927f9ad38
BLAKE2b-256 checksum
How to use checksums
80f489684c72d3e9bf84f46ffbcb4a7cfe2caeeea28cf125fee8633a269bc36e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

Release files / isingnetworks-1.1.4-py3-none-any.whl

Download URL isingnetworks-1.1.4-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4bb2c12b25c68dcf2208b1aeb6d31d67df18280a74cccb018417526c34a98ebd
BLAKE2b-256 checksum
How to use checksums
c60805948f47193081e637426bb7a2f6856fb964226967e8763a11d404196b28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

Security for isingnetworks 1.1.4

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.

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