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.6.11.tar.gz
(233.1 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.6.11-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3242a95a0574285d814077ef6efd22c2e7a4f36618be2d8069468a8212fb1c8f |
|
MD5 | ff2710a597c0f6c556cbe04e968415f4 |
|
BLAKE2b-256 | ddab0e000ed522c6d51e4e498fa096d52b2dad659beaf01e28dac912ab586c87 |
Close
Hashes for waveforms-1.6.11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4c5796657a3fe8dcf6681c5805879b36b390357c0c0286fd977cf1bc003b0fc |
|
MD5 | fe5b79e116c8253dd88ec0538fbe3a7e |
|
BLAKE2b-256 | 5c10208b96b3e2e9046b471b97556b5e35f20215ec9283175f15db99532a9313 |
Close
Hashes for waveforms-1.6.11-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09f00242a10231aa8bbd3755d8bafdfac7c1c31e1a4c46ee2cd4d70fc326e00b |
|
MD5 | 4671c977c0cd5d68fd966c5e26aacd22 |
|
BLAKE2b-256 | 0bb50dd5889726384b9f6c4fb7a526d9b514aabea2f5a6e9fcb7620232e11161 |
Close
Hashes for waveforms-1.6.11-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4561c9de77f58ca687765023ee600e71ac7e5eced2b0797835299741b056822 |
|
MD5 | e627fc1a35f29f9e7eab9e9cad4ad55a |
|
BLAKE2b-256 | 9b67b57837442b839af283706416a3806ea30cdd1a8610441bb62f8d82b28d90 |
Close
Hashes for waveforms-1.6.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e649cca9fa8e7809b729c64e724add7132ec52d5e6f9347d643be05d7abc3b27 |
|
MD5 | 0e319b74d595ef1b2a89bf2171130921 |
|
BLAKE2b-256 | 664dc5a6d9c7c885cb9b4900621f07daeb52f38a5feae915478af955df2dd902 |
Close
Hashes for waveforms-1.6.11-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e1307f1018588c9c31b3a50abe5eb27e98a260fa40aa753f8fbb524c73099e1 |
|
MD5 | a719423aa871f069b0098b23b0d8dcb8 |
|
BLAKE2b-256 | ac3ce350a9d4102edfd27f70fd8e1239b9c215bd27037e4cc253486babb439d3 |