# waveforms
[](https://github.com/feihoo87/waveforms/)
[](https://coveralls.io/github/feihoo87/waveforms?branch=master)
[](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/d2/9f/41e8765b8992ec479fffb43908b1d3e2bab085c9a8e05904047b9a7bd077/waveforms-2.2.0.tar.gz",
"platform": null,
"description": "# waveforms\n[](https://github.com/feihoo87/waveforms/)\n[](https://coveralls.io/github/feihoo87/waveforms?branch=master)\n[](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.2.0",
"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": null,
"digests": {
"blake2b_256": "0e1a96ace82d988a41c0c1ac5d5bdaddd4a81a931af9fea13b1c44536704b9ab",
"md5": "47b8cd372d88751c3f862145aa8c6b1c",
"sha256": "d4dd07f9ac9ccd3c9d0aee85f15c458044df6fcc3f373f5d0368406365b02557"
},
"downloads": -1,
"filename": "waveforms-2.2.0-cp310-cp310-macosx_10_9_universal2.whl",
"has_sig": false,
"md5_digest": "47b8cd372d88751c3f862145aa8c6b1c",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.10",
"size": 336710,
"upload_time": "2025-07-18T04:00:06",
"upload_time_iso_8601": "2025-07-18T04:00:06.800903Z",
"url": "https://files.pythonhosted.org/packages/0e/1a/96ace82d988a41c0c1ac5d5bdaddd4a81a931af9fea13b1c44536704b9ab/waveforms-2.2.0-cp310-cp310-macosx_10_9_universal2.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "1ae8bad5e4f3ed21c8726be2d86e52b398a34fe631b17b4971b66796ce29baad",
"md5": "0399923d8e9c4547968c7063cf8b840c",
"sha256": "ce97faeebe017a8204a4fb9d71326835b6b0c34765b131190bb5b886a58da0fa"
},
"downloads": -1,
"filename": "waveforms-2.2.0-cp310-cp310-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl",
"has_sig": false,
"md5_digest": "0399923d8e9c4547968c7063cf8b840c",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.10",
"size": 1306043,
"upload_time": "2025-07-18T03:59:15",
"upload_time_iso_8601": "2025-07-18T03:59:15.316472Z",
"url": "https://files.pythonhosted.org/packages/1a/e8/bad5e4f3ed21c8726be2d86e52b398a34fe631b17b4971b66796ce29baad/waveforms-2.2.0-cp310-cp310-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "e8d34fd88e07efd4fb4518783498c703c945207c79fa74cfb6b7a79a60ee94b5",
"md5": "b0973d66fc6025614971ab0c6358dece",
"sha256": "6c9fc7a3c12c964d95414c7dc237a3418b53f1d933175fbf7fc305243c2fef0c"
},
"downloads": -1,
"filename": "waveforms-2.2.0-cp310-cp310-win_amd64.whl",
"has_sig": false,
"md5_digest": "b0973d66fc6025614971ab0c6358dece",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.10",
"size": 166681,
"upload_time": "2025-07-18T03:59:58",
"upload_time_iso_8601": "2025-07-18T03:59:58.761482Z",
"url": "https://files.pythonhosted.org/packages/e8/d3/4fd88e07efd4fb4518783498c703c945207c79fa74cfb6b7a79a60ee94b5/waveforms-2.2.0-cp310-cp310-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "c4d66db9b49e2e8be46e8910d5de5245f7392bd4a043f1fec69a951b116c5e1c",
"md5": "e4d6eee433199c1dabc84495fcbeeeb7",
"sha256": "9d15132fc2bdc459c24ae4ebdb33177871b25b847d3bc4a8d2663557f99923e6"
},
"downloads": -1,
"filename": "waveforms-2.2.0-cp311-cp311-macosx_10_9_universal2.whl",
"has_sig": false,
"md5_digest": "e4d6eee433199c1dabc84495fcbeeeb7",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.10",
"size": 346449,
"upload_time": "2025-07-18T03:58:58",
"upload_time_iso_8601": "2025-07-18T03:58:58.495616Z",
"url": "https://files.pythonhosted.org/packages/c4/d6/6db9b49e2e8be46e8910d5de5245f7392bd4a043f1fec69a951b116c5e1c/waveforms-2.2.0-cp311-cp311-macosx_10_9_universal2.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "46dd74353d348980d33778521d3bdec0e185e076a980dac0bde32fe76c2432de",
"md5": "fd8c8734acfe2a44f42d4f1cd003756b",
"sha256": "b9d4066df60e63d0317aec52cba7afca128f46a9d625413856d3e694e3c5c870"
},
"downloads": -1,
"filename": "waveforms-2.2.0-cp311-cp311-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl",
"has_sig": false,
"md5_digest": "fd8c8734acfe2a44f42d4f1cd003756b",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.10",
"size": 1395580,
"upload_time": "2025-07-18T03:59:16",
"upload_time_iso_8601": "2025-07-18T03:59:16.638657Z",
"url": "https://files.pythonhosted.org/packages/46/dd/74353d348980d33778521d3bdec0e185e076a980dac0bde32fe76c2432de/waveforms-2.2.0-cp311-cp311-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "fcfe28d205249b2b8633983eac798a2c8aa6119d1f318280ddf4806f172eb2b5",
"md5": "f263ec1dbb3e872172f2dd1c146066ab",
"sha256": "ab296d8bf95e80586de26a69fba48dde1bb0069ea9570391aff4b20afb403b93"
},
"downloads": -1,
"filename": "waveforms-2.2.0-cp311-cp311-win_amd64.whl",
"has_sig": false,
"md5_digest": "f263ec1dbb3e872172f2dd1c146066ab",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.10",
"size": 167043,
"upload_time": "2025-07-18T03:59:50",
"upload_time_iso_8601": "2025-07-18T03:59:50.940175Z",
"url": "https://files.pythonhosted.org/packages/fc/fe/28d205249b2b8633983eac798a2c8aa6119d1f318280ddf4806f172eb2b5/waveforms-2.2.0-cp311-cp311-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "8d355357e3d6d636d925fbd7e68ac4e1cf104a8b9abf653014673900444ce991",
"md5": "b72b23401f0a00a835cceae895c1ece9",
"sha256": "82614313e6f813632e0314adce360c5d63aad3de247156879ea8eea75b21b13e"
},
"downloads": -1,
"filename": "waveforms-2.2.0-cp312-cp312-macosx_10_13_universal2.whl",
"has_sig": false,
"md5_digest": "b72b23401f0a00a835cceae895c1ece9",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.10",
"size": 334265,
"upload_time": "2025-07-18T03:59:53",
"upload_time_iso_8601": "2025-07-18T03:59:53.866400Z",
"url": "https://files.pythonhosted.org/packages/8d/35/5357e3d6d636d925fbd7e68ac4e1cf104a8b9abf653014673900444ce991/waveforms-2.2.0-cp312-cp312-macosx_10_13_universal2.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "00494ecb09f356358ddd54dc8adff414519cb7c9b1d4fff62fba6e72a1519cb9",
"md5": "bbd821bc8e5c9df80b00d3dfebda6311",
"sha256": "ba6c18a0cf76d79f710c8a5aa3e6d358dfa59638d3aa8fb4aa2ded916364a2ee"
},
"downloads": -1,
"filename": "waveforms-2.2.0-cp312-cp312-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl",
"has_sig": false,
"md5_digest": "bbd821bc8e5c9df80b00d3dfebda6311",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.10",
"size": 1272286,
"upload_time": "2025-07-18T03:59:20",
"upload_time_iso_8601": "2025-07-18T03:59:20.244597Z",
"url": "https://files.pythonhosted.org/packages/00/49/4ecb09f356358ddd54dc8adff414519cb7c9b1d4fff62fba6e72a1519cb9/waveforms-2.2.0-cp312-cp312-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "4f33981e6bf4b81d5bca3819c6e582e4636e63fb1131450816c3718f8e40b621",
"md5": "e92ec24149b87a6e5632c68b08ba9532",
"sha256": "92a9c4be665081c86b7ee586931d540b114f5605426684efa0e5423c67a3e9a4"
},
"downloads": -1,
"filename": "waveforms-2.2.0-cp312-cp312-win_amd64.whl",
"has_sig": false,
"md5_digest": "e92ec24149b87a6e5632c68b08ba9532",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.10",
"size": 154999,
"upload_time": "2025-07-18T04:00:23",
"upload_time_iso_8601": "2025-07-18T04:00:23.727766Z",
"url": "https://files.pythonhosted.org/packages/4f/33/981e6bf4b81d5bca3819c6e582e4636e63fb1131450816c3718f8e40b621/waveforms-2.2.0-cp312-cp312-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "ea0b1591c47a7a5fe5de25bbe0061c027a557bcf41a13b5019e798615698d76c",
"md5": "efd01d93d294a564af5ccdbed316e98d",
"sha256": "70268bc24e088c33a15b1e346e8a04cda07c1a37a5c310a5f7bef15c086d9898"
},
"downloads": -1,
"filename": "waveforms-2.2.0-cp313-cp313-macosx_10_13_universal2.whl",
"has_sig": false,
"md5_digest": "efd01d93d294a564af5ccdbed316e98d",
"packagetype": "bdist_wheel",
"python_version": "cp313",
"requires_python": ">=3.10",
"size": 331969,
"upload_time": "2025-07-18T04:00:08",
"upload_time_iso_8601": "2025-07-18T04:00:08.652738Z",
"url": "https://files.pythonhosted.org/packages/ea/0b/1591c47a7a5fe5de25bbe0061c027a557bcf41a13b5019e798615698d76c/waveforms-2.2.0-cp313-cp313-macosx_10_13_universal2.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "219adfd0e49a78b17346fc7b19aa602f2655f63cc12b2d5668b61967cd277003",
"md5": "4b9f6b3d85589ee83481163c7d9406c5",
"sha256": "9bf5d22f7885734787d5f2b83b4636c66d7bfc023ab243d4a8197013e8f2488e"
},
"downloads": -1,
"filename": "waveforms-2.2.0-cp313-cp313-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl",
"has_sig": false,
"md5_digest": "4b9f6b3d85589ee83481163c7d9406c5",
"packagetype": "bdist_wheel",
"python_version": "cp313",
"requires_python": ">=3.10",
"size": 1266070,
"upload_time": "2025-07-18T03:59:30",
"upload_time_iso_8601": "2025-07-18T03:59:30.465176Z",
"url": "https://files.pythonhosted.org/packages/21/9a/dfd0e49a78b17346fc7b19aa602f2655f63cc12b2d5668b61967cd277003/waveforms-2.2.0-cp313-cp313-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "6ebd9073d328257b4ad03b4501a74bfcb8700f7aacff67e6b89af10952443d5e",
"md5": "65d22ffeae3ee091207be2a14423c05a",
"sha256": "dc4859ed0ed2152da881ae793b69e402979c7f2dad50152b707b6b2f36bcbeb5"
},
"downloads": -1,
"filename": "waveforms-2.2.0-cp313-cp313-win_amd64.whl",
"has_sig": false,
"md5_digest": "65d22ffeae3ee091207be2a14423c05a",
"packagetype": "bdist_wheel",
"python_version": "cp313",
"requires_python": ">=3.10",
"size": 156594,
"upload_time": "2025-07-18T04:01:20",
"upload_time_iso_8601": "2025-07-18T04:01:20.306000Z",
"url": "https://files.pythonhosted.org/packages/6e/bd/9073d328257b4ad03b4501a74bfcb8700f7aacff67e6b89af10952443d5e/waveforms-2.2.0-cp313-cp313-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "d29f41e8765b8992ec479fffb43908b1d3e2bab085c9a8e05904047b9a7bd077",
"md5": "675a320df6381373db8ffd35eb3691ca",
"sha256": "ea5e8a89bd0c65ce3d2cdbd7bff7955bec42bd0eb7f61541e3362b68b99b2721"
},
"downloads": -1,
"filename": "waveforms-2.2.0.tar.gz",
"has_sig": false,
"md5_digest": "675a320df6381373db8ffd35eb3691ca",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 40618,
"upload_time": "2025-07-18T03:59:00",
"upload_time_iso_8601": "2025-07-18T03:59:00.214530Z",
"url": "https://files.pythonhosted.org/packages/d2/9f/41e8765b8992ec479fffb43908b1d3e2bab085c9a8e05904047b9a7bd077/waveforms-2.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-18 03:59:00",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "feihoo87",
"github_project": "waveforms",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "waveforms"
}