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.64.tar.gz
(142.9 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.64-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2be4cc40b0170d9ffac9243e897acbe4b5a798ff6729c5240811cee05e3aa315 |
|
MD5 | cf81ae66262d937fa76cfe362745f9e2 |
|
BLAKE2b-256 | fa2efbd32c2faf75483d6519777bd852661a00f3ebb55ffe3123c08ef6c45fff |
Close
Hashes for waveforms-1.5.64-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5582e946a49418dd6278be2c572f739b51ac6b8e9ff40743d60d70eabde54431 |
|
MD5 | d0f1d153b86895b2639febe8fb020bb6 |
|
BLAKE2b-256 | c09c6bcf7d9fbaed641dc0e016c88ca8320643941763e0d20549ea420ef33452 |
Close
Hashes for waveforms-1.5.64-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9abcfb42dde80681887e1686e5697c280720707294376cc6cc0e82fb7dcd9be2 |
|
MD5 | 0782502b3a709ddc4caeef633d6f0edb |
|
BLAKE2b-256 | 029472cd6c1bdaad17694cd0bc3cee417aa5fd960d9845c114b1590d6b847347 |
Close
Hashes for waveforms-1.5.64-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5fe3052331fad6afe08984d7244b0b0e55a9679b4e96084af563af416222599 |
|
MD5 | b88e2108ca2d701dc73cd1c50ee41c31 |
|
BLAKE2b-256 | 3a6538dfea6e1245c1596d5019967eb1b327b181e7d3e866ca523571a6488f9d |