generate waveforms used in experiment
Reason this release was yanked:
correlation returns wrong result
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.53.tar.gz
(126.8 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.53-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84288d2e5527073f94b425428ad7861dfcbbfd46d11d923a263a931f9cd2bbea |
|
MD5 | a2142872b4dfe15aed372b696e3abc27 |
|
BLAKE2b-256 | 1ef71f5ced632538546a7403102e71e65883fa54405dcb10e8a9d2efe9e9870e |
Close
Hashes for waveforms-1.5.53-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fefcc107b1a8f0250a90bef9548c5e8570e89419b8cdaa2367205a185a515ce8 |
|
MD5 | 2b34b443b95634277ba3b99719fedbd3 |
|
BLAKE2b-256 | 9b606cc65b183468fac0e7df61adbf130a4b934e73f78e8f68977137490f3db7 |
Close
Hashes for waveforms-1.5.53-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34fe5a944167c9dcf665a6147ba5eb217a18ff8fe1ff3e5acaa8b141ed858d13 |
|
MD5 | 347d1f20827d2a6c838d890732d23c71 |
|
BLAKE2b-256 | b4591694fbb32bb0fa39a5b2daebe681898137be6a8f082a5656b3c63bb9753f |
Close
Hashes for waveforms-1.5.53-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 518451a063b36550eae683b56d169cc3453dc5a90d6cd80818ad8d7311a10261 |
|
MD5 | 807d2075b8559cd45a406f0c790689ce |
|
BLAKE2b-256 | 41b4f3d1545f4e94d690df24cea3011ab3e200f02a2b542cb46b7f967aad2c27 |
Close
Hashes for waveforms-1.5.53-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0fe82954d853bf9b121b5a511741d1cadc44ab06ab6915922b48792dad9b949 |
|
MD5 | a64d49db59f09693a177eb98bf9c0f88 |
|
BLAKE2b-256 | 3b7861d4484f28789b8b2c91b1eb29afe1f3c8920aaa1fe11946b6b2dde5e412 |
Close
Hashes for waveforms-1.5.53-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 679366534a3c0a1c4c02ad68f509da0e764e474813b684c98ba98db7ab7a355b |
|
MD5 | 9eebb6ec47705ddcadf64bcb14c8936a |
|
BLAKE2b-256 | 157927d2fb2bcf781950f89b5d33d5c5d57deff14056c2b12bf5c01538ab0ac6 |