Skip to main content

Python bindings for the C++ version of Matslise

Project description

Pyslise

Pyslise [1] is a collection of algorithms to solve one (and two, in development) 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 [2]. 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 [3].

This implementation is developed in C++ with a focus on efficiency. This code is precompiled and packaged in wheels for 64 bit Linux, Windows, and Mac.

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-6)
problem.eigenvaluesByIndex(0, 10, (0, 1), (0, 1))

Also two dimensional problems are possible:

from pyslise import Pyslise2D

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

problem = Pyslise2D(V, -5.5,5.5, -5.5,5.5, tolerance=1e-6)
problem.eigenvalues(0,13)

Bibliography

  • [1] Baeyens, Toon, and Marnix Van Daele. “The Fast and Accurate Computation of Eigenvalues and Eigenfunctions of Time-Independent One-Dimensional Schrödinger Equations.” Computer Physics Communications, August 26, 2020, 107568. https://doi.org/10.1016/j.cpc.2020.107568.
  • [2] 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.
  • [3] 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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyslise-3.2.2-cp314-cp314-win_amd64.whl (326.9 kB view details)

Uploaded CPython 3.14Windows x86-64

pyslise-3.2.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (913.4 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyslise-3.2.2-cp314-cp314-macosx_15_0_universal2.whl (813.4 kB view details)

Uploaded CPython 3.14macOS 15.0+ universal2 (ARM64, x86-64)

pyslise-3.2.2-cp313-cp313-win_amd64.whl (320.8 kB view details)

Uploaded CPython 3.13Windows x86-64

pyslise-3.2.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (913.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyslise-3.2.2-cp313-cp313-macosx_15_0_universal2.whl (813.0 kB view details)

Uploaded CPython 3.13macOS 15.0+ universal2 (ARM64, x86-64)

pyslise-3.2.2-cp312-cp312-win_amd64.whl (320.8 kB view details)

Uploaded CPython 3.12Windows x86-64

pyslise-3.2.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (912.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyslise-3.2.2-cp312-cp312-macosx_15_0_universal2.whl (812.9 kB view details)

Uploaded CPython 3.12macOS 15.0+ universal2 (ARM64, x86-64)

pyslise-3.2.2-cp311-cp311-win_amd64.whl (320.2 kB view details)

Uploaded CPython 3.11Windows x86-64

pyslise-3.2.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (912.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyslise-3.2.2-cp311-cp311-macosx_15_0_universal2.whl (813.4 kB view details)

Uploaded CPython 3.11macOS 15.0+ universal2 (ARM64, x86-64)

pyslise-3.2.2-cp310-cp310-win_amd64.whl (319.8 kB view details)

Uploaded CPython 3.10Windows x86-64

pyslise-3.2.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (911.8 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyslise-3.2.2-cp310-cp310-macosx_15_0_universal2.whl (812.5 kB view details)

Uploaded CPython 3.10macOS 15.0+ universal2 (ARM64, x86-64)

pyslise-3.2.2-cp39-cp39-win_amd64.whl (323.5 kB view details)

Uploaded CPython 3.9Windows x86-64

pyslise-3.2.2-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (911.1 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyslise-3.2.2-cp39-cp39-macosx_15_0_universal2.whl (812.7 kB view details)

Uploaded CPython 3.9macOS 15.0+ universal2 (ARM64, x86-64)

File details

Details for the file pyslise-3.2.2-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: pyslise-3.2.2-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 326.9 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for pyslise-3.2.2-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 77149e3e1e00de983ca49815581f2eb93ce801e7fd37b666a93c5f7495915ba6
MD5 edc253f9dc0429dd88db8048550fe52e
BLAKE2b-256 d03ba477d9bacbebd46325da97cda5ef0275d41633a4ca050a6e4293d54a2d40

See more details on using hashes here.

File details

Details for the file pyslise-3.2.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyslise-3.2.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e55f0a3b311a087d0bcc6528645dec7ab7a16500f886e15e02c6afb62f428d3c
MD5 44a5502dfd9ff718cda3b4eae0004f18
BLAKE2b-256 65654e51463c8e1e9bfea66bc6dcc4d7f23c77d88719fda3f638cb363fd71f1d

See more details on using hashes here.

File details

Details for the file pyslise-3.2.2-cp314-cp314-macosx_15_0_universal2.whl.

File metadata

File hashes

Hashes for pyslise-3.2.2-cp314-cp314-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 14f2a163fb4e354719bb2da6e92eaecae99a81cf416bcd7ebdf8fe02b78ea4c2
MD5 c51086858cf28159f5516afba3f1df80
BLAKE2b-256 1379668dd5efa2638f6587e077daf0485392b3823385e294d740851149f49a8d

See more details on using hashes here.

File details

Details for the file pyslise-3.2.2-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pyslise-3.2.2-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 320.8 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for pyslise-3.2.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 bd44912fae135a5cf623565a65d59959303573c07a5525ab2c740cc505586930
MD5 605d38e05975fa8651656a701e867e85
BLAKE2b-256 0b75a102b1f785b2d7d90e0f865b44126b553c018448cc1ed4d313577e0cfe46

See more details on using hashes here.

File details

Details for the file pyslise-3.2.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyslise-3.2.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1771eeab04c67e5f82263eda3149454f394ea7873d4578b2b6180cb61c6bd2da
MD5 e5baa073773937f8310356138ff97e35
BLAKE2b-256 3bca41a53ed2710eb37f169db515bda038ed3debf1cfefafe2ddc91c9c3524a4

See more details on using hashes here.

File details

Details for the file pyslise-3.2.2-cp313-cp313-macosx_15_0_universal2.whl.

File metadata

File hashes

Hashes for pyslise-3.2.2-cp313-cp313-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 edffdb74bf82df9b825fad3d99b0880af14168de14e3ea646ed308c193c76b17
MD5 ca7100bed318bb9d479d6bebe0e80ca9
BLAKE2b-256 738d2d2af21ad6143e527931b22a958c1b0311caf06c89c3b22ec5096f632dd7

See more details on using hashes here.

File details

Details for the file pyslise-3.2.2-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pyslise-3.2.2-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 320.8 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for pyslise-3.2.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2baeb427de90c5c8675fb7c7050e0d971ba8fc24c2f865c5655b7ce4edbb1039
MD5 36c7e0e5ba9aa1488894b4a20cb0a5f5
BLAKE2b-256 a117ab3743b33c9028a8401daa330638a723006d804eb41c4da0b6f1cd6d3789

See more details on using hashes here.

File details

Details for the file pyslise-3.2.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyslise-3.2.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 19bae7f1e543ae9809555b21c2bc8f9f0dc4552ca17fd789cd2dfa5104e44a94
MD5 b3ac08704e0f55ec4d619fd54f78c16d
BLAKE2b-256 da5fdb2ca06171eb5c62435ab7264614af35b80ab35090ccceeb37a401b25906

See more details on using hashes here.

File details

Details for the file pyslise-3.2.2-cp312-cp312-macosx_15_0_universal2.whl.

File metadata

File hashes

Hashes for pyslise-3.2.2-cp312-cp312-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 2508d6fd1dec80b59b5b16baba9068d7d4941208e11f828d15721226d6985d37
MD5 2db888a1f5726700ce2fba4c4a9f3acf
BLAKE2b-256 241e5199fa1422eea8f4385149a3afe5d054afe05dc41cb242c10a96705560d5

See more details on using hashes here.

File details

Details for the file pyslise-3.2.2-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pyslise-3.2.2-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 320.2 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for pyslise-3.2.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e0eb1ccc4e68c5c8812b42d3de599a246e185a3c35333ec3c59d14f5dd7f2159
MD5 112f49b21c65c360d98af4ccbda205f0
BLAKE2b-256 5c2d027cc8a1ed9e8aa6bac1359116e95da8d31cec606a995e5732502ce62d06

See more details on using hashes here.

File details

Details for the file pyslise-3.2.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyslise-3.2.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 40cf853d2aa35edaefe83cc651aa197f8df96f7bcb59b7d5b4be0263b07a2666
MD5 0c4c9862c2c46750c849b62f66bdd4f2
BLAKE2b-256 02c70cc710d58b35f721e3002ae963033a5afe46ee64fd62d343dec41124e3f5

See more details on using hashes here.

File details

Details for the file pyslise-3.2.2-cp311-cp311-macosx_15_0_universal2.whl.

File metadata

File hashes

Hashes for pyslise-3.2.2-cp311-cp311-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 275f1c60558b57c68b9d4a0f31fecbc6009629ede98730c394ad037e057c7bc4
MD5 a2b4090b5e3c08a9b08952af9ccce723
BLAKE2b-256 9687c301830e3a7f0c61e04478818890c7062186cf3ce78cbe2824016def29f7

See more details on using hashes here.

File details

Details for the file pyslise-3.2.2-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pyslise-3.2.2-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 319.8 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for pyslise-3.2.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d16c36e679cb7f6b655aec9ca8d85f66a928e8603a51d800b32f8a3388e6b80a
MD5 d9c2175b0354577185e9de4b23b3058c
BLAKE2b-256 9e47c07b4614dc0c3413d3dcd6155328bddeba35f05aa3c9b62ded4f6f0f6499

See more details on using hashes here.

File details

Details for the file pyslise-3.2.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyslise-3.2.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1d6a39246bfefed172e0417c4ac9e87a70b0268fc5b6fa19425942ab975a23ce
MD5 5609e5efc4f1b346a51e1556c9f877e1
BLAKE2b-256 57dcc1b2854c72b6d5497d5060098d7b634f660bc6f0a560f497efa9f794ea77

See more details on using hashes here.

File details

Details for the file pyslise-3.2.2-cp310-cp310-macosx_15_0_universal2.whl.

File metadata

File hashes

Hashes for pyslise-3.2.2-cp310-cp310-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 aba9809996efe94a35aca19c7f50031162ade1ebd6cae979f77332e31456c1ca
MD5 c4e577d4e3b38f09d841150be7959da6
BLAKE2b-256 c5ed6e248706a3ae58d981f51f72b89d351aaeb9a146ab82387ae4f2a9c745e6

See more details on using hashes here.

File details

Details for the file pyslise-3.2.2-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: pyslise-3.2.2-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 323.5 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for pyslise-3.2.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c5be4cbdbcaf36e18278da21e673706554bc31f2ae43d9f04f9eef148afae464
MD5 cf68b967d4c910611c322af7b241d284
BLAKE2b-256 5b54cbdfafb9563653fb6738263aad712a2bbd4e201aa5ea9f6f6cc398f95894

See more details on using hashes here.

File details

Details for the file pyslise-3.2.2-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyslise-3.2.2-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cafcd4d35e49c87d993c4ada2d2ce8de81730c95fa8f94e0bab638e1c59ffcdb
MD5 0a17aecbc42dd1e67d3ae8a7f3d388ab
BLAKE2b-256 34285e35400cf5f5853a955a2f2605c7eb7b6b208ca30e43bddef6707b43483a

See more details on using hashes here.

File details

Details for the file pyslise-3.2.2-cp39-cp39-macosx_15_0_universal2.whl.

File metadata

File hashes

Hashes for pyslise-3.2.2-cp39-cp39-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 6c8010db4121c4bd95772320479f8104342e7f068b371c7e5e3e9b46afee20d0
MD5 cc48f228cfca308ac51fe44fa5d86180
BLAKE2b-256 92b93dc22bc8ce48837c8c00d7a79c691099b0d4549db78137e301471bde20d3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page