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
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 Distributions
Built Distributions
Hashes for pyslise-0.0.4-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 782c13eb565e5033e1e71bcd1f4c98c7455794f118d4734da3bf5334a6fb36ce |
|
MD5 | 07c6094523c5d8e5e6c55838e88567cb |
|
BLAKE2b-256 | c56f62405c11d0efa8b76763cf51da5eb22c2ba22af21d0a6fdbb34d2e2ffb44 |
Hashes for pyslise-0.0.4-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c585ec4d86e965a634d01462a0cee46e9f4c30961b0d6d3b56947466136c4ebe |
|
MD5 | c74cc0a4261a7dd240f5441b52e7ae73 |
|
BLAKE2b-256 | ad698134313184fe5b422df007804babe9a9853622ed60ba869743f78147438e |
Hashes for pyslise-0.0.4-cp37-cp37m-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b083a82df20649f3538f1c9fdc919eb901702af6d28c5f131e88775de66a5f3f |
|
MD5 | 0ededc6635ab74e5f72289d133dc1380 |
|
BLAKE2b-256 | 39a982d91df5e66679fd9df8dfdffb05a6139e50a5eb85189491b70931a8de8a |
Hashes for pyslise-0.0.4-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56506e10eb06b89a66ece70c55445aa07fb100b62f05e0bcfa02fb052790e49b |
|
MD5 | 06329c4c7252b11988201f1a74dcfdff |
|
BLAKE2b-256 | ae7696b75f2fa269df4ff6c43cbfd5085589afde0ad5f9a5fb02b6f40fe677ee |
Hashes for pyslise-0.0.4-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd6e26dfd9c0f26db48a1df838b0c287e91fd8ca5513d76d1dfabbfb5306c62d |
|
MD5 | 971a059c59cf7dd6a60a2f953321490f |
|
BLAKE2b-256 | 57342db498c26fde887bb2775939d56743b8b543e15ec162b4fe14b0e3a5e3ba |
Hashes for pyslise-0.0.4-cp36-cp36m-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0a093805057c928db4e77fe288d53ca5628d7fdf23aaa50008bf79105bfcdc3 |
|
MD5 | d9863a5be11d48d092a8b858fe54898a |
|
BLAKE2b-256 | e05452ef9707b91989c73dd9cc8e7dc83db8cb25f657aa362e125427fffb85a2 |
Hashes for pyslise-0.0.4-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7595698c92bc31b4a65479d045b1a10a8d718db3a5d61577fcf47f795d05c25 |
|
MD5 | bdb1a40ea8d8fd0d4c037238550561f6 |
|
BLAKE2b-256 | be9d5d35b0fde5312e82f9360d15cec967d7547f4a167b3d2d4bf25615471a11 |
Hashes for pyslise-0.0.4-cp34-cp34m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6ca107184dbe99b2f0e6230ecad84d1c286cc5484292a78d03441efb7012570 |
|
MD5 | f4f5686fbeae5ab73803ddeda06c56bf |
|
BLAKE2b-256 | e7e5810272101be811fe1721c913e24ca1e2c86479a940e663f2f1e403c406dd |
Hashes for pyslise-0.0.4-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e4d15574232f333a75fcf0fabb0982a0022096e8e13cca06974eddaed770e06 |
|
MD5 | 1b3bac089c5e5abc7181a5c2ede2cb62 |
|
BLAKE2b-256 | b35d9d977c2b42461cd83dd4848ff86ab5d947bd4ddd5c18f38144922b0f9e02 |
Hashes for pyslise-0.0.4-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11b52b6c8d19dab9e473478cc5321c0eafefba6365f51d07a54021a66366f93e |
|
MD5 | 976ceed410ea401119bfe1b5cea595f9 |
|
BLAKE2b-256 | 836b6cf2a7824ff00d4ced39acac5a6076a045c20282fd57766750a7e2cd9870 |
Hashes for pyslise-0.0.4-cp27-cp27m-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc902a854161ee4785887193cf45981b94691d0fec0b48e91e99bbbafcbb8d02 |
|
MD5 | 78d1325b52b3267f9a60172b1473c3f7 |
|
BLAKE2b-256 | 4b45294d6da71e0600248014292deef1886aa8904f769b8e091aaa7464270013 |