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.51.tar.gz
(124.6 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.51-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bb83c010e9984a26e7ea97004f25f9684f6647eaca8a1e1d1d46e8fbe40302a |
|
MD5 | 9136549711f95ad45e9d812f292859fe |
|
BLAKE2b-256 | e0b511e639bd1832f3deac08d218a4a91e0c9677d4fb50ee29dbc3cae1ac8198 |
Close
Hashes for waveforms-1.5.51-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5258004c8aac87648d7c59a5df76389fd69ba84e8363ddc7ff998ba41ca8fc4a |
|
MD5 | d2957577a4a030c9049766bcb58ecfb2 |
|
BLAKE2b-256 | 3c13511f85267a3c338ebec92076ff4b36c61a8798d567ba8b626da45b1900d5 |
Close
Hashes for waveforms-1.5.51-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ce12217323bccbd4b721fd134769b32aace45b269e451d37f3902f2e4af1c00 |
|
MD5 | 39b459273965c014d27d89ed656792f3 |
|
BLAKE2b-256 | 558e474e7abaf9e0223a1c2e30623a9de531fa1ebc274f24acfc770bb8a4f165 |
Close
Hashes for waveforms-1.5.51-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34f2ddee29d65dce22ade78a490ef44fff90048db74a548d6c375f59c32fad77 |
|
MD5 | d05bb60b2dee7cffaf0af71ef75ff54b |
|
BLAKE2b-256 | 255c7d7f6cfa5b4713c1b5f16e2848ca19ef818b579b9595f96b7d11f64c8a13 |
Close
Hashes for waveforms-1.5.51-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fd839a45134decdad4b7431bcc5e01e20e4bb99871e5994914114be122688e4 |
|
MD5 | 4343cbd5a28168b59ff1b8a4a386403a |
|
BLAKE2b-256 | f726e55066307f63fa2b6a26f1e948545af40ca065ea3b697957064d2ff61a2b |
Close
Hashes for waveforms-1.5.51-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2150e527e4bed4a1c647c999b3bd9db886568ec6e1f45d85faf6889720aeca4e |
|
MD5 | 71054825ee9dfadc9f66d2882b8c9a45 |
|
BLAKE2b-256 | 7040f61bc3fe57022da0791aa18e4377c19a0d424452fcd9553a6db6541b3ab9 |