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.87.tar.gz
(197.4 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.87-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acb04ad322fb86961353213a9500f9bc81959c9c9ef24129f6e461764034d8bf |
|
MD5 | 1052e473b531a2bc29750aa6b73a7228 |
|
BLAKE2b-256 | f45a5c7e4b1760fa81b9b2fe2fc88123f764daef880c47ec964c68654f2c4f22 |
Close
Hashes for waveforms-1.5.87-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7c45f1472da8cfe893255e46c2d2f12f20ec6fadc5653344f51f0015eef0eb4 |
|
MD5 | bc5001980531849cf45315fcfe1ac3bd |
|
BLAKE2b-256 | 5d64053906addd038290377de5216317857ded00d1a5e656ad67b7a04f2fa5c6 |
Close
Hashes for waveforms-1.5.87-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 021ef9a05f17006764022e2b5371c62e731202a93953b57d89bbfff502ad507c |
|
MD5 | c486e607e66de5df253979b6db03c149 |
|
BLAKE2b-256 | 1e0db56265d4bc362346154162899e17ea9a5507bd9c66317cb3564ac9e46311 |
Close
Hashes for waveforms-1.5.87-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f2368f41a859a15afad4eb2a7d94a2b5e5554a037a83f015aa26a12644e5424 |
|
MD5 | 1abae809505b1b8c2ba1ea3bf3b445b0 |
|
BLAKE2b-256 | 7a8e2c6ef8941d88724bd327044934fd4421f30a14cb273795554e22d701459e |
Close
Hashes for waveforms-1.5.87-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 723eb51f17ee71b16fba33ee7e64f506ae0ddf6b1a963e3a1f5022249cf61bd8 |
|
MD5 | bb06f6d5bca149cae7ccf40cc0b40301 |
|
BLAKE2b-256 | 4f548339c09638ae2a043fab2ff7f65cb9f53c01e6fee65ac7c694dee6894f19 |
Close
Hashes for waveforms-1.5.87-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 540be09881d854b6150ccca4da16810ed70c28019a03b4844811ae1933695eaf |
|
MD5 | 8f46b633d43a7249e594ceb4752371d8 |
|
BLAKE2b-256 | c1b1b10ab39a71f6d325aefdf8207bdbc49c2e22e5f227be8a419180738a1d76 |