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.56.tar.gz
(129.0 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.56-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62cf0d6b3f2fbc6600dfadb617d3cc2aa0b9e39439078a37b368e72915dca53b |
|
MD5 | 9f49bf3ca3f97ddf35cd074e340797bb |
|
BLAKE2b-256 | 9284ac73aa5e7c0ee093725573b76a79bdb54c7a69070781c9a51cbf14feec70 |
Close
Hashes for waveforms-1.5.56-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e3481bd1748e48e2d0f3a5d31bc46b6cbf32fed495e303ea4c5342d86c1ec05 |
|
MD5 | 8d5d8a2dd233c372c4475992aa7e7ec0 |
|
BLAKE2b-256 | 6835485383f5bf08bfeacb9c25e80f933b03f07ec72418ddc5010975a5fa3378 |
Close
Hashes for waveforms-1.5.56-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc2ffe6d2cb3acaa0d0290869e054079bae0b4cd45fa943348d65a45dd88b328 |
|
MD5 | a0ca9a4fca4782ec7fc17befc881e9da |
|
BLAKE2b-256 | 8b22e5bf795d3b332c439b6da1d42e8709382d807a574939a6af4e2be3d6e270 |
Close
Hashes for waveforms-1.5.56-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc08e41d12f10d8bb817d6a3fceb3ea6c453b95906fb0f1affb972aed6e9539d |
|
MD5 | abcfd29eff5e233550298f9262ae0de4 |
|
BLAKE2b-256 | b5ff2880afdcfbbcfa85b30e1f46a226d6460318eab11925cec67f4eb03efa47 |