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.6.tar.gz
(269.8 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.8.6-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3926394a423349bdd406611bb001b4b5d628a64b06bdcaa572615b5f818c0aa8 |
|
MD5 | 09583f729c26b4a4488491b93a7cd29f |
|
BLAKE2b-256 | 70821df3b21635f9d06456ce405b4de0559b5f2af91b933832e2f9bc0e7e4c52 |
Close
Hashes for waveforms-1.8.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d64d379de1cd37ef582685a461aebe8e32fd1b2771ac6a9df29532ba1d6bdfb |
|
MD5 | c144c7dbc00f19ca460708252eaaa36d |
|
BLAKE2b-256 | be07cb3d01cba5b5b097cef9fcade5771568fcf64a9cab20f830da19526a47f4 |
Close
Hashes for waveforms-1.8.6-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6054e94b00f13263d53942d7269355c67a324341a4d0cd4169ef3041a0e777d |
|
MD5 | 2e1e64cba0e8a34a494f323f89881e06 |
|
BLAKE2b-256 | d762c4a10b51b403d5f6013d2f855fa4f7fce15f6ac5d0b2fea3cbd160c11737 |
Close
Hashes for waveforms-1.8.6-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 208555398a1627d5ac8fa3b6913955d864dd38c84ee1f0b40a33dfbfec3afca1 |
|
MD5 | 63fad375c48001991626ecbde655357f |
|
BLAKE2b-256 | 327c2aa401b748aaa33bbceaed787b14107dff2e56afe9865ad5c4ba8729dc81 |
Close
Hashes for waveforms-1.8.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1587ad1f8870cd9faf25c1fb400f878906c172095318ee2bfe7c4d9cc0481e1c |
|
MD5 | 545cacec0880d83843a96e1a31bd0eba |
|
BLAKE2b-256 | 4d4c1fd896d80c69f28cdf6a0e5a2042a48ad57d468b183fc303eee32d110e68 |
Close
Hashes for waveforms-1.8.6-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec795db98a5b24fa5d71f7799e3d7f2515dfe4562b2d3c0753fc6d87c9618992 |
|
MD5 | 829336b52d851d9ea28c6d25a18d4b51 |
|
BLAKE2b-256 | ad196eb154723acabfa12289bdba88b510da720c070826ccbcee1cf4be21e29a |
Close
Hashes for waveforms-1.8.6-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 574f99f8757cdd7d25b830893e7bec3f65b6a3ede7e4a9ade659906c171c85b4 |
|
MD5 | 01673c2c9b3e447d8dc8e339c991b38b |
|
BLAKE2b-256 | 113c6c07c4b222a2213603271549e32e9332139a54677c6a4f7b7e94c04a9afe |
Close
Hashes for waveforms-1.8.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c12098352847015b955486e1a18f467c281a47d658a00f733f1bc96a83e32701 |
|
MD5 | 9a164a31e29f171a0208f7b3a9402f7a |
|
BLAKE2b-256 | 631dc342efb30166202cb6aea229433d9ef118ead5739bc87dd10aefc3626bb4 |
Close
Hashes for waveforms-1.8.6-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85e545fe3dfe35ea5561907ce44eae6523b227af8c185a5dfdf65e8ae0fa9222 |
|
MD5 | e5864a9e2b9f75b1a4ae9a57fc8a79e5 |
|
BLAKE2b-256 | f4fa7d352c2580f6d770289ea388a82393d1ebe435dc52b1910a5850c91e8362 |