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.89.tar.gz
(197.4 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.89-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 993d3f26a5d386e00f43c6f05a7d2d6a99400276c6489b753d5f2f6acef46485 |
|
MD5 | be161aa99126dda4e41a763ed8938404 |
|
BLAKE2b-256 | 6f5a0af14c3e0f349dcacd48821ee2d2beeb72ad55515b9948eeeecf16c56663 |
Close
Hashes for waveforms-1.5.89-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc2b34b68110c6588939fec8297b37f78fb87ce49ac4c543de1788ed3f25085a |
|
MD5 | 283a4d14e78624e203bf4cefc9c31427 |
|
BLAKE2b-256 | 53df5b11a82c31499019ce1687837063d714409a92aa764f3589030a94140ad3 |
Close
Hashes for waveforms-1.5.89-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b65f7bdf46920d467f573a0833406ba29ce237291bb0ebd90d21d4f8d4bf513b |
|
MD5 | c35bbc970e65ecc0cff07edef92b32ff |
|
BLAKE2b-256 | 2f7ae2337c48e1e6d98fcaf22c8811c29dd68ce2d22ee2a2b008150284ee51c8 |
Close
Hashes for waveforms-1.5.89-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0918b9a4ddfc9c42ece6cea955a10b3d5670d07fdd07e91dd88f75f078cb1862 |
|
MD5 | 0d814f110fcaf5e04ae8f37053e871cf |
|
BLAKE2b-256 | 17e0e20d4353cf98ddd6b4aa8cf6759482908cb610f745697e29f13695f47265 |
Close
Hashes for waveforms-1.5.89-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82eee742ed9270d2732d01b5b046238e421ca985766810571fcdaa81a33ed544 |
|
MD5 | 1b443732df6073ed974d0ece2f787c40 |
|
BLAKE2b-256 | 1aa19be9b27af771e391684986e0ccb19cdb8ae501cc8bfa40c3ae3272a57730 |
Close
Hashes for waveforms-1.5.89-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d8efc90b87a5af8d197740f7621aa302c8502041639fdda9ba1bba8456fb1fd |
|
MD5 | 749fa646da183a4297a5999f01e86d54 |
|
BLAKE2b-256 | fa27caf011281d37109625c3eb97155649903011a2a5a520d6c4594c17196a9e |