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.6.5.tar.gz
(226.4 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.6.5-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c805adec3c6b33e39a84753ced52bf15bd17ed9d0a0c04042d75677b72f29834 |
|
MD5 | 1b584baeb22784027b3694b717b0beca |
|
BLAKE2b-256 | 640c6446f75736f3690ae655a415623e06961c5179a39b69b3a482ec1ebeeae5 |
Close
Hashes for waveforms-1.6.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57ec52bc41f33be2d567af38d15af7a46dd556a387bbb9154e19f436485b7b0b |
|
MD5 | eeef0f613d99ead2c868765bbda84432 |
|
BLAKE2b-256 | d2fb23bcf5eb156e11dd2468b792b6de2b404ac44dd6174240164beffa59fd78 |
Close
Hashes for waveforms-1.6.5-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d981c5c993dbb7a6fd3fc6da5522dc173cff8729fca5e486dfbb41d98a15c31 |
|
MD5 | 5f890c50259b09567d633aa51d0b9781 |
|
BLAKE2b-256 | a703feef506f91fa7d480871316f14f674167f53040be23bc862f10568f7753c |
Close
Hashes for waveforms-1.6.5-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7a242cc44ec8a6487552c0ee14884b1576bfd54bad7e19bf0aa9eafc34e7532 |
|
MD5 | c8dac0f34a1a547c800f6cce7d45011e |
|
BLAKE2b-256 | d26357e0e9c564330b8b26e962dabf89fdec1635b53667cd786376d856210c93 |
Close
Hashes for waveforms-1.6.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7eae2afbdbc09ff02ae23986feb2464a3215eaf4a3f9119a6fa43973162b3be5 |
|
MD5 | 9cb60fcc97e1ad1adc104e540f27220c |
|
BLAKE2b-256 | de74a6bda910742ca1ef5a7683beb1e3bdf148907fae617edd337dce3a56317a |
Close
Hashes for waveforms-1.6.5-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cfa148115ea81e7e79e282a22616e173a4b87f62d70d39669b7c792e4d7c580 |
|
MD5 | 9cc75b4b6ce588e230ce67d392745297 |
|
BLAKE2b-256 | 855c5fd025d8e5e9b64d7dab0a640a7d9aae3a2a31b31cdce2b82232c02d4dd2 |