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.55.tar.gz
(128.4 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.55-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8b46d19d796e5181709c2b14db59138b42c0d0cd2064ebb0e1225dd40d91704 |
|
MD5 | c1448a070601a85c317027f3540eeccd |
|
BLAKE2b-256 | a524ef13e9b248c789d179aaad0d17658238051ab535a45e19868792481012e0 |
Close
Hashes for waveforms-1.5.55-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 322f18e1e3d25e588842cefb2e3872ea06ce85c07e527710c6158099ca4fa609 |
|
MD5 | 2a2c44208e33df2cd5ecdb2eb328b69e |
|
BLAKE2b-256 | 378d7b5723de0de923a7eff2fa742c28906541f88f8e3aa9beac662bdcfcc335 |
Close
Hashes for waveforms-1.5.55-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d640a49125305c72e83aa311ca2ecf39ff4635c1bc6d93fa2c7b831e7b58c3ac |
|
MD5 | 227adb4dedd34f5236f4eef2ea813b1e |
|
BLAKE2b-256 | a809e2ecd71a4f861f049422671aed23dbad1597d4356b360bcbd675e1bfb611 |
Close
Hashes for waveforms-1.5.55-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0385845bde340f503a40cabaf8d6f89c32a3ee57cc1e5a658e2fca85928e92bc |
|
MD5 | 558f5e69510d3fc8dd75eaaa0b268e38 |
|
BLAKE2b-256 | 3a217d9c6874d76b2d704995ea06a19a89ad50bf89de524f7102cbb62cb25ffb |