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.10.tar.gz
(232.9 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.6.10-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cc72237561df4fc390a65c77e1d514ed48089fafef48077152e38b9a5fdcb80 |
|
MD5 | b146b71d9159ca20a8debfe39381050b |
|
BLAKE2b-256 | 8260d15324ae996a32ce2d5e2c00928aacb900e320d9ce0e9dc601ff0a586e13 |
Close
Hashes for waveforms-1.6.10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0660e08606a45e89a60af778bff7b9212a53882f9f2f237776ce81e58dfd8f6a |
|
MD5 | e20ad99a08b350cadf0ad5aa15f5d496 |
|
BLAKE2b-256 | e8d7b9980f61bed3e812a99df370eaa7ae3c4258bb6e81a3be1f49b1fbb989d1 |
Close
Hashes for waveforms-1.6.10-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3626b40c135119c8b0efd8e3561de434f2d52971f411905e0817b8c673d25172 |
|
MD5 | 5efcb8340920aa2e20f704c80947b2b8 |
|
BLAKE2b-256 | 55f2b5502fa38f2d0b86d815bc04a8b357180ea80fb165fc99c091ca3511353b |
Close
Hashes for waveforms-1.6.10-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74f23a55370ffd6f849c38d44862b4a387e73f2802cf0aa1ad3e52241eb7cd51 |
|
MD5 | 010302247d09be877611253d6329f7b4 |
|
BLAKE2b-256 | d1e585f691a38e51c05698f1b97ecc4ec90a4de04d16c1886669f00e346caa0e |
Close
Hashes for waveforms-1.6.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b73917202f9acb1d4302dc4510cb5a4785876457a8a8640e301e0bada9133c1 |
|
MD5 | c356c9754d1a02012c73c06d3e8aa30b |
|
BLAKE2b-256 | ceb3191145da3c55204cec1bf9689bcdfc8467f5c7f544d7dea4bdfc1aa85248 |
Close
Hashes for waveforms-1.6.10-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d09eb8d89636c9fd33e05661a05b947124a823a5d56b1ea83e2acc5820d91fe9 |
|
MD5 | ec6ad64cfe03c9c12e9684c5d6500f7f |
|
BLAKE2b-256 | 91219e060cb43f52e870f03f60a73aceb795461bd0ddfd3f240c7824ca756e78 |