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.6.2.tar.gz
(270.6 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.6.2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cd37cb3d7ffb97013f12b8bb518a32518af77e46f3887ab9f5757ab0293b2ba |
|
MD5 | 850919af498ad6c6165bce923f2306e8 |
|
BLAKE2b-256 | f36bd30899f1350414aa970130bdb905e4b611c06b02c14bf010add73c793578 |
Close
Hashes for waveforms-1.6.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e726b89d524876defc7d0f7b52a716e992ca04d8f40ca39829892c27e4d8c8b |
|
MD5 | 78e4b5182f9e8418b72339926b622c21 |
|
BLAKE2b-256 | 76e8ad16a9875f4961df07a0dbe29abd2badd52785072f3ad16f2dfbbab68b29 |
Close
Hashes for waveforms-1.6.2-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c6684a2c4739db41027e31871ad36a79f0d034f7fa4e5075648bd93d634617e |
|
MD5 | b8de2f41790f4054315f6b9a4ce22e09 |
|
BLAKE2b-256 | 9186fe6c58640f750575dc65ad6f3d9919171eae8a7836bd039c1fdce4822be0 |
Close
Hashes for waveforms-1.6.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d152b35d8223d49796d4a4854f982a4f407c363cb408c5bccb20ea12ff91fca |
|
MD5 | f16539ec5c8344c4dffd10f17b875256 |
|
BLAKE2b-256 | 6f041d1dc6da57ec456eb6b33a702f2971fd645382759a9268e8c2f379f12214 |
Close
Hashes for waveforms-1.6.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2864be841577a897879e902ba7791f1d03467ba4c51972a9512acc48ef32eb94 |
|
MD5 | 20738d68d2d4591942f2abd85562c3a7 |
|
BLAKE2b-256 | 692d862730d686d0a69d6a33882bf502162289a4b230fa5c39b70e63d9cbe298 |
Close
Hashes for waveforms-1.6.2-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 499d459584243a355d9553e7089feadb1916e65716d71b83ca9854885cd8629c |
|
MD5 | d32098b1aea09ce7324486f34f9f99bc |
|
BLAKE2b-256 | d5a691d24ad98cd8700d7d336f78da1bf6ac423c180045cba1de321efdffe50b |