# 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/bc/c0/f12da9db9fc67a4d5f4f17e931c0db2014c6de34f4a4fc142a5a131c69a4/waveforms-2.1.1.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.1.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": null,
"digests": {
"blake2b_256": "4d9f404f679295844f280b517ac5b7de1f4414d0ead47dea47f734902f4ce2a1",
"md5": "d90770ba9866a193b7ec7c81e4ccf929",
"sha256": "ac87e23534a0eb87d0f6f2e49148456d5ef779cd7685fe66258c8d0b3ea1f197"
},
"downloads": -1,
"filename": "waveforms-2.1.1-cp310-cp310-macosx_10_9_universal2.whl",
"has_sig": false,
"md5_digest": "d90770ba9866a193b7ec7c81e4ccf929",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.10",
"size": 323868,
"upload_time": "2025-07-09T02:43:22",
"upload_time_iso_8601": "2025-07-09T02:43:22.827551Z",
"url": "https://files.pythonhosted.org/packages/4d/9f/404f679295844f280b517ac5b7de1f4414d0ead47dea47f734902f4ce2a1/waveforms-2.1.1-cp310-cp310-macosx_10_9_universal2.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "bf99cd5b2c9f1811f76f3334012de4aa348f44e67a0892e457d6a48d5877c5b3",
"md5": "8b6c609d58132ab06e6af08a38246348",
"sha256": "0228ed6b0bc4cf8544501a1c9af901b20da4f96a25bd7e31ade049f33edcf7c2"
},
"downloads": -1,
"filename": "waveforms-2.1.1-cp310-cp310-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl",
"has_sig": false,
"md5_digest": "8b6c609d58132ab06e6af08a38246348",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.10",
"size": 1246916,
"upload_time": "2025-07-09T02:43:25",
"upload_time_iso_8601": "2025-07-09T02:43:25.043597Z",
"url": "https://files.pythonhosted.org/packages/bf/99/cd5b2c9f1811f76f3334012de4aa348f44e67a0892e457d6a48d5877c5b3/waveforms-2.1.1-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": "66a4149c436fef46f13d1eb03581aa90a4473731d3c3f09aef45c6a442d4ede1",
"md5": "27965625a6d273c88c44b105c26ad62d",
"sha256": "88d7fa9776e0cb112afd1863253721795ab4a7eddc6f8c4167ba9ed5f73da0e3"
},
"downloads": -1,
"filename": "waveforms-2.1.1-cp310-cp310-win_amd64.whl",
"has_sig": false,
"md5_digest": "27965625a6d273c88c44b105c26ad62d",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.10",
"size": 160761,
"upload_time": "2025-07-09T02:45:33",
"upload_time_iso_8601": "2025-07-09T02:45:33.583492Z",
"url": "https://files.pythonhosted.org/packages/66/a4/149c436fef46f13d1eb03581aa90a4473731d3c3f09aef45c6a442d4ede1/waveforms-2.1.1-cp310-cp310-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "e86aa46cc6dab86ffa9b81630dbc19520c82d864903e6c391c0165e846f131e4",
"md5": "687e15445efe40b2eb8ed80cd1079b9c",
"sha256": "a9fdf61a7711e687141853e1f1a04c8e77974e4d302e027d13e68261c032f6ae"
},
"downloads": -1,
"filename": "waveforms-2.1.1-cp311-cp311-macosx_10_9_universal2.whl",
"has_sig": false,
"md5_digest": "687e15445efe40b2eb8ed80cd1079b9c",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.10",
"size": 333248,
"upload_time": "2025-07-09T02:43:54",
"upload_time_iso_8601": "2025-07-09T02:43:54.219437Z",
"url": "https://files.pythonhosted.org/packages/e8/6a/a46cc6dab86ffa9b81630dbc19520c82d864903e6c391c0165e846f131e4/waveforms-2.1.1-cp311-cp311-macosx_10_9_universal2.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "c196a8567978440b9b5b5c738b1ed019b2c8f7ee5ffc92acbc8f68d7ee8f4b62",
"md5": "71792b2fb8faef34f77e37a09a9db75b",
"sha256": "40077430197464e41885c766843bf83d9a5173de45cefcd331c6ef8337bba44c"
},
"downloads": -1,
"filename": "waveforms-2.1.1-cp311-cp311-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl",
"has_sig": false,
"md5_digest": "71792b2fb8faef34f77e37a09a9db75b",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.10",
"size": 1331864,
"upload_time": "2025-07-09T02:43:26",
"upload_time_iso_8601": "2025-07-09T02:43:26.087752Z",
"url": "https://files.pythonhosted.org/packages/c1/96/a8567978440b9b5b5c738b1ed019b2c8f7ee5ffc92acbc8f68d7ee8f4b62/waveforms-2.1.1-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": "3bedf761493dc00c8d5bef484d39108a242abc1914d21e3c1fa2460e025b2c09",
"md5": "a1677bc8a458011c3618155600e2e0a9",
"sha256": "1843a321c610a7b046feb192d5593ddb9927a80691b174a182cae38d86287ec1"
},
"downloads": -1,
"filename": "waveforms-2.1.1-cp311-cp311-win_amd64.whl",
"has_sig": false,
"md5_digest": "a1677bc8a458011c3618155600e2e0a9",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.10",
"size": 161038,
"upload_time": "2025-07-09T02:44:28",
"upload_time_iso_8601": "2025-07-09T02:44:28.615119Z",
"url": "https://files.pythonhosted.org/packages/3b/ed/f761493dc00c8d5bef484d39108a242abc1914d21e3c1fa2460e025b2c09/waveforms-2.1.1-cp311-cp311-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "4f66aaa638d799c89ba7aa07e717b549bd2893ed2658a7328e9da894f4994b71",
"md5": "0068ce4ac84d665898c41b36b0755cc3",
"sha256": "d9aa2510e9afb40b4d1b42f21c14a5ae9002471a1a6250a9c6abfd6c4c374f14"
},
"downloads": -1,
"filename": "waveforms-2.1.1-cp312-cp312-macosx_10_13_universal2.whl",
"has_sig": false,
"md5_digest": "0068ce4ac84d665898c41b36b0755cc3",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.10",
"size": 321320,
"upload_time": "2025-07-09T02:44:07",
"upload_time_iso_8601": "2025-07-09T02:44:07.483616Z",
"url": "https://files.pythonhosted.org/packages/4f/66/aaa638d799c89ba7aa07e717b549bd2893ed2658a7328e9da894f4994b71/waveforms-2.1.1-cp312-cp312-macosx_10_13_universal2.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "10e25151959b9d8eeadc59faa3efd49d271dbc7648311488df633623542d3bed",
"md5": "79001a04a12b61f496aa73f323d90b52",
"sha256": "8939029e879c1c45d0a8497439c2c8a4bea46438ba016115cd8d513ee7b27ac6"
},
"downloads": -1,
"filename": "waveforms-2.1.1-cp312-cp312-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl",
"has_sig": false,
"md5_digest": "79001a04a12b61f496aa73f323d90b52",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.10",
"size": 1220677,
"upload_time": "2025-07-09T02:43:51",
"upload_time_iso_8601": "2025-07-09T02:43:51.069227Z",
"url": "https://files.pythonhosted.org/packages/10/e2/5151959b9d8eeadc59faa3efd49d271dbc7648311488df633623542d3bed/waveforms-2.1.1-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": "6d5aea2808707b77bbb09100d28c6db63ed8d8e157afcd29cc545e27a497dbc7",
"md5": "055ecceeea4cdd09b47a999fc70d7b93",
"sha256": "8b8c1f1208837c3a0609d0d5242746ac0676e5396a7e3aa9e4c324d641a29904"
},
"downloads": -1,
"filename": "waveforms-2.1.1-cp312-cp312-win_amd64.whl",
"has_sig": false,
"md5_digest": "055ecceeea4cdd09b47a999fc70d7b93",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.10",
"size": 149779,
"upload_time": "2025-07-09T02:45:08",
"upload_time_iso_8601": "2025-07-09T02:45:08.452467Z",
"url": "https://files.pythonhosted.org/packages/6d/5a/ea2808707b77bbb09100d28c6db63ed8d8e157afcd29cc545e27a497dbc7/waveforms-2.1.1-cp312-cp312-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "7f7b55ff6a4a2d9b110ef8b0e5ce9bde1214712b861dedf34017f883bb6dc15e",
"md5": "516c0a2f9acf8f253c8d115a5fc87747",
"sha256": "9cdf0a2b46f91f63545a74ef7c603f65629d5dfee80d86968ac5bbafb8925d2a"
},
"downloads": -1,
"filename": "waveforms-2.1.1-cp313-cp313-macosx_10_13_universal2.whl",
"has_sig": false,
"md5_digest": "516c0a2f9acf8f253c8d115a5fc87747",
"packagetype": "bdist_wheel",
"python_version": "cp313",
"requires_python": ">=3.10",
"size": 318723,
"upload_time": "2025-07-09T02:44:08",
"upload_time_iso_8601": "2025-07-09T02:44:08.225903Z",
"url": "https://files.pythonhosted.org/packages/7f/7b/55ff6a4a2d9b110ef8b0e5ce9bde1214712b861dedf34017f883bb6dc15e/waveforms-2.1.1-cp313-cp313-macosx_10_13_universal2.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "98bfec2b260239e405842671765de24591cf6d452a7d7e0221d9ef6eefd98fd8",
"md5": "276a4742cafb5d4ff352bf7e15cd5359",
"sha256": "acd95d5f5c7aef7bb26c91570f5859c8697d590e2210d48a459ff2d0f0ad7368"
},
"downloads": -1,
"filename": "waveforms-2.1.1-cp313-cp313-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl",
"has_sig": false,
"md5_digest": "276a4742cafb5d4ff352bf7e15cd5359",
"packagetype": "bdist_wheel",
"python_version": "cp313",
"requires_python": ">=3.10",
"size": 1213293,
"upload_time": "2025-07-09T02:43:26",
"upload_time_iso_8601": "2025-07-09T02:43:26.502923Z",
"url": "https://files.pythonhosted.org/packages/98/bf/ec2b260239e405842671765de24591cf6d452a7d7e0221d9ef6eefd98fd8/waveforms-2.1.1-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": "4b84c9e464f17cac52094f98e2b4b8491d99c3d483290d1dc5e09aaaffef089e",
"md5": "0efb7017908dd086d7cdee9b35dd8d5c",
"sha256": "1d332867237ee8587615a6302b0a9a90e21c12ff524b7e0a58c0674f4441686e"
},
"downloads": -1,
"filename": "waveforms-2.1.1-cp313-cp313-win_amd64.whl",
"has_sig": false,
"md5_digest": "0efb7017908dd086d7cdee9b35dd8d5c",
"packagetype": "bdist_wheel",
"python_version": "cp313",
"requires_python": ">=3.10",
"size": 151143,
"upload_time": "2025-07-09T02:44:29",
"upload_time_iso_8601": "2025-07-09T02:44:29.346305Z",
"url": "https://files.pythonhosted.org/packages/4b/84/c9e464f17cac52094f98e2b4b8491d99c3d483290d1dc5e09aaaffef089e/waveforms-2.1.1-cp313-cp313-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "bcc0f12da9db9fc67a4d5f4f17e931c0db2014c6de34f4a4fc142a5a131c69a4",
"md5": "c4f5313e4dd3bba785a1fed1e685b4e6",
"sha256": "21c95c4f6ffdecc1df0f99b3b5b57f7c1e5e0e589f62cfdc0925878d3b10e5e6"
},
"downloads": -1,
"filename": "waveforms-2.1.1.tar.gz",
"has_sig": false,
"md5_digest": "c4f5313e4dd3bba785a1fed1e685b4e6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 39754,
"upload_time": "2025-07-09T02:43:24",
"upload_time_iso_8601": "2025-07-09T02:43:24.841224Z",
"url": "https://files.pythonhosted.org/packages/bc/c0/f12da9db9fc67a4d5f4f17e931c0db2014c6de34f4a4fc142a5a131c69a4/waveforms-2.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-09 02:43:24",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "feihoo87",
"github_project": "waveforms",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "waveforms"
}