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.7.3.tar.gz
(242.5 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.7.3-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c11f38688262535cdad383059fa71d0522aa86b9b8db0b17b0e341d9d068e690 |
|
MD5 | 8ae71772f7921b561ce8bfcea7e3541c |
|
BLAKE2b-256 | 21dba729578e03dd7df3153278fc87a6e1471885a411088d75f35f4dc55a7e86 |
Close
Hashes for waveforms-1.7.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dbc832f68a6cebcbf14eeb112402bd1fe72fcb33ff05942010989b99f9a53b9 |
|
MD5 | 594e2fdb05bfe074144f6cf7b1602365 |
|
BLAKE2b-256 | d44256af406e11ca67289b8e24f96ecd3202af4172948a5afba72f426cf18af5 |
Close
Hashes for waveforms-1.7.3-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a021e8bc4a33b73dfc2a12bba7ac8e3480620a860cdec5bd034bab3f7d67949 |
|
MD5 | 66a679e0030a40e9f70249a2c8223b22 |
|
BLAKE2b-256 | 2f1928643c6c5ac9dbb0d7aef8f8e0f9192d86eeaaea444f889ddb086ebd617e |
Close
Hashes for waveforms-1.7.3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 878f251549c76fb50eb3c98d07a99f0468d289b569b9a1c9bcfafa65be3defbd |
|
MD5 | ecb2f8199fce943a4181556bb63f0b39 |
|
BLAKE2b-256 | 307201752e71c0de641f7adc1388afd9c9031e33b2a0e88cc6b6e05ff9b57ffc |
Close
Hashes for waveforms-1.7.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42b7d90ca7d40c5ee3e3af9237bc2ec6fae48db9f19ee5539ee0855ac863dc8f |
|
MD5 | 947b2273f20a7384c6c94f814e07db0d |
|
BLAKE2b-256 | f49fed6bab5836ce39db1c771b3dbfc487999c6bbbdeca5e5524d5c7a2788737 |
Close
Hashes for waveforms-1.7.3-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d071ef7264c671228432870ee5d2082529e6bc9330151d586009c56bce138f08 |
|
MD5 | 8f58af19c835008c5e4a40a4c3f30560 |
|
BLAKE2b-256 | efba2b2b083335dc90e8f5d609f85ba8618db9f60aad5356b8f8abcdd363412b |