Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Python bindings for the C++ version of Matslise

Project description

PySlise 0.0.4

PySlise is a collection of algorithms to solve the one and two dimensional time-independent Schrödinger equations. These algorithms are based upon constant perturbation methods to efficiently solve these eigenvalue problems.

The code (and name) is based on Matslise [1]. This is a feature-rich matlab library for solving the one dimensional time independent Schrödinger equation.

To solve the two dimensional problem an algorithm is developed on the basis of a method proposed by Ixaru [2].

This implementation is developed in C++ with a focus on efficiency. This code is precompiled for 64 bit windows and linux and packaged in wheels.

Documentation

Full documentation can be found on matslise.ugent.be. This document contains some examples of how to use this library.

On the same page an interactive version is available.

Examples

One dimensional problems can be tackled with:

from pyslise import PySlise
from math import pi, cos

problem = PySlise(lambda x: 2*cos(2*x), 0, pi, tolerance=1e-5)
problem.eigenvaluesByIndex(0, 10, (0, 1), (0, 1))

Also two dimensional problems are possible:

from pyslise import PySE2d

def V(x, y):
    return (1 + x**2) * (1 + y**2)

problem = PySE2d(V, -5.5,5.5, -5.5,5.5, tolerance=1e-5)
problem.eigenvalues(0,13)

Bibliography

  • [1] Ledoux, Veerle, and Marnix Van Daele. “MATSLISE 2.0 : A Matlab Toolbox for Sturm-Liouville Computations.” ACM TRANSACTIONS ON MATHEMATICAL SOFTWARE 42, no. 4 (2016): 18.
  • [2] Ixaru, L. Gr. “New Numerical Method for the Eigenvalue Problem of the 2D Schrödinger Equation.” Computer Physics Communications 181 (October 1, 2010): 1738–42. https://doi.org/10.1016/j.cpc.2010.06.031.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyslise, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size pyslise-0.0.4-cp27-cp27m-macosx_10_12_x86_64.whl (540.3 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size pyslise-0.0.4-cp27-cp27mu-manylinux2010_x86_64.whl (572.2 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size pyslise-0.0.4-cp27-cp27m-win_amd64.whl (1.3 MB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size pyslise-0.0.4-cp34-cp34m-manylinux2010_x86_64.whl (571.7 kB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size pyslise-0.0.4-cp35-cp35m-manylinux2010_x86_64.whl (571.8 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size pyslise-0.0.4-cp36-cp36m-macosx_10_12_x86_64.whl (540.3 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size pyslise-0.0.4-cp36-cp36m-manylinux2010_x86_64.whl (571.8 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size pyslise-0.0.4-cp36-cp36m-win_amd64.whl (1.3 MB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size pyslise-0.0.4-cp37-cp37m-macosx_10_12_x86_64.whl (540.3 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size pyslise-0.0.4-cp37-cp37m-manylinux2010_x86_64.whl (572.2 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size pyslise-0.0.4-cp37-cp37m-win_amd64.whl (1.3 MB) File type Wheel Python version cp37 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page