Skip to main content

GCEISING: the Monte Carlo simulation of Generalized Canonical Ensemble of Ising Model

Gceising is a Monte Carlo simulation toolkit of the Generalized Canonical Ensemble of 2D Ising Model.

The programming of this project involves tasks in three aspects: Time consuming jobs, Numerical calculation and Data virtualization. To improve the performance of time consuming job, we code it in C++ and then bind it via swig as a python module, which can be used by other modules. Python has many advanced data structures, from which it is so free to do scientific jobs such as numerical calculation. Though Matplotlib python package, we also can easily deal with data virtualization. If we use pyQT, UI design is amazing.

Gceisng bases on C++, Swig, Numpy, Matplotlib and PyQt4.

Install

This package depends on Numpy, Matplotlib, and PyQt4 (swig are optional if you need modify the *.i files). Once you have fulfilled these dependencies you can install the package with the usual command:

$ python setup.py install

if you INSTALL ON WINDOWS, you can use mingw32 or MS VC++ as C++ compiler. For installation of PyQt4 on Windows, PyQt4 binary package (build-in with qt and sip) is strongly recommended instead of source packages. PyQt4 download link http://www.riverbankcomputing.co.uk/software/pyqt/download.

Usage

There are various ways to use gceising. The simplest is add inline code as argument to the Python interpreter:

$ python -c "from gceising import qIsing;qIsing.main()"

This will create a GUI window which you can operate. Or execute python qIsing.py after _Ising.so or _Ising.pyd is built.

It is also possible to manually call qIsing.py inside Python code:

>>> from gceising import qIsing
>>> qIsing.main()
Note:

Ising.py in gceising package can be freely extended as need like qIsing.py.

You can also find a video demo of gceising on youtube.

Bugs

The source code has been successfully tested on Linux and Windows with Python 2.5 and Python 2.6 respectively. Bugs on Mac OS are unknown.

Misc

Author: Alwin Tsui <alwintsui@gmail.com> ;

Theoretical Physics advisor: Xin Zhou <xinzhou71@gmail.com> at Asia Pacific Center for Theoretical Physics (APCTP).

Feedback

Comments, suggestions and patches are welcome and appreciated. They can be sent to alwintsui@gmail.com.

License

GPLv3+ License, (C) 2011 Alwin Tsui.

Metadata

Release files for gceising 1.0

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

Source distribution (sdist)

Source distribution for gceising 1.0
File Size Uploaded Provenance Actions
gceising-1.0.tar.gz 80.1 kB Without provenance Details for gceising-1.0.tar.gz

Release files / gceising-1.0.tar.gz

Download URL gceising-1.0.tar.gz
Size 80.1 kB
Tags Source
SHA-256 checksum
How to use checksums
aa49a16a97dfabee6f8c409cb46e9193fd086ee248619ed6a24b27bc615cdb9b
BLAKE2b-256 checksum
How to use checksums
1922023d433edf1730d3c07042bfa876403a42431c7db39729f9ba33cebcc7a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for gceising 1.0

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.

Release history Release notifications | RSS feed

This release

1.0 This release

1 release file No provenance

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