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.94.tar.gz
(206.4 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.94-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d885f38dcc24775b4b6e34761569516b016d6ba0c1fb380deb09fa8fae71ed03 |
|
MD5 | b7e33de870c4cca46697f5c74597f162 |
|
BLAKE2b-256 | 7101115852bca6d9be2dbdaf8efb27d136538fcf136c5667bb68063e57a4b06e |
Close
Hashes for waveforms-1.5.94-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a3dbe1c4daf4c3a24a6bb33f745e01ff39d82d505accc4677147fdf9a831f75 |
|
MD5 | 3f63a375ce5fdaae4a1f513ca638e7ed |
|
BLAKE2b-256 | 83f4d16e48af97b39fa5444724a638af8e1467a36419b9cf1100e5ad1445ec4b |
Close
Hashes for waveforms-1.5.94-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a17ce681022a5ffd6322adb382e2a663299fffae6988f3de0591a80457c18e12 |
|
MD5 | d195b27d34174d568dceb344144f04a8 |
|
BLAKE2b-256 | a49f25465ecf01bf7fbf5bf60026d94fbea9df00049473e0f255d78b583dbcaf |
Close
Hashes for waveforms-1.5.94-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd81aebb2581ba21bc00aac62b6187211e4df063917f89cf2f82f595a1442133 |
|
MD5 | 9c4dd2f1f6d47ce52bccb1f1cfe21ef4 |
|
BLAKE2b-256 | f15b41bbbe573902aa9092a6379c1723257cf661a1ea2df7cc9e98cd84d64a64 |
Close
Hashes for waveforms-1.5.94-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c18125868f8ae15fcd0a74f309901982341dc35806cf84bb573de139559e954 |
|
MD5 | f9c25e4127512db11bdcc0e52d764aa4 |
|
BLAKE2b-256 | 0ed03d5707b38167d819c158685b34fa3ff4e0bfdaf7e5dcf28d4e0f61c22588 |
Close
Hashes for waveforms-1.5.94-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8fcbfc5c40988815f17f3baef1934abeafc82b2ee8e58ca6ae8161c0717b310 |
|
MD5 | 0fef9d3fa0a48c5e77f76ed7afbc5d23 |
|
BLAKE2b-256 | 3db58b92711048e0b355707b029a6352e02a930e7a8d4db5504988c6f9dec258 |