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.71.tar.gz
(146.9 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.71-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ef2e18f7002cb8d4b507f82bdd02e0547cacf456b0c57478d6bdc1876bf8826 |
|
MD5 | 6f893ec40323755e8a794e3bb661146f |
|
BLAKE2b-256 | 36cc69015eba593da7d1df40a7cab9e13fbaa280f2636c8cd8eacc259f0d8a22 |
Close
Hashes for waveforms-1.5.71-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad6412a067810e7104e10c4f419716f64f71b69d5bb512ccddfed7194cf0b3cc |
|
MD5 | d40a8bed8a1eb2bbe0bba154df3a7e43 |
|
BLAKE2b-256 | d528d1da639851cb90323d6e44c15bca58ec4f966a8ed526fa2b167ee838b519 |
Close
Hashes for waveforms-1.5.71-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c59dc4fb64e197532e0faad7239baf966d0138db36bfb40745767b65d358e734 |
|
MD5 | 9c4580924ce432e418042dfdc05925c1 |
|
BLAKE2b-256 | 563f397d8e5f51f8ecabda552a8c233d003e957d44f186e513eca90fa2f9b71f |
Close
Hashes for waveforms-1.5.71-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34e0e72ed91d35dbdf42a3cf159b1c6d46692731c7ba0bd3887e9b75b7691e3c |
|
MD5 | c542eb5db398578b0a3f12f243e4a024 |
|
BLAKE2b-256 | bd9703f431a18b9ce904bcf8a6bd69c1518fb19f53c56dee98e5928c7bc92805 |