generate 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.5.48.tar.gz
(120.0 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.48-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35f2a881232f43061c6c4a0fa5b75cae0dddf435b1e97efa016f6cc49483cb69 |
|
MD5 | 2289a490bee0e7c7e2a105ec5ea4bce8 |
|
BLAKE2b-256 | cf28f3e32fbef4f0faf1f2f3ed21ee2c26d8027c04fdea0ef8e573a9a7d88187 |
Close
Hashes for waveforms-1.5.48-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91e4f24c2fd7a2e7d26a643c167e3d124b14cf3fe0555732801fb2d9c30a312e |
|
MD5 | cc1fc8bd7d6e575c7d98c22d00f6c5df |
|
BLAKE2b-256 | 40e3f423d5cf9231b80c667d0b000674484da360b74e6117feeec0ab65500def |
Close
Hashes for waveforms-1.5.48-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a82cb6cca7918f4d59fc26243bdfa4a2f79160e40eabb361d678850c128bb442 |
|
MD5 | 289d583bb0da51f0f132f60907e24b0d |
|
BLAKE2b-256 | 22d3836cb8a2d88b29527453523372bd2346bde524f4585c5466803543e40b59 |
Close
Hashes for waveforms-1.5.48-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 784baf8bc085c98835bb38c7079bca3ae0c942954341a4243031e4a14f19040a |
|
MD5 | 9c6e11da40209e317ae70797aeca201f |
|
BLAKE2b-256 | 9ea46a0245360d7243f65da125e2668352c0e43af9281f999a0629e890fe92ac |
Close
Hashes for waveforms-1.5.48-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42be1571227a7543e934372f25bdafe04d717fb819ceed83c28b1925008d0c27 |
|
MD5 | 2c6195dcddb0db89fb547755b9fe9146 |
|
BLAKE2b-256 | 875360c7afa62a78a323815e7c23ce507c5320e54a11cc944178da294cf17bb6 |
Close
Hashes for waveforms-1.5.48-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da862abead6defb1c78b86a710556418cb0c60fb0b9cd4970cd67456a74013ef |
|
MD5 | 714b1e026cfd32cb9a2c41fe6c7fd006 |
|
BLAKE2b-256 | 4f887abf7bde7f9836a8474d1eac978d410c1e1247dba0883106e86b37e4103a |