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.98.tar.gz
(220.1 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.98-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b0e94ae7ae82b523d6e3375a76ff3c3f6058e26ec91b6856645f0cda455a971 |
|
MD5 | ed08e21f239ed7241f687d2cd19b457b |
|
BLAKE2b-256 | 522e303b02a376a8836f1143fc2187b00dd7154a3869eae17b018a3a5659b97b |
Close
Hashes for waveforms-1.5.98-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a141fd99b18eb2a480e62421a0ae450f6d5894e96975430d1ef27facc51e988c |
|
MD5 | 80d8b82b8218919fc2231fca5b40a7da |
|
BLAKE2b-256 | 6cad52229f2926212b38527d5906700fdffa6b21c252bf62b617029fa0d78399 |
Close
Hashes for waveforms-1.5.98-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2966ac34a3aea904c9c198720ccc4b2c485136fb2a138d403e3d4dd9ec46f60d |
|
MD5 | a4bc1de75acc90fe73577f72d97e911b |
|
BLAKE2b-256 | f111b8ec1f01d04dead8559c383e1cced20be0e9d7989fad64f246d2c61f24bd |
Close
Hashes for waveforms-1.5.98-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbff7b889b375ce2086c1e73e0f3c07c185544169848e191f4d5c31ec95b0e69 |
|
MD5 | 36da4191acb909611b8c97e39f24b23a |
|
BLAKE2b-256 | 6ce85027d650ac9dfe14a92b970ce784585b0a70d86a808d0c12474497c2902e |
Close
Hashes for waveforms-1.5.98-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c8f52f4919542719ee4281777c0e12eee7968424170ad304d7c534d731e16dc |
|
MD5 | 306a012944d2c500a9edaa2b097f341a |
|
BLAKE2b-256 | 309bac4df3b88f4f10d0552ad6e3af64d94166a7dd3436bd39fc153ed850dc90 |
Close
Hashes for waveforms-1.5.98-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c3cf7f0edd8365c2c6c4eb3ee7d73615955e370aaa3e1ff72ecb05874b59dad |
|
MD5 | 6cc6760c34bf52e52b3ec7aba50800da |
|
BLAKE2b-256 | 989ea106d991ab82e359eda97ba0a77e31d7b0c4354882021760eb846935c2ae |