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.8.2.tar.gz
(261.7 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.8.2-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f904e8bb789e13735e5ae35651876a3ce9ebeff293aac84bfa17a0961183926c |
|
MD5 | 38b469c85622c1d8d2c4180479091472 |
|
BLAKE2b-256 | 64eac2f6fc0a64e6f5962df6518e3ed1c19a88fe4a182f7a68b44d6a5730aa26 |
Close
Hashes for waveforms-1.8.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 524d97eb08c2d1d91accc41549634ed03be1ad90ead9c0b253f17b3331224821 |
|
MD5 | 05ce9c91e88b45715bfec1a77cae2a78 |
|
BLAKE2b-256 | 816bc8937d8c437a360006232ad7040c26b047532a610cf91d6141fe034d1be3 |
Close
Hashes for waveforms-1.8.2-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c11a7dc79f95000c674d0e51f5fa29da24d167a59145c053c52df88363154f0a |
|
MD5 | 69464aacf61a2bfef656ebcc990dac1f |
|
BLAKE2b-256 | 0b66154812e2f4c2388508bcad287dfbb2217188c35ce1cacc52afed9f45e0ae |
Close
Hashes for waveforms-1.8.2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 635d36c5303a00fe712e03fb270c08cd9be4981394abc826f5ef269899838753 |
|
MD5 | d6ed49532b7e6fd8ac06852822bdf211 |
|
BLAKE2b-256 | 4a2306622f56bb663ddf0965b54b76267af2ab55b071eec297e3440396c2efc4 |
Close
Hashes for waveforms-1.8.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34a4c85ba61cb801e6abc6b0ebb56f86a7994a3f4605f1a1cd560df2325dd63b |
|
MD5 | e860d8ee60bab6ad3a8c192afd171507 |
|
BLAKE2b-256 | 5bde40c805bfc9dc144c671c00dbcf94266d0c671d6cd8313182d3c1cd695fb7 |
Close
Hashes for waveforms-1.8.2-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5db8ad1af505dc3ff384a578a509eae8a3341e128a188b5070b7f4beb4f5ad69 |
|
MD5 | 6fd1ba57f2341ad1a105f1b625bc2fab |
|
BLAKE2b-256 | c52d0198b387c9e70dad654e1c72aa7baf4040a3d99ea5aaf97e0e7070b22935 |
Close
Hashes for waveforms-1.8.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06e65d0a6a1340bbd7cdb1d805b18bed963ee98b374c2a25d36dd187f5c6cb7f |
|
MD5 | 079c7f0c13c3cec1f16302bd408e71c8 |
|
BLAKE2b-256 | ed21b6dc77e536dd35bc669185d58cb21e0dfc7db72c640d959707a0c892bf42 |
Close
Hashes for waveforms-1.8.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57deda3b179ec8d2bc9d8ec0a2ec0d6e79d0c5b4c12002d56046bafc5119ebbe |
|
MD5 | 077b70c4344ec299b712154b36a5f6e9 |
|
BLAKE2b-256 | bd7b8bfa07d6088aaf776f53208d2287569930eb1f229426b35da22920237232 |
Close
Hashes for waveforms-1.8.2-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3395494efdd51d74d7a566f07233ddcb7ca690d444abbb27b2cc9d5dcbe5bc4 |
|
MD5 | c3379580f83ba13704cca355ee4d0ba1 |
|
BLAKE2b-256 | 60460deb6b2f4aaf32aa33d5bfff6e9faf579ef26543f1f4300ad7d992b8f984 |