Symbolic normal (Wick) ordering involving bosonic ladder operators.
Project description
The core working principle of pyBoLaNO is simple—the package is based on the commutation relations $\left[\hat{b}_j , \hat{b}_k^\dagger\right]= 1 \mathrm{if} j=k,\ 0 \mathrm{otherwise}$ and $\left[\hat{b}_j,\hat{b}_k\right]=\left[\hat{b}_j^\dagger,\hat{b}_k^\dagger\right]=0$ of the bosonic creation $\hat{b}_j^\dagger$ and annihilation $\hat{b}_j^\dagger$ operators, where the subscript ($j$ here) indexes the bosonic mode. More precisely, we make use of the explicit formula for the normal ordering of any monomial in bosonic operators presented by Blasiak (arXiv link for his PhD thesis and the journal article).
> normal_ordering
allows the user to normal-order any polynomial of bosonic ladder operators. It separates each monomial in the input (most generally a polynomial) by the subscripts of the ladder operators. For each subscript, normal ordering is performed using Blasiak's formulae (see Eqs. (4.2), (4.10), (4.34), (4.37) of his thesis linked above). Lastly, the algorithm moves the operators with different indices (which commute) around to give a nice-looking output.
> NO_commutator
allows the user to evaluate the any commutation relation of two polynomials of bosonic ladder operators.
It is just a shorthand to save you the time of typing normal_ordering(A*B-B*A).
> LME_expval_evo
allows the user to compute the normal-ordered expression for the expectation value evolution of a quantity represented by the operator $\hat{A}$ for a system described in the Lindblad master equation framework. The user simply needs to input: (1) the Hamiltonian $\hat{H}$; (2) the Lindblad dissipator operators $\hat{O}_j,\hat{P}_j$ as well as their nonnegative multiplier $\gamma_j$; and (3) the operator $\hat{A}$ to calculate the expectation value evolution of.
Inside LME_expval_evo, the function Hamiltonian_trace is called to evaluate the contribution from the Hamiltonian, while dissipator_trace is called to evaluate the contribution from each dissipator term indexed $j$ above. These functions are available for the user to call, as well.
A quick guide
We provide a quick tutorial of this package, in the file tutorial.ipynb in the repository tree. Here is a quick link that will take you there. The notebook includes examples of use alongside a more detailed explanation of the way the package works.
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 pybolano-1.0.1.tar.gz.
File metadata
- Download URL: pybolano-1.0.1.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
068e880f5dd2d0cfb3010f2a5be2fd31e4b56443bd5e78bcb26df4cc8d766c8f
|
|
| MD5 |
955a725c0267f21fed656742e0bb5a8c
|
|
| BLAKE2b-256 |
1ebb1ca3e93ee8cea98f794a9a8b84ed45d7abcb8891046aff595554ac1af007
|
Provenance
The following attestation bundles were made for pybolano-1.0.1.tar.gz:
Publisher:
python-publish.yml on hendry24/pyBoLaNO
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pybolano-1.0.1.tar.gz -
Subject digest:
068e880f5dd2d0cfb3010f2a5be2fd31e4b56443bd5e78bcb26df4cc8d766c8f - Sigstore transparency entry: 159956938
- Sigstore integration time:
-
Permalink:
hendry24/pyBoLaNO@e2603b82455716d36884b6ae844c1c369bc8bac0 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/hendry24
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e2603b82455716d36884b6ae844c1c369bc8bac0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pybolano-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pybolano-1.0.1-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
460303aa390934163b1007e84162b8962a99c9deb4976cf4fabe10ee902c4e24
|
|
| MD5 |
1251a9ee833b1868392724a88b47f2c3
|
|
| BLAKE2b-256 |
682d46212417e3e1bea2f458d994b905940f31baff79c424c194192a8b675a12
|
Provenance
The following attestation bundles were made for pybolano-1.0.1-py3-none-any.whl:
Publisher:
python-publish.yml on hendry24/pyBoLaNO
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pybolano-1.0.1-py3-none-any.whl -
Subject digest:
460303aa390934163b1007e84162b8962a99c9deb4976cf4fabe10ee902c4e24 - Sigstore transparency entry: 159956940
- Sigstore integration time:
-
Permalink:
hendry24/pyBoLaNO@e2603b82455716d36884b6ae844c1c369bc8bac0 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/hendry24
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e2603b82455716d36884b6ae844c1c369bc8bac0 -
Trigger Event:
release
-
Statement type: