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.81.tar.gz
(191.7 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.81-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58b117ac2e9884ab10d114a9d079ef3e9afaa26a262e586221c39fe7220e3ee6 |
|
MD5 | 18a004ae087ffc16e344eee2cc994c3b |
|
BLAKE2b-256 | bbd684c586835957462644d11115f90627985b03d5271f1e2eae3e9705a28087 |
Close
Hashes for waveforms-1.5.81-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b7acd99d7ae5e83104664d4d3327819e4303e2d71723f454288abe38b46cfc9 |
|
MD5 | 746d5540c5703431d51c89083757551a |
|
BLAKE2b-256 | 968439f88cc42e70c1d5aa670d7e0433011af0115dad357a11a5ce844dedf671 |
Close
Hashes for waveforms-1.5.81-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d9d2243a6289bddd6eace1f698269c947afdd4c682ecbb932da20078258f0d7 |
|
MD5 | 6b3176ce8cfb45f556d37dcfda1da9c5 |
|
BLAKE2b-256 | 755daa93caae37550400d5b35374a592b12bdc5aa94f938d7650570727429b2b |
Close
Hashes for waveforms-1.5.81-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d68c9456ea51ce5b221dff4476c2e86f82c0e76da45cb01b3576cd6e04592ae |
|
MD5 | a5cabf63f23aa71f3e52a9403b6b4465 |
|
BLAKE2b-256 | fbc86b365773844c7361e67264a52ab3db0344b3089c85945166f7f3d255abe3 |
Close
Hashes for waveforms-1.5.81-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7228af0a0237e4ea1f47fd949018ba8e38e4364c21457406578099d5f26914f5 |
|
MD5 | 0f4f97083014e9e70ac5c4ad5369fb58 |
|
BLAKE2b-256 | 7a9dd34c5c7baa4572d8ae8ce9cbbcc1a828f50919afcb5b369a2317f13b36c7 |
Close
Hashes for waveforms-1.5.81-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9820d4beff7c77dac7fd0ac0ed5d5ad3f497eeef0bface9c9974ec0f4ea6e130 |
|
MD5 | 7488ec76fbf931d4bb8184d783d71e26 |
|
BLAKE2b-256 | d2ba4d1d41ec6b7c539960b34d7775c98abb0ed750938346877260b1ec560930 |