Coder Social home page Coder Social logo

coppolachan / unfoldr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tscholak/unfoldr

0.0 1.0 0.0 164 KB

A tool to unfold spectra of random matrices and Hamiltonians and to calculate the nearest-neighbor level spacings.

License: GNU General Public License v3.0

Python 100.00%

unfoldr's Introduction

unfoldr

unfolding and nearest-neighbor level spacings

Given the eigenvalues of an ensemble of random matrices, unfoldr calculates the nearest-neighbor level spacings of the unfolded spectrum, either as a whole or for slices of it. You can specify how you want to cut the spectrum into slices โ€” linearly, logarithmically โ€”, and unfoldr will calculate the level spacings for each slice individually. With this you can study how the level spacing statistics change with energy and whether or not there is a phase transition in the spectrum.

Check out this blog post for more details.

Current status

The current branch continuous integration status: Build Status

Installation

unfoldr has been tested with Python 2.7 on 64-bit Linux and Mac OS X. It requires the following packages:

Obtaining the source code

$ git clone [email protected]:tscholak/unfoldr.git

Setting up unfoldr

unfoldr uses the setuptools. From within the source code directory, run:

python setup.py install

Make sure your Python's bin directory is in your $PATH. On Mac OS X, if you use Macports and haven't done so already, add

export PATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin:$PATH

to your ~/.bash_login or ~/.bash_profile file.

Usage

unfoldr reads input files one-by-one and processes them in parallel. The output file is written to once at the end of the program. The data in the output file can be analyzed statistically with histogramr.

Command line arguments

usage: unfoldr [-h] [-V] [-q] [-v] [-D] -d <dsname> -m <mname> [-b <size>]
               [-l <range>] [-L] [-p <size>] [-i] -o <outfile>
               <infile> [<infile> ...]

unfold spectra of random matrices and Hamiltonians and calculate the nearest-
neighbor level spacings.

positional arguments:
  <infile>              name(s) of input file(s)

optional arguments:
  -b <size>, --binning <size>
                        binning (default: inf)
  -l <range>, --limits <range>
                        limits (default: [-1.7976931348623157e+308,
                        1.7976931348623157e+308])
  -L, --l10             logarithmic binning (default: False)
  -p <size>, --poolsize <size>
                        relative size of the unfolding pool (default: 2)
  -i, --inmemory        keep all data in memory (default: False)

mandatory arguments:
  -d <dsname>, --dataset <dsname>
                        input data set (default: None)
  -m <mname>, --member <mname>
                        input data set member (default: None)
  -o <outfile>, --output <outfile>
                        name of output file (default: None)

other arguments:
  -h, --help            show this help message and exit
  -V, --version         show program's version number and exit
  -q, --quiet           quiet output (default: False)
  -v, --verbose         verbose output (default: False)
  -D, --debug           debug output (default: False)

Report bugs to: [email protected] unfoldr home page:
<https://github.com/tscholak/unfoldr>

Impact

So far, unfoldr has unfolded spectra for the following publication(s):

  • Torsten Scholak, Thomas Wellens, Andreas Buchleitner, "Spectral Backbone of Excitation Transport in Ultra-Cold Rydberg Gases", Phys. Rev. A 90, 063415 (2014)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.