Edit waveforms used in experiment
Project description
waveforms
Form waveforms used in experiment.
Installation
We encourage installing waveforms via the pip tool (a python package manager):
python -m pip install waveforms
To install from the latest source, you need to clone the GitHub repository on your machine.
git clone https://github.com/feihoo87/waveforms.git
Then dependencies and waveforms
can be installed in this way:
cd waveforms
python -m pip install numpy
python -m pip install -e .
Usage
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.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
waveforms-1.5.83.tar.gz
(195.5 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.83-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1e615007b6a2c8cf61eedb634146d70681eebfe9246e510e4d275e2a00261fb |
|
MD5 | 8b64362f0e14a7b2dcd4d0902d6348a5 |
|
BLAKE2b-256 | 07eeb0f7581e9bf403b0e805042bc3403aac88fdc9f4ce1f507575718717a452 |
Close
Hashes for waveforms-1.5.83-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de84bbd76ba3edb3cc90102f4ecb2360a17644832a669a6e83b909052e450260 |
|
MD5 | e1ad1d6309c83a804bf933ff06e08640 |
|
BLAKE2b-256 | 42c85fa6a3b7ff7390ad561b51ffb59a7bbecb340758d78570696275a5cca559 |
Close
Hashes for waveforms-1.5.83-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5a379f39191a3aeb5c32f7f3e80acd658f024e6ecd1b6148390bb4f2c39207b |
|
MD5 | a58b61acd2c430e06163fdaebde325df |
|
BLAKE2b-256 | f01c57441c55e33abb227aaaf0764b4722782d7925df5ac67721ebc16b33fbda |
Close
Hashes for waveforms-1.5.83-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbfe55d1290cfec7739722eff7cb1eb24a8279aa1b9e44e5f876332c86330989 |
|
MD5 | 75a957f42d85fce02b414fe4485b1874 |
|
BLAKE2b-256 | 6060cb82f29def79dec235bd3e334f6acc913537b838e329ab6bdb875ad2aa89 |
Close
Hashes for waveforms-1.5.83-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ff9484b961c5170e2ae093b22f3fcea1bcffef45c233ffe83ef2d1334266f61 |
|
MD5 | 594f788acfb36d4a448ff0391d90edb1 |
|
BLAKE2b-256 | df9b03064f885372ec71d1ab7a5fd39037053c80488a9492001c9f30742d1e74 |
Close
Hashes for waveforms-1.5.83-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 267db1d9e63a1ca44aa733d676c66cbec646923def788398e40e8ff17ae8600e |
|
MD5 | 043cf05719805228556bdb72c88fa895 |
|
BLAKE2b-256 | a8eaacbad9fa41b3c6b6b64b25d74d5d20530accf075312bf8dc151061c22940 |