waveforms


Namewaveforms JSON
Version 1.9.4 PyPI version JSON
download
home_page
SummaryEdit waveforms used in experiment
upload_time2024-03-14 09:24:23
maintainer
docs_urlNone
author
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": "",
    "name": "waveforms",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "feihoo87 <feihoo87@gmail.com>",
    "keywords": "signal,waveform,experiment,laboratory",
    "author": "",
    "author_email": "feihoo87 <feihoo87@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/ce/a8/935d70c5f54f243b28683c018ef9db4ba1d26fda6fee34d9bbc918ed5aac/waveforms-1.9.4.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": "1.9.4",
    "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": "3c1f2e7951187e2723981d75a3a101289893887e107a260477879d7b91db9133",
                "md5": "b868b23617a7ff47d9aeb5da79737998",
                "sha256": "db5c62d7d9c47d93103e4876d9764b3aee9e21243f8225a23d3715b60e3f6ade"
            },
            "downloads": -1,
            "filename": "waveforms-1.9.4-cp310-cp310-macosx_11_0_x86_64.whl",
            "has_sig": false,
            "md5_digest": "b868b23617a7ff47d9aeb5da79737998",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 329157,
            "upload_time": "2024-03-14T09:24:51",
            "upload_time_iso_8601": "2024-03-14T09:24:51.727400Z",
            "url": "https://files.pythonhosted.org/packages/3c/1f/2e7951187e2723981d75a3a101289893887e107a260477879d7b91db9133/waveforms-1.9.4-cp310-cp310-macosx_11_0_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "db042ce48f653a3aa46a8be71bf711f4853af857855d7e86e9c3830fd498e170",
                "md5": "64b3d4872b0e4ccb7519672f32c57593",
                "sha256": "b855fd2f226b1e0e94a37b2f6a7f9bad9322b4a11e150ff6910978efcfaa1599"
            },
            "downloads": -1,
            "filename": "waveforms-1.9.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "64b3d4872b0e4ccb7519672f32c57593",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 1202762,
            "upload_time": "2024-03-14T09:24:21",
            "upload_time_iso_8601": "2024-03-14T09:24:21.227703Z",
            "url": "https://files.pythonhosted.org/packages/db/04/2ce48f653a3aa46a8be71bf711f4853af857855d7e86e9c3830fd498e170/waveforms-1.9.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7b7eb76840607fc5f6497c8821fbf8537567f2ca1c316862790aaba34f9af664",
                "md5": "967f05fada32001196105a29d388394c",
                "sha256": "d745b9ab1c1d1115e6ec12818e60ad1577d1962dff0e732c042c4c4a7bcd5df6"
            },
            "downloads": -1,
            "filename": "waveforms-1.9.4-cp310-cp310-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "967f05fada32001196105a29d388394c",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 273546,
            "upload_time": "2024-03-14T09:25:49",
            "upload_time_iso_8601": "2024-03-14T09:25:49.542168Z",
            "url": "https://files.pythonhosted.org/packages/7b/7e/b76840607fc5f6497c8821fbf8537567f2ca1c316862790aaba34f9af664/waveforms-1.9.4-cp310-cp310-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "732aa101c875fa607cc2945a7070f0ff35576a43ef8eb3dab4971f137c8c114d",
                "md5": "7c6e80ab9b1bbac32095ff4220e14da7",
                "sha256": "87d1d4fd9476d0db26bcb467ee770eee3a509c0b611d14919ce8290ed5698b8f"
            },
            "downloads": -1,
            "filename": "waveforms-1.9.4-cp311-cp311-macosx_10_9_universal2.whl",
            "has_sig": false,
            "md5_digest": "7c6e80ab9b1bbac32095ff4220e14da7",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.10",
            "size": 502222,
            "upload_time": "2024-03-14T09:24:54",
            "upload_time_iso_8601": "2024-03-14T09:24:54.928940Z",
            "url": "https://files.pythonhosted.org/packages/73/2a/a101c875fa607cc2945a7070f0ff35576a43ef8eb3dab4971f137c8c114d/waveforms-1.9.4-cp311-cp311-macosx_10_9_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "eff15d9a91ba8e85c950d0ee63ce8eba24942865bf1f2364090eef0dafa9ec54",
                "md5": "5820dacbd7df62dcdb12016b6c91193b",
                "sha256": "73c4f8b093efe6f4f0a4fa1977eb943f21e78a65dd10c28ad9141f59f4b7ab23"
            },
            "downloads": -1,
            "filename": "waveforms-1.9.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "5820dacbd7df62dcdb12016b6c91193b",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.10",
            "size": 1358529,
            "upload_time": "2024-03-14T09:24:27",
            "upload_time_iso_8601": "2024-03-14T09:24:27.306942Z",
            "url": "https://files.pythonhosted.org/packages/ef/f1/5d9a91ba8e85c950d0ee63ce8eba24942865bf1f2364090eef0dafa9ec54/waveforms-1.9.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2d2b7d5fafca901c0f8b48bfa62235e9b8579f3492fc026e1dd543f4a27654f3",
                "md5": "5850a42644cbb508c2b1847ef8090fef",
                "sha256": "48b47b4c3bee3a4f9edc9cf0ef4222f93d7b0f3e24a6349e65cc7a7b2be71e36"
            },
            "downloads": -1,
            "filename": "waveforms-1.9.4-cp311-cp311-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "5850a42644cbb508c2b1847ef8090fef",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.10",
            "size": 274005,
            "upload_time": "2024-03-14T09:25:59",
            "upload_time_iso_8601": "2024-03-14T09:25:59.199058Z",
            "url": "https://files.pythonhosted.org/packages/2d/2b/7d5fafca901c0f8b48bfa62235e9b8579f3492fc026e1dd543f4a27654f3/waveforms-1.9.4-cp311-cp311-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2e17639d2c74705dc87533cf5ebb572d086331c744a5f1386561cce3cf133914",
                "md5": "f52acdf0c6af0cb9850db53cc6a588a4",
                "sha256": "f00c290fe4be3cd9ac31ab281738c14ad587a051cc21c6e031f5b3ccf38d4421"
            },
            "downloads": -1,
            "filename": "waveforms-1.9.4-cp312-cp312-macosx_10_9_universal2.whl",
            "has_sig": false,
            "md5_digest": "f52acdf0c6af0cb9850db53cc6a588a4",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.10",
            "size": 471564,
            "upload_time": "2024-03-14T09:25:07",
            "upload_time_iso_8601": "2024-03-14T09:25:07.104474Z",
            "url": "https://files.pythonhosted.org/packages/2e/17/639d2c74705dc87533cf5ebb572d086331c744a5f1386561cce3cf133914/waveforms-1.9.4-cp312-cp312-macosx_10_9_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d3a8f2adac37c0feae22ecc81b8d4016a6583e947a687037d4dbe39b51893826",
                "md5": "235a7c926cef340ff650695104fa25b6",
                "sha256": "b6f7ffce54e89515b50bd927c48cd8e41d4b03d5d71abe97aa303fdf5baf8a51"
            },
            "downloads": -1,
            "filename": "waveforms-1.9.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "235a7c926cef340ff650695104fa25b6",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.10",
            "size": 1303700,
            "upload_time": "2024-03-14T09:24:30",
            "upload_time_iso_8601": "2024-03-14T09:24:30.922475Z",
            "url": "https://files.pythonhosted.org/packages/d3/a8/f2adac37c0feae22ecc81b8d4016a6583e947a687037d4dbe39b51893826/waveforms-1.9.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1b3bfe24518d9c6f52f0fbd121b17ffa5607ade2d26e9fd8c42bd3685843a46d",
                "md5": "ad86122e12d14fba0f5af57bb3e5d9b8",
                "sha256": "4b8f9a23bdf8ac7c601366ca781c91d4293fa5c2d2b2ef2eef358cc713a14588"
            },
            "downloads": -1,
            "filename": "waveforms-1.9.4-cp312-cp312-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "ad86122e12d14fba0f5af57bb3e5d9b8",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.10",
            "size": 262884,
            "upload_time": "2024-03-14T09:26:32",
            "upload_time_iso_8601": "2024-03-14T09:26:32.343729Z",
            "url": "https://files.pythonhosted.org/packages/1b/3b/fe24518d9c6f52f0fbd121b17ffa5607ade2d26e9fd8c42bd3685843a46d/waveforms-1.9.4-cp312-cp312-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cea8935d70c5f54f243b28683c018ef9db4ba1d26fda6fee34d9bbc918ed5aac",
                "md5": "4b797cba804d814bd95e1e29fb8dca86",
                "sha256": "7e2b41d7b235e6241200e67e957b73671ff4c31560ad937ce3ad95390943e6dc"
            },
            "downloads": -1,
            "filename": "waveforms-1.9.4.tar.gz",
            "has_sig": false,
            "md5_digest": "4b797cba804d814bd95e1e29fb8dca86",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 132497,
            "upload_time": "2024-03-14T09:24:23",
            "upload_time_iso_8601": "2024-03-14T09:24:23.339165Z",
            "url": "https://files.pythonhosted.org/packages/ce/a8/935d70c5f54f243b28683c018ef9db4ba1d26fda6fee34d9bbc918ed5aac/waveforms-1.9.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-14 09:24:23",
    "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: 2.88757s