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.78.tar.gz
(171.6 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.78-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 770d23e3b56d64ede3fa9e052a86bf0634a9ee20922028ac796f164bc9dac43c |
|
MD5 | 740b747613491fb06fe3d7c2835f08f0 |
|
BLAKE2b-256 | 84867037dbcce86a8ef4f7a71ce30b0cc967e11c733a2d7509ca6c1a31c1bb13 |
Close
Hashes for waveforms-1.5.78-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dae6bbdbac8d29c92e2b3b4c6e059204f9bbcc2fbe9e843ad2aa911c89a2ec57 |
|
MD5 | e2e494b21981841a850b0f90ed91e53a |
|
BLAKE2b-256 | 8c9475a0863311b90808f7d9d617b6cc22a45e76fa11ab32b11c8aa75708a561 |
Close
Hashes for waveforms-1.5.78-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55136fc3a5d5ebcd8908da4a3317ac0452338db7583ef20f9e2f9555b5fac58a |
|
MD5 | 0e3c126b49353aff72e1795f8843569e |
|
BLAKE2b-256 | b79eee75ef8521342cb9a087314dbfe2816745725d9d6e5ad7f5d2e5a870b094 |
Close
Hashes for waveforms-1.5.78-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87aaf72a52af25bac20e2b8c148d967eeb4b5bb5efa2a7fc6de52acb4b228fdd |
|
MD5 | 760d983a2149ea42e658aa65a6833afe |
|
BLAKE2b-256 | 8e71c69d62f547ac050e691c57590ce29d392b7d2e9d5690b5094441ff8ecd06 |
Close
Hashes for waveforms-1.5.78-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bca67a3850170c98f7462091a514ce6fa78be681dc4c56dbbb0b5496957c4b6 |
|
MD5 | 3bf2772e50ee1dffe4dc0fb1ec001a37 |
|
BLAKE2b-256 | e928309f403b3166fb1710a1c3a2bf92000a8947b1631685f942b585e3146b0e |
Close
Hashes for waveforms-1.5.78-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a74cd9bf7b8acbef214b4760b6743171042bca153652404db478be5b6eb5da76 |
|
MD5 | fa33bf0a9d0acf9aca65eedee970a843 |
|
BLAKE2b-256 | 554443191a525cc1d94c0194505795e7cf2afbf6eae82c90c8593314d8ee5346 |