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.5.74.tar.gz
(166.6 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.74-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b04aa8ee53633e93b31bf6895a3247ebb737a9cdf58ea2599d3ee75fc2781574 |
|
MD5 | cc3b0f1d1d0765c0d66e67353d383558 |
|
BLAKE2b-256 | 9b50a7733f16462f8794d0880b1bf2cf8aac717e60e399dfae88cb7f566a1a18 |
Close
Hashes for waveforms-1.5.74-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38f682cd4496aa4cbdc804306bf5f77d11273133ec68ca146f97ac9dad7a0bdd |
|
MD5 | 6d571b865e8f9321a674fcb2e84d11ce |
|
BLAKE2b-256 | aed9df0c28c3de31092f6dda3250d292bc1792e8b5278392cf0d8e7d27e8ce67 |
Close
Hashes for waveforms-1.5.74-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 860e4f7535d649615c6b156cbd94733bbd61dd0af2c8bac9dd914226780ae957 |
|
MD5 | 5c722a12849a387acf7f9c66c766294a |
|
BLAKE2b-256 | d06f28fad6406b7674b6cd0e2023514382d61998f5193154fea2d93bdd5b1f4a |
Close
Hashes for waveforms-1.5.74-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5977c3e0586d49237a87e6d054fa29d154fb627abbac81e869f23e4ebeb0fb46 |
|
MD5 | 21878728158a6a455d1523edbf8f9959 |
|
BLAKE2b-256 | 2458112664f2828ae4958708472d24b6de75ae7a856a2e42593adea591085205 |