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.6.tar.gz
(227.5 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.6.6-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c9486cc4eb0c33bda207acdc7f40154b863e48681b69ff9377be1d4fa518a19 |
|
MD5 | 0dc183a9bb0105c466d8159055e1fe2a |
|
BLAKE2b-256 | ae42eff5f86b2d63a0fd3a27bdd52a33b9b10292b199e537f702beab8e3c695e |
Close
Hashes for waveforms-1.6.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 390f0ccf1c58667a4ce0b41f9de2442475fe155ef3ec94e75885057ae6ca3620 |
|
MD5 | 3ce30563c2a433892e69bde7e3d719aa |
|
BLAKE2b-256 | e121acf1c2db7a5826bf2bcf573473637dfb2199015d84c41c8cc0bdc02ef5e1 |
Close
Hashes for waveforms-1.6.6-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9e6c6aaaadfc1332c2ab2eca0fd176400d2823711e1abc6e3ca236abd35a6c7 |
|
MD5 | 0cfcb6c382bc33e0fee12235cebce516 |
|
BLAKE2b-256 | 02531e5f33e01fd7cd3df8fc487bbf6c2b9bfdbe82325e33bdf3009e9aee82c0 |
Close
Hashes for waveforms-1.6.6-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c75a096cf0cfea772d79d5f660e16acf51dbb53aef2edd1d3b080a34ea04bccf |
|
MD5 | 20e1c7aa2dc7794d2c5d20a8dfb23d80 |
|
BLAKE2b-256 | daf3aa82fce0ef118dcfb456a055f8011eb6972616b36ccb42b247ae8a2010ec |
Close
Hashes for waveforms-1.6.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64591a1e081096b4b3e7dcc9031374c34adab16046c29a8d050e7268400aba1e |
|
MD5 | 6799c4adca95bd9be449aee60efe2f73 |
|
BLAKE2b-256 | 9c07adb503aaf7d7e09cea8e1273c4d8284274efca6114d01645bf06dcc3cfab |
Close
Hashes for waveforms-1.6.6-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61fbcb530f49928ac27229b4e422a5948f7bcd5f196739c090d0a3ffab99d617 |
|
MD5 | 8110c9630f3b7906b651d9ad7cb3dddc |
|
BLAKE2b-256 | 6ec0e0e6138a7343669282c0651e6e5cbc9676d5fe83374d3d3cbe5c9992d2c5 |