This package is the implementation of the Ising Model on complex networks.
Project description
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.
Installation
Run the following to install:
pip install isingnetworks
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.viz(J, temperature_array, no_of_iterations, initial_state)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for isingnetworks-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6336b0d44584cef5dd6e100592ca209c2df878608728cd3c22f8072f7f5ecb6 |
|
MD5 | a2a63a93153ad4a238aa15fbd12e0f35 |
|
BLAKE2b-256 | 67e5c2dc8144d59a388475a187d4a6ce33b15a3cf35525b3276a170e5e843002 |