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.85.tar.gz
(197.3 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.85-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd3004f5f9ed79cdc720a16e2729808c2860fec0c58025b9d654887856539af2 |
|
MD5 | 2fefcc741fb4e0ca5dc61d4cb052dad7 |
|
BLAKE2b-256 | b893ecec0a6ba2af82c6af1572aea3eeed8a192a9f5a58c53962814eaacf987c |
Close
Hashes for waveforms-1.5.85-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8206c8b838e724df9e7e4c28799296ce30396d14b8700414259b253dcd004f71 |
|
MD5 | 6a305a52934e55aecaad4984f699f119 |
|
BLAKE2b-256 | 2f062a937b33760fddb4d9aa4219f178342a217b8e3a81235102c036ed66b586 |
Close
Hashes for waveforms-1.5.85-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b3b807536f8dc067efca72e367d148f44b6f186a3cbdf33df072417d15e837e |
|
MD5 | 0b8c1fca2c070614c100d62892534800 |
|
BLAKE2b-256 | 995574840a5ba58cba1bfdc594fca934e509c7090918aca1190dc893fb62ac1b |
Close
Hashes for waveforms-1.5.85-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a43383eea9a1705b0fa038dab41a98019f660806e98802a5dff993dae8ab75bb |
|
MD5 | 8536e386e19d73dfcc4b354985f7985b |
|
BLAKE2b-256 | 3e3a965bd867bf128641ed65c12de7a3b0055ecc9e0adc7c759a9c9aeb8b13f3 |
Close
Hashes for waveforms-1.5.85-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01b66b7bb5234a39d5755b9296f93aa9b34b9f413a48e0aa1aa423703ef3dae4 |
|
MD5 | 39b67b49d2c22127434410402046f7e9 |
|
BLAKE2b-256 | dc852608e2144e0023e349bc0c7c6b2c4cb7253d0ab4386f119f3917c10781f0 |
Close
Hashes for waveforms-1.5.85-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b61169db22a440b8505d9a8f28826681c84dfb1c94a34c318b08235fd040ed93 |
|
MD5 | 1c21d52885feda5aa36064c5c3ccc0dd |
|
BLAKE2b-256 | 193c0c0ec634231a6ae27b9a67dc0879e8148256478060825fcdbb864cf789f7 |