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.7.0.tar.gz
(233.3 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.7.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c3a1ccf56e47699c78faf6e49e9af6e46b3c97c73da45c84e189a4474b5766d |
|
MD5 | 8ad481bec8b372047b78b95ccb0d9912 |
|
BLAKE2b-256 | 4f9adbeb4d0327170840293a5a4251c8d832965916c0237265fe957b6ebbf0db |
Close
Hashes for waveforms-1.7.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0125bab004feedbd03aa27b2b1e366a95e588a3e7a5711c984d5a64914473942 |
|
MD5 | f1afe466b17b0256d811405c3a0e9164 |
|
BLAKE2b-256 | 3bcecab4d09f5cf43d60bc40803343ea84f478d797a83e4edea189239d4ddc8d |
Close
Hashes for waveforms-1.7.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 692aeb71ce01326422ddca10689ba8648299a58699b786679a9f4fbbf9acfd20 |
|
MD5 | e044d28bfad432b9517436bb9b19e45e |
|
BLAKE2b-256 | aee67c3c744de4cbce5e361a83e58a04cc036b92e09ae42bdc06e83f22a80e59 |
Close
Hashes for waveforms-1.7.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fd424867b94ab8d9d854107c7a80dd4bac0e35c164f585c365ca4b851c49718 |
|
MD5 | 193345b26cbbf876c23e71c2d61c3a7d |
|
BLAKE2b-256 | b32e9546fc45ebf1ed7a7e24a5abd0edd36c4f6e3c95fb5d00d4cdfb520a9b1b |
Close
Hashes for waveforms-1.7.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8608cda2b9630a6e71e4f4303a5e33c0380c415015124a6a52d51e75cbcab06 |
|
MD5 | bc71ee85380ae297f7642eaeb7217979 |
|
BLAKE2b-256 | 6c38043409518fcff67d48ebfc20ad929091e9ee6e308bc36d305eb402f773db |
Close
Hashes for waveforms-1.7.0-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 418457c4773c3a89ed0ee3d9a0bf92a6a909efe8b0ca668996d832dc71c5e704 |
|
MD5 | faa00e9c72c94071ed649a7fed6111ea |
|
BLAKE2b-256 | 1103ee1dd73650087f5ff179b376d97d98ce125c66a2309fadef759366cdd046 |