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.75.tar.gz
(168.9 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.75-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5ff7fa865386e0a176a6ef80c212e3f929dff566c1cc5fc8b09854c4b669095 |
|
MD5 | 67877ee4b5d5f7ab57975caf6870b311 |
|
BLAKE2b-256 | 7b0bc4de109a71b36ea19b60382df9185117e4be8676f8aaa7d5e82739ca08c4 |
Close
Hashes for waveforms-1.5.75-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1027f0301ff355856a290a16b7b56d04b5f66cc95b4c81193a391069030caaaa |
|
MD5 | 19bb96814fa8384170571743e9700f50 |
|
BLAKE2b-256 | 48e5450011cc94b07bd70507e4726723c5fb3e27deb584d2b352d71b83a366ae |
Close
Hashes for waveforms-1.5.75-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e580721e3f60537e7534e0d9759d0e30eaaf8ea502323bd2c01b77bc0815b3e |
|
MD5 | 9c36750f78c47bacbdb797f2bc3f186b |
|
BLAKE2b-256 | b8581434afb7bf7d793115b60ead17f08b817e1a2d461ec2f9ddca204c6707b5 |
Close
Hashes for waveforms-1.5.75-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bda542dcc67e9e9ee2121d96bef2ee77fef46cb028ede3c9d9151604e02487ce |
|
MD5 | 85bfedd3af2f6e910aec6f5383a95a06 |
|
BLAKE2b-256 | cea7f66cc921847c425b9d5aea57695a9e29a58f5c315c5fa1da302ed41fc2a2 |