Skip to main content

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


Download files

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

Source Distribution

pybolano-1.0.1.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

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

pybolano-1.0.1-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

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

Hashes for pybolano-1.0.1.tar.gz
Algorithm Hash digest
SHA256 068e880f5dd2d0cfb3010f2a5be2fd31e4b56443bd5e78bcb26df4cc8d766c8f
MD5 955a725c0267f21fed656742e0bb5a8c
BLAKE2b-256 1ebb1ca3e93ee8cea98f794a9a8b84ed45d7abcb8891046aff595554ac1af007

See more details on using hashes here.

Provenance

The following attestation bundles were made for pybolano-1.0.1.tar.gz:

Publisher: python-publish.yml on hendry24/pyBoLaNO

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pybolano-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 460303aa390934163b1007e84162b8962a99c9deb4976cf4fabe10ee902c4e24
MD5 1251a9ee833b1868392724a88b47f2c3
BLAKE2b-256 682d46212417e3e1bea2f458d994b905940f31baff79c424c194192a8b675a12

See more details on using hashes here.

Provenance

The following attestation bundles were made for pybolano-1.0.1-py3-none-any.whl:

Publisher: python-publish.yml on hendry24/pyBoLaNO

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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