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.82.tar.gz
(193.7 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.82-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dff7a3cf3e2eae039e901c821b59c90017f32e8500e2b1c29b236c62ca37304 |
|
MD5 | 212b0db56783fffcd10ed212bf3a0732 |
|
BLAKE2b-256 | ac9cf5778140b277193bde9959d0e7703c4d642acd8a0ee3bf8c18cbfdd6661b |
Close
Hashes for waveforms-1.5.82-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d8e05f07978c8d56583a31a6bfe9f498fa318ac9f962127a31e58ef801fdd81 |
|
MD5 | c77edd4ec39e1644e191275183e57fe2 |
|
BLAKE2b-256 | 991c50f6d27eb40ca30dea85035bc91d342b53eaf27d495035a3ae9859339be3 |
Close
Hashes for waveforms-1.5.82-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16f619727b8682307b676ab875af9c5256482bff6ba22480d2f370575a4aff75 |
|
MD5 | ca832b0b104bf43fae5b41bd9498455b |
|
BLAKE2b-256 | 06ef796a2d83b8ad74ba8e3f34bd81ab1625cc93669bd65bd8ba38adc7a132a0 |
Close
Hashes for waveforms-1.5.82-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09615d385a0a25e405acd5c74402bbab2571cafac9349e968260a18cb3b361f0 |
|
MD5 | 1b24482d3758cf0b0ec0118eedb3f033 |
|
BLAKE2b-256 | b4da864ae01def5c90cc6e7568c763bf153fed5ae7951f80ee213a4bbe951b32 |
Close
Hashes for waveforms-1.5.82-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44d941bdc8ddb7efa607d3da302d17f875e220d770bf3bd6800d03a989df6e4d |
|
MD5 | 1fc28ebd3c968f6993f65ae8607a208e |
|
BLAKE2b-256 | 8fa196c05931fe5c8f598737a28bbd052c7a8cec10e54abe8374343c73dc35b0 |
Close
Hashes for waveforms-1.5.82-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a25320eb9b6b5003f5164905b12064179c6a765bad7aa5efe3eb8e0c083a1c8 |
|
MD5 | c59235de3b9b18bbad028a9d7514adb1 |
|
BLAKE2b-256 | 83027c9511a1d77d739c2a446befe4cb3dcd37c543fec83470cfdeec368a7eb2 |