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.12.tar.gz
(252.8 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.7.12-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33ffaba273799372bdf9ae960fc9b17d95d09563d20289d46c829ad2a04b3e64 |
|
MD5 | 8f13eaf1b05d102d672ebc875a25035b |
|
BLAKE2b-256 | 647ed85e1ea035a44ff5e141df23217281b05702c3df7baaf5a132942254701e |
Close
Hashes for waveforms-1.7.12-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 607c685f2e496671c90c7787f2484b5e85ee787cf782a6c46a1b06912afb10f5 |
|
MD5 | de1d7714c58a078047546c8359b2b60e |
|
BLAKE2b-256 | 1f028bdb3f5f88a9f9859603bd69eefbaa0edfdf4136d71e645ccf17160de730 |
Close
Hashes for waveforms-1.7.12-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7538a54cc606ffa8aa2715bc88c31a2fe5bae708a41f96ef73587ab82f82f53 |
|
MD5 | 06bbbdced81bfe76120d25c90775d70a |
|
BLAKE2b-256 | 9b5e367b24ad464d4b57eadbbadc251e27458cb0e20bcdb2fd764aca05ff554e |
Close
Hashes for waveforms-1.7.12-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f2615dc4288d1a1c31015e6f55ce0328b9b4640979c95d02a85975c38dc65e1 |
|
MD5 | ffd0c5e00ad81cb6f152b5db16fa4f09 |
|
BLAKE2b-256 | 51b3190621e3252eff4812d815c1693f6a632c955254c136ef4a4c002a5c7d10 |
Close
Hashes for waveforms-1.7.12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8a8148f33a45fb43d65d5d0240fbc654c839bf7996c60362d39f909063fb4db |
|
MD5 | eab03929686143b9ee2cc70caef693a3 |
|
BLAKE2b-256 | 930cc58fec555b3e8057a45ad3a407c0dceb7a8fd530d21e4f51f7b883426314 |
Close
Hashes for waveforms-1.7.12-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aed2009b8e414b3f45beb9d92fa0d2994cd0dc41fdb5bd4b2c0131eb59e09d21 |
|
MD5 | 8c58b5b30a72563e4274a88fea1320f3 |
|
BLAKE2b-256 | 835b639fb1c784ebcb4c11103b58d8f6cabf34ae6ae729f24713fa5d30cb726c |
Close
Hashes for waveforms-1.7.12-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8ea0d0c0c3f5680908dede36c6c414e75a9be13c95bae49ab42c724eb05552b |
|
MD5 | 748de1571e53d0ad877483fe21149614 |
|
BLAKE2b-256 | 37227c6ee1ac32c83c250365dd90163731e2b0c388a07e8c239f30710325f4d2 |
Close
Hashes for waveforms-1.7.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 820d3a31030d628929780848e0e962eda294ce97bde7dc92d4c140eb5367c0bc |
|
MD5 | ce07a970d55916491a2efe242813673d |
|
BLAKE2b-256 | f938f1bba0c0a50a42f386cfa770626d23d2a1847ec2165a92cd07abf46ecc39 |
Close
Hashes for waveforms-1.7.12-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3c5b77372e3fef229b238be617cf244345cf4679db49b32c53cd79ecc17389d |
|
MD5 | 67def67cae5b71185578e3a123ebc5e3 |
|
BLAKE2b-256 | b8ed23a4ddc67cc10f1fdc2cb4d4ef3c320f09fa15b937bcd28a3ff4ca36f1d9 |