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.0.tar.gz
(269.4 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.6.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b41dbbb3bf4265ba6abeb68d22cd3e95c45095d363ed590782da65046cae06f4 |
|
MD5 | 5d1167341bbca633077dd6ab1420e9a0 |
|
BLAKE2b-256 | 374c4f198f2c0cdd5ed626bb68ec6d02f3d50267a9958321075a5bc37f539755 |
Close
Hashes for waveforms-1.6.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c8f561a058a561dde6d793a56c8a9eefed7bf1f08f650b70cabda1dbd3f5b52 |
|
MD5 | d5830a7e22dbc71844c2f11e1f66ff42 |
|
BLAKE2b-256 | 530981b3a6f71d40364a38389958b5ab19a6cfaf5d31556e29ee075d28e507f1 |
Close
Hashes for waveforms-1.6.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 481fc83866a6467ca63edd1e2dc90ca285dbbc6a518ee9a9583338eba2e90926 |
|
MD5 | cb0a482ac67dace01ab84b452763ae99 |
|
BLAKE2b-256 | 64f45741570a6b55d0783e367475f49a9e16e4b505961b9de5f0f19ceecb305a |
Close
Hashes for waveforms-1.6.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35063381cae428408ece95f093db9218057596163a0a7d2b256ab13856fa4ce7 |
|
MD5 | c00648d1abbd6ad7812a14531a0a8fa8 |
|
BLAKE2b-256 | 199f49566f5a8e619ef879826ab123a3849d2748f3fe94e8f863f437d9d610b7 |
Close
Hashes for waveforms-1.6.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 831eca1c0c22a2aa6922f250fbb7c67d86289f5c7fce02c2045f214860422f95 |
|
MD5 | 5121ac17564938d2440e1dab3edbc514 |
|
BLAKE2b-256 | f7e30acf426a54ef550f9684d78384b6cd44714cf44a3c3398f3dd1f5c840050 |
Close
Hashes for waveforms-1.6.0-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98ef6392bcda08fd85686c3f49cb8cf0fc472287c3b1220fcadaaa1b2ff1c315 |
|
MD5 | fa2c98c7000aae52d9fcf1edbff067a8 |
|
BLAKE2b-256 | 41cc22d4744ac81c639912e89e6de21eb773181e26882efb7247868db2dfdcc4 |