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.93.tar.gz
(199.1 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.93-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f82ba33a0fa3afc68a0e49542e3a656901737ceed5201160964bbcc40e1e9d20 |
|
MD5 | 4c4af7666602986a238db50120b9a594 |
|
BLAKE2b-256 | 70d9c59d9f1fe15108a2e40126effadf80d7bc90294b7fcda95b3737a6d23930 |
Close
Hashes for waveforms-1.5.93-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc72a9fb2be5a1cbe46af2c08f7c400a08bd80f0e7aa7bf8d447c4c97dc8cba9 |
|
MD5 | eafd03a7a330b74fed412fe9860cb7d2 |
|
BLAKE2b-256 | d52e85e6d7ae169005961f331d844185a33f7c3d5c8bd67c92596e64c7dc3b6a |
Close
Hashes for waveforms-1.5.93-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adae04edc15b6bcc5a6cb37b5e4e2badf933272a477bd559a60ae6e93615296e |
|
MD5 | fd16adc88776d0faa9af9756c3233afa |
|
BLAKE2b-256 | 4f9ad4ff954f7f6606b226a26942807a1d47d221fbc1f751b2d795f6c82cc989 |
Close
Hashes for waveforms-1.5.93-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86d8c4d29cef580201f9a5e5ef0758e0744dbc2d0856a321c46ca64b158d13d4 |
|
MD5 | 056fb7b62588c22dcbc3ef8ca7ba9c72 |
|
BLAKE2b-256 | bcb3298cba1e65bd0857294993486d044d752c1c0acd42aa2ae5a98bf33331f2 |
Close
Hashes for waveforms-1.5.93-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 115d3dc6987c86464241890f87bfbf954ed4c3a6368fc0e81e71ca4f704e533b |
|
MD5 | 9733b017168ca1f404ded7e12a3838aa |
|
BLAKE2b-256 | 725abc787acfa37081e298c30df0cc8a3f934179b7fa4449b8967dda10169a15 |
Close
Hashes for waveforms-1.5.93-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f6f04bf2a3c3cbc2c00c155636c4ea5719d5d4ae5ad185bb97ed4a74a0e1d25 |
|
MD5 | 0ce0b7c176c483f3e3165245a8be8298 |
|
BLAKE2b-256 | a094414af509266d3fb89f650d3cb1c38affe9d620030e58d40cb750d04c6bfc |