waveforms-math


Namewaveforms-math JSON
Version 0.1.0 PyPI version JSON
download
home_page
SummaryEdit waveforms used in experiment
upload_time2023-12-06 06:58:11
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-math",
    "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": "",
    "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": "0.1.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": "",
            "digests": {
                "blake2b_256": "ae9e2fa812059dc15cc4aa70ca922360302ad2b72f9b5bb642e59dd062d03d11",
                "md5": "6e6b6d38ce4f21e8494046719304e5d5",
                "sha256": "738074c257963e7e963428cca1d4ca93b32eaddc528734176f3c97b1c2349da7"
            },
            "downloads": -1,
            "filename": "waveforms_math-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6e6b6d38ce4f21e8494046719304e5d5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 3531,
            "upload_time": "2023-12-06T06:58:11",
            "upload_time_iso_8601": "2023-12-06T06:58:11.542294Z",
            "url": "https://files.pythonhosted.org/packages/ae/9e/2fa812059dc15cc4aa70ca922360302ad2b72f9b5bb642e59dd062d03d11/waveforms_math-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-06 06:58:11",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "feihoo87",
    "github_project": "waveforms",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "waveforms-math"
}
        
Elapsed time: 3.29701s