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.1.tar.gz
(270.2 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.6.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bedd5c080868324f545065aba96a56e36a8ae3ef44542b22389ddaeaa68c24df |
|
MD5 | 1144f371f440a447101f66a43fe77006 |
|
BLAKE2b-256 | 4b415f1210ce4de5b198916527cbff52c287bab1f118f22533820edc37929d74 |
Close
Hashes for waveforms-1.6.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e62bc834b10243e2fb60d43a064679a97fa6b42249e063a5ae8674552b9d9f8 |
|
MD5 | 50714aae7d8dd5d072839ebb9e24d1e9 |
|
BLAKE2b-256 | 945ce99cbe7659c463d21d1ad5f090ea057a6d5e55ebd7446d06df5509740353 |
Close
Hashes for waveforms-1.6.1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19597e9a6b548bb141584037ea635129723c36d50545353076dcb4a4fe642425 |
|
MD5 | c58817139430eff68a376caf94e0bdab |
|
BLAKE2b-256 | f5d24b39e959dcbf257ceaf5bce1070a9c36041eccf1be2906f6f5b8a52653e8 |
Close
Hashes for waveforms-1.6.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9950f31089d0fe28836f1bfc3ef88315f3f505027b1ac2e8c791275bd5f072b9 |
|
MD5 | 0ee0331d4b737f39d6711640d785365d |
|
BLAKE2b-256 | 9908ae4c8e300c105170697408d8d66a36c7a3f0114ef158783ada2d4ee33ccc |
Close
Hashes for waveforms-1.6.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2956c7cd885aee0abfa6f38bfe89a692759a050ab31b01e0250434741ae39635 |
|
MD5 | 264979b045995e54a79753aa0999526d |
|
BLAKE2b-256 | 2c3f49536431115e21feedc81afc85bb8586b37a47bbac2cc1601dc554becc5b |
Close
Hashes for waveforms-1.6.1-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 968275edd19aa5eb9ca619eae4a888e3b412846a6e66a2fbaaf2f28a8ac84ee7 |
|
MD5 | 01036598faaa36dd970f8073844483f3 |
|
BLAKE2b-256 | b49c219cb4ccf39be16b846678689716bb09ffe4495fa88690b09b3110dd6037 |