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.47.tar.gz
(107.2 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.47-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d55f4cc3557ac19d7927d15e10dbb995f0e676e40a4cb78f45f15171e59ff85 |
|
MD5 | 30165184a5d690f84675adb66d798213 |
|
BLAKE2b-256 | 7240c0f4b5d891eee5997ea79670e9cfa914e7f1baf2aca403655ac054183baf |
Close
Hashes for waveforms-1.5.47-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35987a14a668d6020fcec8fb6db14fdcea2c8ed089aed22e45a17b337d37b08e |
|
MD5 | b254c2f9f952d702ed711cab0da7c61a |
|
BLAKE2b-256 | cc139d972cde57c386ca8a8d38a26f08401fe9d277ce1d31269d4c3aaeb243f6 |
Close
Hashes for waveforms-1.5.47-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1d61bb3d0f35cc23f796a28d35f0229922a6ec07f67be685834935662c23d1e |
|
MD5 | 237b320216a0a634012bf2219de14b65 |
|
BLAKE2b-256 | a75314ccde52c15bb59b7d70ae2a53ab6a3790e84c2e373f03cb88d2293dc923 |
Close
Hashes for waveforms-1.5.47-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ac12a8160a3f66c81f90caecec77479d08f16b9cdefae59acae2d6da849ff32 |
|
MD5 | 063a7e468ea121edfbb3304dd06ab41a |
|
BLAKE2b-256 | d0d901e340bb7317596c86f706381ef2060888b7e60f96f51acab87f6863cb1a |
Close
Hashes for waveforms-1.5.47-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8904dde1fd6ee3951cb85ecd1f4b4de66f3c7dd707d44a31d5db8e379dd7f8fa |
|
MD5 | 733ec2ea703222a87e81cbd89ee65f62 |
|
BLAKE2b-256 | 0b420beb6ca0df1513b1c034c7f617a6466d05872da7fdea7eff0739c66c6733 |
Close
Hashes for waveforms-1.5.47-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d30e7634d860576c6ae577e7e2bc5d448ef866357b297da3ce68c48a01a358c |
|
MD5 | 5fe85fbcd0e19346231086b0bc8c32b2 |
|
BLAKE2b-256 | 7fb91e363cd27038702ae84299b7bae849b050da9d879dcabfd11b0fce627214 |