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
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qshoot-0.1.2.tar.gz.
File metadata
- Download URL: qshoot-0.1.2.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df063dff77a9d1217aa7ea043e16c7039a1be3be7119cee491d15299f71f7aaa
|
|
| MD5 |
dc75a89797a16f1be3403e23c4d24e18
|
|
| BLAKE2b-256 |
85de079912fbb5e8ca8db7a79d48bc0def8c4bd338af59478ea2ae8c91c03ffb
|
File details
Details for the file qshoot-0.1.2-py3-none-any.whl.
File metadata
- Download URL: qshoot-0.1.2-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.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0faf7f5cbf2ed17e289ea13e5aa4b8d03f44e7d78bf8f17a55b77c3ad37c4049
|
|
| MD5 |
123dc9c726157cbe10dc876b03057c8d
|
|
| BLAKE2b-256 |
200d67481415e40a77f44a60a718b25d1d278600f7ef91d9ee9c1b61f55f662a
|