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.1.tar.gz
(260.2 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.8.1-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93e6a9acc36674d827ac9f1bb558431e579d302572a4087e591ba04185c01f80 |
|
MD5 | 205a1bc55671f70829ab33bca3220b52 |
|
BLAKE2b-256 | 12b59dd51775bc9d45e64ea4a1decd0c44237c1ccaa668a16262a539d9176881 |
Close
Hashes for waveforms-1.8.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79912ecc346517e336c65bef8ef9008073718352cdb7ad2ddb7efd01c9d0d2e0 |
|
MD5 | cb10041d5c36c2f207ed55052dd7b83f |
|
BLAKE2b-256 | 9d810d7e08695524636e00e2ed7417b8a485567d5bc7f4a72d10ae72f9380651 |
Close
Hashes for waveforms-1.8.1-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ffd329d04a7cf19aeebf2881978ae2f29f407cdb782ef6182ec8dd26580d7f9 |
|
MD5 | 5088ae1cfd8ce43a6f9ce9f08781fd05 |
|
BLAKE2b-256 | 2b0c4b2d6eb7c042ef8e7282a2ebc628f9d2e2fa7e54fbfcb24037527d9c3ee6 |
Close
Hashes for waveforms-1.8.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64821f696fa6cb993e5660e96c4971011e171e6eb8ff49bf5ae4fe5f76f1a1d3 |
|
MD5 | 2b630782e5144b10c54b2900770e460f |
|
BLAKE2b-256 | a297fd0882f0b089e8f6dfcabd1f569f3b6c79e75db7cd41b1536bc43cf69b89 |
Close
Hashes for waveforms-1.8.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb0d2e75f63f4a1e25c6648a6ea2575c81bd73d35794fe846d182ba2c0b02926 |
|
MD5 | 5836019edbde9bf03df7f9291b9456f2 |
|
BLAKE2b-256 | f94b66dd4b3f31ae794e6ce8797d155b5143b72b2deee2940e1951ac711b2bc4 |
Close
Hashes for waveforms-1.8.1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f668e312ca7ce8249821e820491f5565bdcb37d6482f42ac9d9e267666b0862a |
|
MD5 | 29507850be999d7a90dda3a897110aaf |
|
BLAKE2b-256 | e9216dba73014bf497986d727f9b31645325686992a0a1b9cf5642e8d341fd04 |
Close
Hashes for waveforms-1.8.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51a20b88d2c17d159dec93b6ceed5cc873e8899bcb372f83adcd85d24460ac51 |
|
MD5 | cfda2f486950c44728a610559cb9de76 |
|
BLAKE2b-256 | c66a1186a0859440f39a6e9609dea6867d2de6882d6bd0120ecb1ed3dab3a35f |
Close
Hashes for waveforms-1.8.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e49574fde824ac6808e2b7e9819ac64006501656f43a88aa76f22057ffdb8181 |
|
MD5 | 90f89818cd66f621faa5978e1c485fc1 |
|
BLAKE2b-256 | 0cd8b1f81e108e7be2dd4db1b73bc183d56262960f20d00604cc258def85e4c7 |
Close
Hashes for waveforms-1.8.1-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19dd97b8bcb283ab35a632786b1e3b938a2e9f655eafbabcef42d5c32db92830 |
|
MD5 | 76c95b5f5fab0db9683bd7acc7fa2eee |
|
BLAKE2b-256 | 2fdfcdea4d0c03d331b4e463dcddcfd14acb7c801cdd63aa7a3939584ea1e0a0 |