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.1.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.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for qshoot-0.1.1.tar.gz
Algorithm Hash digest
SHA256 67db81a671d12c1fbb91928f3586e3ad6da3bda35cf16d3785c9576fc5b7cf3f
MD5 df98f53db082ca8f671c851c6836fea0
BLAKE2b-256 ae4d1f74a9e6ba42ba207c350ea526b024c0c8c579c0519258d2f94b88a8e4fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qshoot-0.1.1-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.14.3

File hashes

Hashes for qshoot-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2ecbb0e2d241b61fc6d8b3ae0d914b9c8e057b63bb97616e389817f1ab1714f8
MD5 e8e2043dc0e88463eb8e29b943de2b36
BLAKE2b-256 bfaa840b5e29218708c7adc7469a7618ea784bbbdbfd1e814541c7d870d4bcbb

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