generate 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.50.tar.gz
(120.3 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.50-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 120feab0163c10d70d67b69df81f7847380f882fdd572965b5ac5e26f659f36c |
|
MD5 | bcdb26deb3e6274ac8fe7c20bc5fdf5f |
|
BLAKE2b-256 | b7028c54c3f49ca181c211e815e5f622e78554dfe26beb609ddc25cd0a487041 |
Close
Hashes for waveforms-1.5.50-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b492d618e4845c46ac47ed9e43c4198e526178f0aeac601dab4f0fad20a93564 |
|
MD5 | 1d19bcd7adbf3479ae38fe85d2f1d6c3 |
|
BLAKE2b-256 | 976deed09ca8c72c19ed15756ae083f42c1510769a800ab42663ea2511acd47a |
Close
Hashes for waveforms-1.5.50-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ee028d284f588182c07f08f5bc3af2122f4ef58949ca8652e39d4f102cc57a6 |
|
MD5 | 727bc8c4c5414f1990c1c73ca6ea6c60 |
|
BLAKE2b-256 | 67476365bf47aa6d7805b5cc1baa0dbdd6461f4aa21ee2e97dc16cbdf9f803cd |
Close
Hashes for waveforms-1.5.50-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f7ef9716d3aedc2f21c95cc0f416f70698e35ac027ec21be9b0866217e5dfd9 |
|
MD5 | cfe79318569a713367556318f56bd3e8 |
|
BLAKE2b-256 | ad226df1ad12ffad44a0edececf7af35328b9ebe7daf4a92cbca0c70071e7337 |
Close
Hashes for waveforms-1.5.50-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69a1743c3f6c9704b1f4898d55267a5cef43a0d7991a2fe58fd8fa30560a6da7 |
|
MD5 | db6b7babb817f355eb05a92a2f7642bf |
|
BLAKE2b-256 | 4265f80acfcecf4c00cf8de3738bce859fe159891120be2736b117fdcf9aecca |
Close
Hashes for waveforms-1.5.50-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a65432a9f5c70aa80031602f0e6712ba30de3c5493f087cc50696686ee38086 |
|
MD5 | 249ac3c5edd9de6e415b0337ae43f086 |
|
BLAKE2b-256 | 8c714778e535850f3c31ccda5ba243ef44b19639643de3bb19fc8a6e5aedeccf |