Skip to main content

Quantum mechanics eigenstate solver using the shooting method

Project description

qshoot

Quantum mechanics eigenstate solver using the shooting method.

Solves the 1D time-independent Schrödinger equation for four textbook potentials:

Potential Equation
Infinite Square Well ψ'' = −Ẽψ
Harmonic Oscillator ψ'' = (ξ² − E)ψ
Finite Square Well ψ'' = (V(ξ) − E)ψ
Double-Well ψ'' = λ[(ξ²−1)² − E]ψ

Uses outward + inward integration with Wronskian matching at the classical turning point, achieving ~10⁻¹² relative accuracy.

Install

pip install qshoot

Usage

GUI (tkinter)

qshoot

Select a potential, adjust parameters, click Solve.

As a library

from qshoot.solvers import make_harmonic_config, solve_problem

config = make_harmonic_config(n_levels=4)
states = solve_problem(config)

for s in states:
    print(f"n={s.index} ({s.parity}): E = {s.energy:.8f}")

Requirements

  • Python ≥ 3.10
  • NumPy ≥ 1.22
  • Matplotlib ≥ 3.5

License

MIT

Project details


Download files

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

Source Distribution

qshoot-0.1.0.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

qshoot-0.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file qshoot-0.1.0.tar.gz.

File metadata

  • Download URL: qshoot-0.1.0.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.8

File hashes

Hashes for qshoot-0.1.0.tar.gz
Algorithm Hash digest
SHA256 76cda21c6eba969a9b2d9a485b95394387bbffa8d7c6bda25d001ab5c8344995
MD5 78777ae08a028dd0b5ac51f0a04d56e3
BLAKE2b-256 c6d53640d98e596ea796d76bce726bc5c5519e6232d1f008537926c822ed869e

See more details on using hashes here.

File details

Details for the file qshoot-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: qshoot-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.8

File hashes

Hashes for qshoot-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 72ee6958e3a622aab3b57bea464230b2653076acc46fbd00efcbe410b9006a70
MD5 93f7a957e1622e26c3b90e822e3bb403
BLAKE2b-256 a54b8dc0ecc338ca2f0067a56678951671063ca752d280dc9ac6cdd1ab49691f

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