pybolano


Namepybolano JSON
Version 1.0.1 PyPI version JSON
download
home_pageNone
SummarySymbolic normal (Wick) ordering involving bosonic ladder operators.
upload_time2025-01-06 04:48:27
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT License Copyright (c) [year] [fullname] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords boson bosonic ladder operator normal ordering wick ordering annihilation creation symbolic
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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](https://arxiv.org/abs/quant-ph/0507206) and the [journal article](https://doi.org/10.1063/1.1990120)).

#### > [`normal_ordering`](https://github.com/hendry24/pyBoLaNO/blob/main/pybolano/core/normal_ordering.py#L221)

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`](https://github.com/hendry24/pyBoLaNO/blob/main/pybolano/core/commutators.py#L35)

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`](https://github.com/hendry24/pyBoLaNO/blob/main/pybolano/core/Lindblad_ME.py#L115) 

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`](https://github.com/hendry24/boson_ladder/blob/main/boson_ladder/core/Lindblad_ME.py#L21) is called to evaluate the contribution from the Hamiltonian, while [`dissipator_trace`](https://github.com/hendry24/boson_ladder/blob/main/boson_ladder/core/Lindblad_ME.py#L64) 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](https://github.com/hendry24/pyBoLaNO/blob/main/tutorial.ipynb) that will take you there. The notebook includes examples of use alongside a more detailed explanation of the way the package works.

---

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pybolano",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "boson, bosonic, ladder, operator, normal ordering, Wick ordering, annihilation, creation, symbolic",
    "author": null,
    "author_email": "Hendry Minfui Lim <hendry01@ui.ac.id>",
    "download_url": "https://files.pythonhosted.org/packages/1e/bb/1ca3e93ee8cea98f794a9a8b84ed45d7abcb8891046aff595554ac1af007/pybolano-1.0.1.tar.gz",
    "platform": null,
    "description": "The core working principle of `pyBoLaNO` is simple&mdash;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](https://arxiv.org/abs/quant-ph/0507206) and the [journal article](https://doi.org/10.1063/1.1990120)).\n\n#### > [`normal_ordering`](https://github.com/hendry24/pyBoLaNO/blob/main/pybolano/core/normal_ordering.py#L221)\n\nallows 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.\n\n#### > [`NO_commutator`](https://github.com/hendry24/pyBoLaNO/blob/main/pybolano/core/commutators.py#L35)\n\nallows the user to evaluate the any commutation relation of two polynomials of bosonic ladder operators.\nIt is just a shorthand to save you the time of typing `normal_ordering(A*B-B*A)`.\n\n#### > [`LME_expval_evo`](https://github.com/hendry24/pyBoLaNO/blob/main/pybolano/core/Lindblad_ME.py#L115) \n\nallows 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.\n\nInside `LME_expval_evo`, the function [`Hamiltonian_trace`](https://github.com/hendry24/boson_ladder/blob/main/boson_ladder/core/Lindblad_ME.py#L21) is called to evaluate the contribution from the Hamiltonian, while [`dissipator_trace`](https://github.com/hendry24/boson_ladder/blob/main/boson_ladder/core/Lindblad_ME.py#L64) is called to evaluate the contribution from each dissipator term indexed $j$ above. These functions are available for the user to call, as well.\n\n---\n\n### **A quick guide**\n\nWe provide a quick tutorial of this package, in the file `tutorial.ipynb` in the repository tree. Here is a quick [link](https://github.com/hendry24/pyBoLaNO/blob/main/tutorial.ipynb) that will take you there. The notebook includes examples of use alongside a more detailed explanation of the way the package works.\n\n---\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) [year] [fullname]  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "Symbolic normal (Wick) ordering involving bosonic ladder operators.",
    "version": "1.0.1",
    "project_urls": {
        "Issues": "https://github.com/hendry24/pyBoLaNO/issues",
        "Repository": "https://github.com/hendry24/pyBoLaNO",
        "Tutorial": "https://github.com/hendry24/pyBoLaNO/blob/main/tutorial.ipynb"
    },
    "split_keywords": [
        "boson",
        " bosonic",
        " ladder",
        " operator",
        " normal ordering",
        " wick ordering",
        " annihilation",
        " creation",
        " symbolic"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "682d46212417e3e1bea2f458d994b905940f31baff79c424c194192a8b675a12",
                "md5": "1251a9ee833b1868392724a88b47f2c3",
                "sha256": "460303aa390934163b1007e84162b8962a99c9deb4976cf4fabe10ee902c4e24"
            },
            "downloads": -1,
            "filename": "pybolano-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1251a9ee833b1868392724a88b47f2c3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 13238,
            "upload_time": "2025-01-06T04:48:26",
            "upload_time_iso_8601": "2025-01-06T04:48:26.188805Z",
            "url": "https://files.pythonhosted.org/packages/68/2d/46212417e3e1bea2f458d994b905940f31baff79c424c194192a8b675a12/pybolano-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1ebb1ca3e93ee8cea98f794a9a8b84ed45d7abcb8891046aff595554ac1af007",
                "md5": "955a725c0267f21fed656742e0bb5a8c",
                "sha256": "068e880f5dd2d0cfb3010f2a5be2fd31e4b56443bd5e78bcb26df4cc8d766c8f"
            },
            "downloads": -1,
            "filename": "pybolano-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "955a725c0267f21fed656742e0bb5a8c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 12861,
            "upload_time": "2025-01-06T04:48:27",
            "upload_time_iso_8601": "2025-01-06T04:48:27.617463Z",
            "url": "https://files.pythonhosted.org/packages/1e/bb/1ca3e93ee8cea98f794a9a8b84ed45d7abcb8891046aff595554ac1af007/pybolano-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-06 04:48:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hendry24",
    "github_project": "pyBoLaNO",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pybolano"
}
        
Elapsed time: 0.41937s