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.86.tar.gz
(197.3 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.86-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f1e622373e2914b07c43b2669f6f8e2951266ea835c7838af6e36bc533386da |
|
MD5 | 05a76be49f80fa1590f7ab94d1445744 |
|
BLAKE2b-256 | 6ef6d7499b6930c069799d0dcf498506ca13ec5080fb30a5bf95fe323a6b36bb |
Close
Hashes for waveforms-1.5.86-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd5e978bb94f26d6bfd7b6fb379d0f7acccad89b2740907178192f2afe59d269 |
|
MD5 | ac534e884c009c35a4110491decffcf3 |
|
BLAKE2b-256 | db5890a47c79fa552bca325e550b2f7d9639ee0dd4fe72d5788fe52d2572dd1a |
Close
Hashes for waveforms-1.5.86-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da842302f5a1f8f1f9358454820d565d0fe091dddf46f4751dbf46959ff088d9 |
|
MD5 | d8a914347aebdd18daedb611f5d30ad5 |
|
BLAKE2b-256 | 4614f18949af7cca4b741b9c6c8985b1b8a8fc0227f966a8a28c06765c2c09b0 |
Close
Hashes for waveforms-1.5.86-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c43c33554d5b442d5bb75ce957796c59e55f6d9c52a13c959da9b9270b17cf3 |
|
MD5 | 584b97c00483c79a3c3af8d573d42f7d |
|
BLAKE2b-256 | 258467943baef6017b8471475a2342017991b8fae6ab808f69e44c0382dfacf5 |
Close
Hashes for waveforms-1.5.86-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69e9ccab0f99b473b54b3f3bc166e7b006dc1576ab2682a17fe76c86cec87eb4 |
|
MD5 | 84649ac4c9a0232fd124f86d0828c1d3 |
|
BLAKE2b-256 | 02a6496f586c3fe9ea7b47fa64f24f86c31c193465059d5a6c9faf46380eeef4 |
Close
Hashes for waveforms-1.5.86-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b27ff9e644c5adf6337ec42ef0c0e3c2a6d4dd7ac6ddd47e645654a5b3a599af |
|
MD5 | c7b16d61476b8f81ad02127375528b7e |
|
BLAKE2b-256 | 7ee55cc9f368b8ad89bd2b73421b19e696c1dc4a7e8aa756fdf8fc38231f5c11 |