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 -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.42.tar.gz
(105.6 kB
view hashes)
Built Distribution
waveforms-1.5.42-py3-none-any.whl
(142.9 kB
view hashes)
Close
Hashes for waveforms-1.5.42-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23b36adcaec215fa684440e9748b70b9aaf79fbc8e5709c7f8ace1c00aff4f24 |
|
MD5 | f1fc16b078638645a27271b522b76f41 |
|
BLAKE2b-256 | 54ab8783f2f142472f55f7f7f0358a49cf8a1bb4f6f78373264ee86f8fa00432 |