generate 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.66.tar.gz
(134.1 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.66-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc54ebaa596eb70a59c4e161372ffd70e3394b37b5475d4214b3b5d9e005d7bb |
|
MD5 | d42c1ecf9babbb09d270f3dc7996fdbd |
|
BLAKE2b-256 | 8565cf9cc57694d2982f800f465eb9b4da14e1a3cb1b7ac957b3dc3c14be185b |
Close
Hashes for waveforms-1.5.66-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fd8938adf35895eb79c057732ac7048ad17de2063d0ba6a20050b38a37d1a7e |
|
MD5 | ee33b12062ad823a10308e5a1be61d3e |
|
BLAKE2b-256 | 74116835d35cfcbac7c44b60e18bb8034ce5cdcf1b636a9a16dd371095596e09 |
Close
Hashes for waveforms-1.5.66-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3aba10916e2829f425d66b4b7d61ce1a881b4ee789984e3016f1c63806a13329 |
|
MD5 | 871068d2d332d69c2ce92c2536b27283 |
|
BLAKE2b-256 | c6ac432172f6346bab037e6d5487811d33f8d53ab73a215e1e78aa7de2dc0258 |
Close
Hashes for waveforms-1.5.66-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32a177b8e96cef15ae8066a72421b93a21e0cf7d30bfeb93ef627bfa9697a852 |
|
MD5 | 9d7cb9293f4504cf9d4bab52a36bf2db |
|
BLAKE2b-256 | 5711811913fd52aa1ba5952e62b14fb2c7f83ee28f0690c5f36a085ecde14dc0 |