bosonic


Namebosonic JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/EQuS/bosonic
SummaryBosonic JAX
upload_time2024-05-27 05:03:16
maintainerNone
docs_urlNone
authorShantanu Jha, Shoumik Chowdhury, Max Hays
requires_python>=3.7
licenseApache 2.0
keywords bosonic jax qubits cqed qec gkp quantum error correction
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center">
    <img src="https://github.com/EQuS/bosonic/raw/main/docs/assets/logo_sq.png" height="120" alt="bosonic logo">
</h1>


[![License](https://img.shields.io/github/license/EQuS/bosonic.svg?style=popout-square)](https://opensource.org/license/apache-2-0) [![](https://img.shields.io/github/release/EQuS/bosonic.svg?style=popout-square)](https://github.com/EQuS/bosonic/releases) [![](https://img.shields.io/pypi/dm/bosonic.svg?style=popout-square)](https://pypi.org/project/bosonic/)

[S. R. Jha](https://github.com/Phionx), [S. Chowdhury](https://github.com/shoumikdc), [M. Hays](https://scholar.google.com/citations?user=06z0MjwAAAAJ), [J. A. Grover](https://scholar.google.com/citations?user=igewch8AAAAJ), [W. D. Oliver](https://scholar.google.com/citations?user=4vNbnqcAAAAJ&hl=en)

**Docs:** [https://equs.github.io/bosonic](https://equs.github.io/bosonic)

We present `bosonic` as a framework with which to simulate quantum circuits built using bosonic quantum-error-correctable code qubits, such as the Gottesman, Kitaev and Preskill (GKP) code. As such, we build `bosonic` on top of `JAX` to enable the auto differentiable and (CPU, GPU, TPU) accelerated unitary and hamiltonian simulation of these quantum circuits under experimentally realistic noise and dissipation.


## Installation

`bosonic` is published on PyPI. So, to install the latest version from PyPI, simply run the following code to install the package:

```bash
pip install bosonic
```

For more details, please visit the getting started > installation section of our [docs](https://equs.github.io/bosonic/getting_started/installation.html).


## An Example

Here's an example on how to use `bosonic`:

```python
from bosonic import BosonicRegister, GKPQubit, Qubit, BosonicCircuit, PhaseRotationGate, CDGate, execute
import jax.numpy as jnp

breg = BosonicRegister([GKPQubit(),Qubit()]) # [q0,q1]
bcirc = BosonicCircuit(breg)

bcirc.x(1) # add an X Gate on q1
bcirc.add(PhaseRotationGate, 0, {"phi": jnp.pi/4}) 
bcirc.add(CDGate, (0,1), {"beta": 1}) # q0 is the control

results = execute(bcirc, "unitary_jax")
results.plot(bcirc, 0)
results.plot(bcirc, 1)
```

## Acknowledgements & History

**Core Devs:** [Shantanu A. Jha](https://github.com/Phionx), [Shoumik Chowdhury](https://github.com/shoumikdc)


This package was initially developed without JAX in the fall of 2021. Then, `bosonic` was rebuilt on JAX in early 2022. This package was briefly announced to the world at APS March Meeting 2023 and released to a select few academic groups shortly after. Since then, this package has been open sourced and developed while conducting research in the Engineering Quantum Systems Group at MIT with invaluable advice from [Prof. William D. Oliver](https://equs.mit.edu/william-d-oliver/). 

## Citation

Thank you for taking the time to try our package out. If you found it useful in your research, please cite us as follows:

```bibtex
@software{jha2024jaxquantum,
  author = {Shantanu R. Jha and Shoumik Chowdhury and Max Hays and Jeff A. Grover and William D. Oliver},
  title  = {An auto differentiable and hardware accelerated software toolkit for quantum circuit design, simulation and control},
  url    = {https://github.com/EQuS/jaxquantum, https://github.com/EQuS/bosonic, https://github.com/EQuS/qcsys},
  version = {0.1.0},
  year   = {2024},
}
```
> S. R. Jha, S. Chowdhury, M. Hays, J. A. Grover, W. D. Oliver. An auto differentiable and hardware accelerated software toolkit for quantum circuit design, simulation and control (2024), in preparation.


## Contributions & Contact

This package is open source and, as such, very open to contributions. Please don't hesitate to open an issue, report a bug, request a feature, or create a pull request. We are also open to deeper collaborations to create a tool that is more useful for everyone. If a discussion would be helpful, please email [shanjha@mit.edu](mailto:shanjha@mit.edu) to set up a meeting. 

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/EQuS/bosonic",
    "name": "bosonic",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "bosonic jax qubits cQED QEC GKP quantum error correction",
    "author": "Shantanu Jha, Shoumik Chowdhury, Max Hays",
    "author_email": "shantanu.rajesh.jha@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/69/17/a570c8f9f44c77f0ac71b5052ab3f123c784a216dc1703c05c54a545d2d8/bosonic-0.1.1.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\">\n    <img src=\"https://github.com/EQuS/bosonic/raw/main/docs/assets/logo_sq.png\" height=\"120\" alt=\"bosonic logo\">\n</h1>\n\n\n[![License](https://img.shields.io/github/license/EQuS/bosonic.svg?style=popout-square)](https://opensource.org/license/apache-2-0) [![](https://img.shields.io/github/release/EQuS/bosonic.svg?style=popout-square)](https://github.com/EQuS/bosonic/releases) [![](https://img.shields.io/pypi/dm/bosonic.svg?style=popout-square)](https://pypi.org/project/bosonic/)\n\n[S. R. Jha](https://github.com/Phionx), [S. Chowdhury](https://github.com/shoumikdc), [M. Hays](https://scholar.google.com/citations?user=06z0MjwAAAAJ), [J. A. Grover](https://scholar.google.com/citations?user=igewch8AAAAJ), [W. D. Oliver](https://scholar.google.com/citations?user=4vNbnqcAAAAJ&hl=en)\n\n**Docs:** [https://equs.github.io/bosonic](https://equs.github.io/bosonic)\n\nWe present `bosonic` as a framework with which to simulate quantum circuits built using bosonic quantum-error-correctable code qubits, such as the Gottesman, Kitaev and Preskill (GKP) code. As such, we build `bosonic` on top of `JAX` to enable the auto differentiable and (CPU, GPU, TPU) accelerated unitary and hamiltonian simulation of these quantum circuits under experimentally realistic noise and dissipation.\n\n\n## Installation\n\n`bosonic` is published on PyPI. So, to install the latest version from PyPI, simply run the following code to install the package:\n\n```bash\npip install bosonic\n```\n\nFor more details, please visit the getting started > installation section of our [docs](https://equs.github.io/bosonic/getting_started/installation.html).\n\n\n## An Example\n\nHere's an example on how to use `bosonic`:\n\n```python\nfrom bosonic import BosonicRegister, GKPQubit, Qubit, BosonicCircuit, PhaseRotationGate, CDGate, execute\nimport jax.numpy as jnp\n\nbreg = BosonicRegister([GKPQubit(),Qubit()]) # [q0,q1]\nbcirc = BosonicCircuit(breg)\n\nbcirc.x(1) # add an X Gate on q1\nbcirc.add(PhaseRotationGate, 0, {\"phi\": jnp.pi/4}) \nbcirc.add(CDGate, (0,1), {\"beta\": 1}) # q0 is the control\n\nresults = execute(bcirc, \"unitary_jax\")\nresults.plot(bcirc, 0)\nresults.plot(bcirc, 1)\n```\n\n## Acknowledgements & History\n\n**Core Devs:** [Shantanu A. Jha](https://github.com/Phionx), [Shoumik Chowdhury](https://github.com/shoumikdc)\n\n\nThis package was initially developed without JAX in the fall of 2021. Then, `bosonic` was rebuilt on JAX in early 2022. This package was briefly announced to the world at APS March Meeting 2023 and released to a select few academic groups shortly after. Since then, this package has been open sourced and developed while conducting research in the Engineering Quantum Systems Group at MIT with invaluable advice from [Prof. William D. Oliver](https://equs.mit.edu/william-d-oliver/). \n\n## Citation\n\nThank you for taking the time to try our package out. If you found it useful in your research, please cite us as follows:\n\n```bibtex\n@software{jha2024jaxquantum,\n  author = {Shantanu R. Jha and Shoumik Chowdhury and Max Hays and Jeff A. Grover and William D. Oliver},\n  title  = {An auto differentiable and hardware accelerated software toolkit for quantum circuit design, simulation and control},\n  url    = {https://github.com/EQuS/jaxquantum, https://github.com/EQuS/bosonic, https://github.com/EQuS/qcsys},\n  version = {0.1.0},\n  year   = {2024},\n}\n```\n> S. R. Jha, S. Chowdhury, M. Hays, J. A. Grover, W. D. Oliver. An auto differentiable and hardware accelerated software toolkit for quantum circuit design, simulation and control (2024), in preparation.\n\n\n## Contributions & Contact\n\nThis package is open source and, as such, very open to contributions. Please don't hesitate to open an issue, report a bug, request a feature, or create a pull request. We are also open to deeper collaborations to create a tool that is more useful for everyone. If a discussion would be helpful, please email [shanjha@mit.edu](mailto:shanjha@mit.edu) to set up a meeting. \n",
    "bugtrack_url": null,
    "license": "Apache 2.0",
    "summary": "Bosonic JAX",
    "version": "0.1.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/EQuS/bosonic/issues",
        "Documentation": "https://equs.github.io/bosonic",
        "Homepage": "https://github.com/EQuS/bosonic",
        "Source Code": "https://github.com/EQuS/bosonic",
        "Tests": "https://github.com/EQuS/bosonic/test",
        "Tutorials": "https://github.com/EQuS/bosonic/tutorials"
    },
    "split_keywords": [
        "bosonic",
        "jax",
        "qubits",
        "cqed",
        "qec",
        "gkp",
        "quantum",
        "error",
        "correction"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6917a570c8f9f44c77f0ac71b5052ab3f123c784a216dc1703c05c54a545d2d8",
                "md5": "4dca755dcea3bcf4eacb38fdd37d6b22",
                "sha256": "a5a5db8708ff21b24ae3934a4476bcca1bbbf4af2e7102796d58e65d77cde19f"
            },
            "downloads": -1,
            "filename": "bosonic-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "4dca755dcea3bcf4eacb38fdd37d6b22",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 35584,
            "upload_time": "2024-05-27T05:03:16",
            "upload_time_iso_8601": "2024-05-27T05:03:16.283888Z",
            "url": "https://files.pythonhosted.org/packages/69/17/a570c8f9f44c77f0ac71b5052ab3f123c784a216dc1703c05c54a545d2d8/bosonic-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-27 05:03:16",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "EQuS",
    "github_project": "bosonic",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "bosonic"
}
        
Elapsed time: 0.25001s