Numerical and symbolic implementation of quasi-degenerate perturbation theory
Project description
Pymablock: quasi-degenerate perturbation theory in Python
Pymablock (Python matrix block-diagonalization) is a Python package that constructs
effective models using quasi-degenerate perturbation theory.
It handles both numerical and symbolic inputs, and it efficiently
block-diagonalizes Hamiltonians with multivariate perturbations to arbitrary
order.
Building an effective model using Pymablock is a three step process:
- Define a Hamiltonian
- Call
pymablock.block_diagonalize - Request the desired order of the effective Hamiltonian
from pymablock import block_diagonalize
# Define perturbation theory
H_tilde, *_ = block_diagonalize([h_0, h_p], subspace_eigenvectors=[vecs_A, vecs_B])
# Request correction to the effective Hamiltonian
H_AA_4 = H_tilde[0, 0, 4]
Here is why you should use Pymablock:
-
Do not reinvent the wheel
Pymablock provides a tested reference implementation
-
Apply to any problem
Pymablock supports
numpyarrays,scipysparse arrays,sympymatrices and quantum operators -
Speed up your code
Due to several optimizations, Pymablock can reliably handle both higher orders and large Hamiltonians
For more details see the Pymablock documentation.
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 pymablock-2.2.0.tar.gz.
File metadata
- Download URL: pymablock-2.2.0.tar.gz
- Upload date:
- Size: 79.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a35804c6c9f53ddf47849fef189ffafc0e0639d9261154fe9a8d56afcd3320f0
|
|
| MD5 |
adaf83cccecd9c7340d32810680d1b4c
|
|
| BLAKE2b-256 |
d1b259bc4520bdbb35f61bc0f2a581a897c21a8c429f7626434b139a629f0665
|
File details
Details for the file pymablock-2.2.0-py3-none-any.whl.
File metadata
- Download URL: pymablock-2.2.0-py3-none-any.whl
- Upload date:
- Size: 86.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ed9d9be5f101e2a79f2236a29b17eb18a7f9828802ce3cf8bdd68c8cea1c03b
|
|
| MD5 |
2e3b14cfa7042fec95fce06d34ba6feb
|
|
| BLAKE2b-256 |
78008e2d1a522baec6d4ac526a646440e4dd53cadbd0cc606e212c142318e86f
|