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.61.tar.gz
(132.1 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.61-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12cbd5ba8417a7f48c94eb9f5466df961994486606440c2b5b7e86bbc4a7a9b0 |
|
MD5 | cca36956a15672fcb0d147722aa67d60 |
|
BLAKE2b-256 | 8914e5cbc5721797d86dbafc2d0ec71b6bd313c15a3c91e16862a5f44b1b75da |
Close
Hashes for waveforms-1.5.61-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 508cdd4b615242460c7097f528b5df8fd573a5e33899e8f97aa0fc6ab9b56d5e |
|
MD5 | 9b21df6488a2fb05529267e5fef705ce |
|
BLAKE2b-256 | eb7f886b16a51968cbcdd2826420a781d06e175b5cb2014cbde7386b1774d6dc |
Close
Hashes for waveforms-1.5.61-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6344f00540cfffba952f85742f01c334a376659ba398096877261c71225c4d6b |
|
MD5 | 3276bdad7e1c228d10fd047fe285e252 |
|
BLAKE2b-256 | fd6095baf701c6b1934354aef5a5f306bcb40fb6dfdb0641fe0ce139fe4e58c6 |
Close
Hashes for waveforms-1.5.61-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46c7667de00625eba8717e1b8e85cca28bf636d0e8df791c01e79f092ce69b00 |
|
MD5 | e8576472a6721af14169dbc4e95cd9b4 |
|
BLAKE2b-256 | dd203261eadbb7615a1035c4b105ba9e7f71d7f643e5c6878ebb12a36cb61d51 |