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.7.tar.gz
(270.3 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.8.7-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a46170d3e734d2765763bc8ed24dd65b83718d7a6e8b5ff3cae5b28d6b43070a |
|
MD5 | a1b7b6379d394c29fdbf87a428b8e7cc |
|
BLAKE2b-256 | 67ab96395095a5f5bc94c6c97356493f86b759fb9de16b70b43560fcb5923ac1 |
Close
Hashes for waveforms-1.8.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4abd40f7415ddaa72c338aeaed0bcd962ec69f984101bb5a93dc468e4f99d2f6 |
|
MD5 | 729aeb3e0cae837b74f274aae3cd4c20 |
|
BLAKE2b-256 | c22c1eb9c892fabe41102070710d23bde2c9b78c9e8ff0479f347983a28d7db9 |
Close
Hashes for waveforms-1.8.7-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 360afbbf4cc51c7da7a433c70cc822d689458af2220f066c07194b0a1ff8aef9 |
|
MD5 | db3a8d263fe86d8d0da89b7539685fa4 |
|
BLAKE2b-256 | 4d673f0dc76bb6cf905e39abb4d74c06152dca1b6d9880cd382fc5aae25b053b |
Close
Hashes for waveforms-1.8.7-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef92977c714396a7a0667ae64035f2346cb19e2d6c22ba826c3f02c0a81ca674 |
|
MD5 | 7cf4e84419318de314531b074c9ddac7 |
|
BLAKE2b-256 | 446fdf6982ec46e06a7b830ff66370f1b881c4ff7a766bc5c3492cff71e9c83f |
Close
Hashes for waveforms-1.8.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3ca343cff56490cbd0f758231c6c96520f2c11c50daebb86de325158474c7f2 |
|
MD5 | 8043d85e7113e75b278568f0c621d3e9 |
|
BLAKE2b-256 | 0e9707317329806cff754cd58f4df26d2b6af28ff849da47d5c7b0955f103f5e |
Close
Hashes for waveforms-1.8.7-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acb034d0d435ff8bcd640758af1643bdf9d44308d2dbe5985b0632b61398ffed |
|
MD5 | f5c7ec8c4db50c66a0fd8f71b7438708 |
|
BLAKE2b-256 | e4bdf69b85a586d7da40462d9424cd00c4eb4491ba6c429d2581d26c2bbddc1f |
Close
Hashes for waveforms-1.8.7-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d40234c405f127db55b693fdb103c62e4f2cf785544b8490c43271e68affd066 |
|
MD5 | 938ac571547231de893f72a03d3a3095 |
|
BLAKE2b-256 | 57f95fa5e763ea6027b1bc921815884d8133afb0eca92f8c8d41ecbb7df1df6f |
Close
Hashes for waveforms-1.8.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bfad9f954a49c840deca413c501bc144a3449b96a30b24f9485f449cc31a028 |
|
MD5 | 6296d3dd4cbfa688f44c73e170543684 |
|
BLAKE2b-256 | 41c25d2ccfa33a3f7ba676f67e50bcf7c7ef09353c0c824c89fbff41e5cb6a8e |
Close
Hashes for waveforms-1.8.7-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b3bd22588a6dfbef8ff4863f9ec704a34bb3b2d3c7543c83dedcdd05dcbe192 |
|
MD5 | 2168d759560f40638d1ab41cd4c735bf |
|
BLAKE2b-256 | 5d4469b0fe61bd9cd42b5c9f5f20f75760ef65e1900cf1b3062000af107b3045 |