waveforms


Namewaveforms JSON
Version 0.12.14 PyPI version JSON
download
home_pagehttps://github.com/feihoo87/waveforms
Summarygenerate waveforms used in experiment
upload_time2021-06-18 02:32:43
maintainer
docs_urlNone
authorfeihoo87
requires_python>=3.7
licenseMIT
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://travis-ci.com/feihoo87/waveforms.svg?branch=master)](https://travis-ci.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://badge.fury.io/py/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 QuLab can be installed in this way:
```bash
cd waveforms
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": "https://github.com/feihoo87/waveforms",
    "name": "waveforms",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "signal waveform experiment laboratory",
    "author": "feihoo87",
    "author_email": "feihoo87@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/b3/b2/158a97e2b791b991876724e977b3581ba6a9220ece60c8e9fe61acf5e3ad/waveforms-0.12.14.tar.gz",
    "platform": "",
    "description": "# waveforms\n[![View build status](https://travis-ci.com/feihoo87/waveforms.svg?branch=master)](https://travis-ci.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://badge.fury.io/py/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 QuLab can be installed in this way:\n```bash\ncd waveforms\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\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "generate waveforms used in experiment",
    "version": "0.12.14",
    "split_keywords": [
        "signal",
        "waveform",
        "experiment",
        "laboratory"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "835bf19f7230f4b7f16c1f5e347ab24a",
                "sha256": "7fc42d44273f76d73041fe5dfd34253fc6c30aa2a17579ecfc597a0cb507bb78"
            },
            "downloads": -1,
            "filename": "waveforms-0.12.14-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "835bf19f7230f4b7f16c1f5e347ab24a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 89019,
            "upload_time": "2021-06-18T02:32:41",
            "upload_time_iso_8601": "2021-06-18T02:32:41.481835Z",
            "url": "https://files.pythonhosted.org/packages/1b/d3/f83136ed29731d6858c634becc91195cc40784234523b2c1c51a7422965f/waveforms-0.12.14-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "c689e3b2663fef3478c4594ee5488e5a",
                "sha256": "147af55593370cafb04b693ce08341084d15941e18c7046bbb99b23ec680b377"
            },
            "downloads": -1,
            "filename": "waveforms-0.12.14.tar.gz",
            "has_sig": false,
            "md5_digest": "c689e3b2663fef3478c4594ee5488e5a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 57992,
            "upload_time": "2021-06-18T02:32:43",
            "upload_time_iso_8601": "2021-06-18T02:32:43.022089Z",
            "url": "https://files.pythonhosted.org/packages/b3/b2/158a97e2b791b991876724e977b3581ba6a9220ece60c8e9fe61acf5e3ad/waveforms-0.12.14.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-06-18 02:32:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "feihoo87",
    "error": "Could not fetch GitHub repository",
    "lcname": "waveforms"
}
        
Elapsed time: 0.31593s