waveforms


Namewaveforms JSON
Version 2.0.1 PyPI version JSON
download
home_pageNone
SummaryEdit waveforms used in experiment
upload_time2025-01-21 05:19:44
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseMIT License
keywords signal waveform experiment laboratory
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # waveforms
[![View build status](https://github.com/feihoo87/waveforms/actions/workflows/workflow.yml/badge.svg)](https://github.com/feihoo87/waveforms/)
[![Coverage Status](https://coveralls.io/repos/github/feihoo87/waveforms/badge.svg?branch=master)](https://coveralls.io/github/feihoo87/waveforms?branch=master)
[![PyPI version](https://badge.fury.io/py/waveforms.svg)](https://pypi.org/project/waveforms/)

Form waveforms used in experiment.

## Installation
We encourage installing waveforms via the pip tool (a python package manager):
```bash
python -m pip install waveforms
```

To install from the latest source, you need to clone the GitHub repository on your machine.
```bash
git clone https://github.com/feihoo87/waveforms.git
```

Then dependencies and `waveforms` can be installed in this way:
```bash
cd waveforms
python -m pip install numpy
python -m pip install -e .
```

## Usage
```python
import numpy as np
import matplotlib.pyplot as plt

from waveforms import *

pulse = cosPulse(20e-9)

x_wav = zero()
y_wav = zero()

I, Q = mixing(0.5*pulse, freq=-20e6, DRAGScaling=0.2)
x_wav += I
y_wav += Q

I, Q = mixing(pulse >> 1e-6, freq=-20e6, phase=np.pi/2, DRAGScaling=0.2)
x_wav += I
y_wav += Q

I, Q = mixing((0.5 * pulse) >> 2e-6, freq=-20e6, DRAGScaling=0.2)
x_wav += I
y_wav += Q


t = np.linspace(-1e-6, 9e-6, 10001)
plt.plot(t, x_wav(t))
plt.plot(t, y_wav(t))
plt.show()
```

## Reporting Issues
Please report all issues [on github](https://github.com/feihoo87/waveforms/issues).

## License

[MIT](https://opensource.org/licenses/MIT)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "waveforms",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "feihoo87 <feihoo87@gmail.com>",
    "keywords": "signal, waveform, experiment, laboratory",
    "author": null,
    "author_email": "feihoo87 <feihoo87@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/e2/fd/49a212f1ba94c63e0fe827053c3a4984f0058c1659c64d4f71d934d28acd/waveforms-2.0.1.tar.gz",
    "platform": null,
    "description": "# waveforms\n[![View build status](https://github.com/feihoo87/waveforms/actions/workflows/workflow.yml/badge.svg)](https://github.com/feihoo87/waveforms/)\n[![Coverage Status](https://coveralls.io/repos/github/feihoo87/waveforms/badge.svg?branch=master)](https://coveralls.io/github/feihoo87/waveforms?branch=master)\n[![PyPI version](https://badge.fury.io/py/waveforms.svg)](https://pypi.org/project/waveforms/)\n\nForm waveforms used in experiment.\n\n## Installation\nWe encourage installing waveforms via the pip tool (a python package manager):\n```bash\npython -m pip install waveforms\n```\n\nTo install from the latest source, you need to clone the GitHub repository on your machine.\n```bash\ngit clone https://github.com/feihoo87/waveforms.git\n```\n\nThen dependencies and `waveforms` can be installed in this way:\n```bash\ncd waveforms\npython -m pip install numpy\npython -m pip install -e .\n```\n\n## Usage\n```python\nimport numpy as np\nimport matplotlib.pyplot as plt\n\nfrom waveforms import *\n\npulse = cosPulse(20e-9)\n\nx_wav = zero()\ny_wav = zero()\n\nI, Q = mixing(0.5*pulse, freq=-20e6, DRAGScaling=0.2)\nx_wav += I\ny_wav += Q\n\nI, Q = mixing(pulse >> 1e-6, freq=-20e6, phase=np.pi/2, DRAGScaling=0.2)\nx_wav += I\ny_wav += Q\n\nI, Q = mixing((0.5 * pulse) >> 2e-6, freq=-20e6, DRAGScaling=0.2)\nx_wav += I\ny_wav += Q\n\n\nt = np.linspace(-1e-6, 9e-6, 10001)\nplt.plot(t, x_wav(t))\nplt.plot(t, y_wav(t))\nplt.show()\n```\n\n## Reporting Issues\nPlease report all issues [on github](https://github.com/feihoo87/waveforms/issues).\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT)\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Edit waveforms used in experiment",
    "version": "2.0.1",
    "project_urls": {
        "Bug Reports": "https://github.com/feihoo87/waveforms/issues",
        "Homepage": "https://github.com/feihoo87/waveforms",
        "Source": "https://github.com/feihoo87/waveforms/"
    },
    "split_keywords": [
        "signal",
        " waveform",
        " experiment",
        " laboratory"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "954df7a799a52a8be4dfbe329f00c526514da08feb0fc4f700e61362ef702c6f",
                "md5": "975988662f5eab34d95c630b85acdc91",
                "sha256": "1ea553d3df0d38582af7ef25bf4e36b6ce778a84da32d4d11fbb777ae2fcf12c"
            },
            "downloads": -1,
            "filename": "waveforms-2.0.1-cp310-cp310-macosx_10_9_universal2.whl",
            "has_sig": false,
            "md5_digest": "975988662f5eab34d95c630b85acdc91",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 330855,
            "upload_time": "2025-01-21T05:19:52",
            "upload_time_iso_8601": "2025-01-21T05:19:52.404786Z",
            "url": "https://files.pythonhosted.org/packages/95/4d/f7a799a52a8be4dfbe329f00c526514da08feb0fc4f700e61362ef702c6f/waveforms-2.0.1-cp310-cp310-macosx_10_9_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0f3761d0127b8bf9d91ffbf5a5cc228d55184278dece0a9d88a2924407b93d26",
                "md5": "349ccb4ad744625977855d7b76d84c76",
                "sha256": "cc2796351511910923ffe2d4ab6156879cbc3581aeb32e6452e3c7ec41a224cf"
            },
            "downloads": -1,
            "filename": "waveforms-2.0.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "349ccb4ad744625977855d7b76d84c76",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 1147844,
            "upload_time": "2025-01-21T05:19:54",
            "upload_time_iso_8601": "2025-01-21T05:19:54.661735Z",
            "url": "https://files.pythonhosted.org/packages/0f/37/61d0127b8bf9d91ffbf5a5cc228d55184278dece0a9d88a2924407b93d26/waveforms-2.0.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f0db526ef571ecd5d9daf21b8c9f524b347e61f797bf8b4fb3e5fa0a2d6d1c9f",
                "md5": "b6fb2cf4d3b4cbaf0fd3ca26be6226da",
                "sha256": "c6623866a1d6c3885096fff38257a885d9913e6d619b8b2a0315325d880133bd"
            },
            "downloads": -1,
            "filename": "waveforms-2.0.1-cp310-cp310-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "b6fb2cf4d3b4cbaf0fd3ca26be6226da",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 160087,
            "upload_time": "2025-01-21T05:21:23",
            "upload_time_iso_8601": "2025-01-21T05:21:23.515484Z",
            "url": "https://files.pythonhosted.org/packages/f0/db/526ef571ecd5d9daf21b8c9f524b347e61f797bf8b4fb3e5fa0a2d6d1c9f/waveforms-2.0.1-cp310-cp310-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "756446c744a226dd4fd49568b33c4c225c40f0156c81aab79a5bd7fa4ba23381",
                "md5": "a1ab16fa9e1062b60042266f6c5bedad",
                "sha256": "fd0df0bef28cc6d3e9ec16283ca6e5d2c521de79ba7656976d40781dcdbcda9f"
            },
            "downloads": -1,
            "filename": "waveforms-2.0.1-cp311-cp311-macosx_10_9_universal2.whl",
            "has_sig": false,
            "md5_digest": "a1ab16fa9e1062b60042266f6c5bedad",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.10",
            "size": 333619,
            "upload_time": "2025-01-21T05:19:41",
            "upload_time_iso_8601": "2025-01-21T05:19:41.832778Z",
            "url": "https://files.pythonhosted.org/packages/75/64/46c744a226dd4fd49568b33c4c225c40f0156c81aab79a5bd7fa4ba23381/waveforms-2.0.1-cp311-cp311-macosx_10_9_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a290f9e3e1e240a69b57def63c28242cb0fece76de443d6ac8b4e431ce936923",
                "md5": "174688a6f3fa68af6840a34f0b3c1176",
                "sha256": "1fb72168b4afc3b0d58f82afda74fdc39a7c2b39fcd03df69d912d4f9394c924"
            },
            "downloads": -1,
            "filename": "waveforms-2.0.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "174688a6f3fa68af6840a34f0b3c1176",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.10",
            "size": 1297643,
            "upload_time": "2025-01-21T05:19:55",
            "upload_time_iso_8601": "2025-01-21T05:19:55.391284Z",
            "url": "https://files.pythonhosted.org/packages/a2/90/f9e3e1e240a69b57def63c28242cb0fece76de443d6ac8b4e431ce936923/waveforms-2.0.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9a978c320e5a561702cc7941ec09f6817e7761365da89efa167d54b13eb38338",
                "md5": "32961aa71e4e99e506bb674e4ee0cea7",
                "sha256": "58ccbcbd1047608661a05e8394dc2d55ee84c44ecc99da234e8e24992bd7eda5"
            },
            "downloads": -1,
            "filename": "waveforms-2.0.1-cp311-cp311-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "32961aa71e4e99e506bb674e4ee0cea7",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.10",
            "size": 160370,
            "upload_time": "2025-01-21T05:21:24",
            "upload_time_iso_8601": "2025-01-21T05:21:24.101922Z",
            "url": "https://files.pythonhosted.org/packages/9a/97/8c320e5a561702cc7941ec09f6817e7761365da89efa167d54b13eb38338/waveforms-2.0.1-cp311-cp311-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ca8133f81ffc04c51075ff26677e2f4b31f13be53e6293df9d04a869bddec403",
                "md5": "84ed502b1ce14348fc6639af2233c6ac",
                "sha256": "9858df8f97942094fda6a77b551d2444f9892680bfc4441a316464c6b3dcd613"
            },
            "downloads": -1,
            "filename": "waveforms-2.0.1-cp312-cp312-macosx_10_13_universal2.whl",
            "has_sig": false,
            "md5_digest": "84ed502b1ce14348fc6639af2233c6ac",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.10",
            "size": 326229,
            "upload_time": "2025-01-21T05:20:07",
            "upload_time_iso_8601": "2025-01-21T05:20:07.720736Z",
            "url": "https://files.pythonhosted.org/packages/ca/81/33f81ffc04c51075ff26677e2f4b31f13be53e6293df9d04a869bddec403/waveforms-2.0.1-cp312-cp312-macosx_10_13_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5f1a75a0e38d342cc3698b0e7dae94d29e57335eaa187310d9a4e2ddf80a1026",
                "md5": "0e616c99735da1686d6d3966ab505936",
                "sha256": "958a16ff93cec8a1684b5269c1d998ec699f8752a6a32ab7e6f8f570d52b2090"
            },
            "downloads": -1,
            "filename": "waveforms-2.0.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "0e616c99735da1686d6d3966ab505936",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.10",
            "size": 1208643,
            "upload_time": "2025-01-21T05:19:55",
            "upload_time_iso_8601": "2025-01-21T05:19:55.797996Z",
            "url": "https://files.pythonhosted.org/packages/5f/1a/75a0e38d342cc3698b0e7dae94d29e57335eaa187310d9a4e2ddf80a1026/waveforms-2.0.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d33adec628b0344341a21dbf1721a5f04d76a5118425ea79bb611273acee8cb7",
                "md5": "21e6464733eecbc2a757a537ee26565c",
                "sha256": "7b35fa7b21c7c2c0db60c6af073adf13811cb58544c42852289631a9b24bcb57"
            },
            "downloads": -1,
            "filename": "waveforms-2.0.1-cp312-cp312-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "21e6464733eecbc2a757a537ee26565c",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.10",
            "size": 148075,
            "upload_time": "2025-01-21T05:21:33",
            "upload_time_iso_8601": "2025-01-21T05:21:33.518526Z",
            "url": "https://files.pythonhosted.org/packages/d3/3a/dec628b0344341a21dbf1721a5f04d76a5118425ea79bb611273acee8cb7/waveforms-2.0.1-cp312-cp312-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e2fd49a212f1ba94c63e0fe827053c3a4984f0058c1659c64d4f71d934d28acd",
                "md5": "c0fcdb2a77148124bc0e4e3102969f4c",
                "sha256": "812efd950e42de00df8c850af60a50b084cd55f529d6831ed6a61331932efcb2"
            },
            "downloads": -1,
            "filename": "waveforms-2.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "c0fcdb2a77148124bc0e4e3102969f4c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 27782,
            "upload_time": "2025-01-21T05:19:44",
            "upload_time_iso_8601": "2025-01-21T05:19:44.195946Z",
            "url": "https://files.pythonhosted.org/packages/e2/fd/49a212f1ba94c63e0fe827053c3a4984f0058c1659c64d4f71d934d28acd/waveforms-2.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-21 05:19:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "feihoo87",
    "github_project": "waveforms",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "waveforms"
}
        
Elapsed time: 0.74270s