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.46.tar.gz
(107.2 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.46-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b427e2d3867066075c1ab358b948c7e89e04165b704ac3b77ace472d8ab6340b |
|
MD5 | 4aad9945aa11bceb9aa640a102badc21 |
|
BLAKE2b-256 | deab2c16ca86f2c3f933d9fc7b3f5f617f260b5fcf329c41de5f704c61a0ab02 |
Close
Hashes for waveforms-1.5.46-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d3ba4045fa9b888a20f0fcad76cb4ab518b1aff96bd649d2e836433dd3c6b4d |
|
MD5 | 56903cad0f3d2a255c862cd162b27ddd |
|
BLAKE2b-256 | c21c4f8884b15f1d8aefa6b1f6dfd01c3f46eec1a9c4d83aa0d0be8d65377437 |
Close
Hashes for waveforms-1.5.46-cp310-cp310-macosx_11_0_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76f4399a7f2144be0e1441f4ce2b962d14a03e75d13fb42d55786ab9c0136e22 |
|
MD5 | d383fef6f36eb271e8052fb017773204 |
|
BLAKE2b-256 | 33036ee8aaa06fbbb22f898f40da2c3d727bcfec6a81ce14ebe913a036ed4180 |
Close
Hashes for waveforms-1.5.46-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5efca546ec9b2391c7187b467da3b5ba17f88da9830c860e570efacf2edb6c07 |
|
MD5 | cfbdcdb6ee87e596975d8717ec9661b3 |
|
BLAKE2b-256 | 9aefa7017c4cc92f94ee7a0032e2ee55702fe577953a398a35bdd7c7bc90068c |
Close
Hashes for waveforms-1.5.46-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c83015d954c93734b03ca6f7892ed54a623b8aa164b8dbf25b0edb084d51f00 |
|
MD5 | da99a0a7e91acb3b8a711bab106905e2 |
|
BLAKE2b-256 | aaf7c00100965e92dbe8836f9eec021428ca7652aeaf4a7c9609bc0fb8f1a365 |
Close
Hashes for waveforms-1.5.46-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33aba25bbecc4a9c0957545bdadbedb58312c1689a48e749c9b4c139aa406a59 |
|
MD5 | ec5fe6b6fa8404851ae711620fcecaee |
|
BLAKE2b-256 | 86209d9bd094a651ad6f33efbddc29ccdfffbd8c59729df32e8089f3671e494b |