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.96.tar.gz
(207.5 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.96-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d87707c7382d8dce90e28a0a65b2a92ef2ad77e027f96d72a63970898e3200c8 |
|
MD5 | cb9cc824ed500228d7807b7cb0d610f5 |
|
BLAKE2b-256 | ce6fbf720a74680435a8f92d50828d434d9caf543e2cad03c76afda361a525ca |
Close
Hashes for waveforms-1.5.96-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3864f730c1144f612c17cde57e6cd25e8f7949fa5558bfcca603594dc900278f |
|
MD5 | 6d35ea7238d73324b5eb057bf9435367 |
|
BLAKE2b-256 | ff24907ad6c00e40d616f9163a04172ee07f1849d0b64ee0907a9f0bcab89c5a |
Close
Hashes for waveforms-1.5.96-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3cc68e801fa6548bf8d5065c83870b87641b4a9b01b2d79de3fa459cc38b339 |
|
MD5 | 7f2db9314bb566030387946c8cfe87e5 |
|
BLAKE2b-256 | 9dd80d0dd52b658433c5af9be6a2102d9cfaf2ef72b597997c675c3ec63305b5 |
Close
Hashes for waveforms-1.5.96-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b8e29e9c8642973bd59b4df1ba29185302708cc4297f4138e690614c44739fd |
|
MD5 | 06ad70fe4b9060aa3da92e637b89d1b2 |
|
BLAKE2b-256 | 7eb1a6898ae0378759a4701165c3f5173565242ab0b544a43ca371d66e7b6a8e |
Close
Hashes for waveforms-1.5.96-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ac497c09c2f4011a3dca1c178fc3eba94e5723c59384f392fddbbb93638b673 |
|
MD5 | f24d6e647231f08cae73a46a30a3b4f7 |
|
BLAKE2b-256 | 2e9cdb8e969801fca8b4ef874e43a0cf23bf442a7dbbd0bfd814e364f96c21be |
Close
Hashes for waveforms-1.5.96-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d6c322deff5da24f7fd169a44efef3ef0e14318807c48b8514324dcf823c7ba |
|
MD5 | 2563f6710ece1ebd5b8dcb3cd9795ba2 |
|
BLAKE2b-256 | 427d5a00c848abd5daa38497b08623e12d63e584acd7b50a3cfc66d772b59732 |