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.7.11.tar.gz
(252.1 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.7.11-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7cba3b58261c8051b8d9a908d65abeab75da8c6bb945f55b2567fae0fc2f799 |
|
MD5 | d3b43a2e9a7f4aa45dc50b037856fb70 |
|
BLAKE2b-256 | 23cb974964f7549e7753d0c64764088a2da8b3b532a3af1816696b1a2134dd10 |
Close
Hashes for waveforms-1.7.11-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f26c2e16bc3033b2f6b24a5e46a0c8c9c2a3cd7a1ace70a197af278b37b29b1 |
|
MD5 | b845847fa4cba985c086395ff8504c2f |
|
BLAKE2b-256 | 69212c10ac0db8e136662435e8b396949ee64736e682b9d5b8d11c32acd3d2e7 |
Close
Hashes for waveforms-1.7.11-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce69436976d99caa5413bc48c69c108a4e4c4e7c19318b8e3758051ae58012a7 |
|
MD5 | 8fcf86d228676eb89e9f07c5ed18f378 |
|
BLAKE2b-256 | 788bfdf0a860ebf0e83f403998fd534768bb2072585f5a0d4e3fbd8898c11040 |
Close
Hashes for waveforms-1.7.11-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce37d4ea1c417ba8d522d0cf90f0326d1fe0ed5833ae0dd76b8024e2e946c05a |
|
MD5 | e33d862a56f1e3a2274756a6e3ee2b86 |
|
BLAKE2b-256 | 98e9df28d3ba1fb9e2ca0f1e50b3386b1c4c94578e07486aea1cede05896313b |
Close
Hashes for waveforms-1.7.11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a93472b61d71664564c5b5e5501aed85f85c16faeb63f72d3f6f5b4609a1741 |
|
MD5 | 33d3233c0d2b3111166c57a0d1ceca27 |
|
BLAKE2b-256 | c911e2298a0bd209371fdf20e1f10cf39a2a68f1fa91320471c24b55c2cabc95 |
Close
Hashes for waveforms-1.7.11-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4de077fc3eb9fb414f1704de2575b27887f637ae2b7830eff428390d3e1f221 |
|
MD5 | 7c59329bd4a103a3d33a6d06abb0ef9b |
|
BLAKE2b-256 | ce1def59544cf55530dc40f1c48f1ee59613afec65d5857a199eb93227754615 |
Close
Hashes for waveforms-1.7.11-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b61e893cdd4866712861a640c1d884ca3264ffbac29c459a013aa265e794db73 |
|
MD5 | d1ebe50a2b984e0e58243948ca9cce4e |
|
BLAKE2b-256 | 665b942b97df85ccc6e8e788e43af4987965d53f9a5d2300fd80c9446dfd6caf |
Close
Hashes for waveforms-1.7.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81b2b9c2cb726ad37045428ec5ac4cd4dbea82c24d0d6f37037a24f323260b19 |
|
MD5 | af6217075a6004fe5a84870a4838e921 |
|
BLAKE2b-256 | c665c170c667d157c8feec1581a7169f56ded24affecf9fc8905b568e0a51a91 |
Close
Hashes for waveforms-1.7.11-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 799f04a6b30f8f766e4c87f1fca80c44617763dec63a2ca6dc07c8e05555b0c4 |
|
MD5 | f4a59ce316bbb587acdecb0e7077ed25 |
|
BLAKE2b-256 | cea375a9458fda7be08fd5f618d785156b5783bb32b69948cd499de6cc38ce38 |