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.9.1.tar.gz
(141.9 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.9.1-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6db361d2aea7dcc5d0dd65f1978c06cbe07c3ee30d64afa8f70fa0fb03a6610 |
|
MD5 | e1a43698afb812ddd4043482ba0eec43 |
|
BLAKE2b-256 | 5c9177794ae5cbc640502501d7dbd8aad230f4a932171712bbff6d556fa30ea9 |
Close
Hashes for waveforms-1.9.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b4236415eb665e5bf938eb44d90438ee395f48e5ef0a362c40c456770cccd0d |
|
MD5 | b0ca25067a4c57379c31bece5a705c6d |
|
BLAKE2b-256 | d4e5e40d846fe8f0714b505ab3415d45c5a4c7c364a85c324ef174d3453c718b |
Close
Hashes for waveforms-1.9.1-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c855efcedf98518acbd483d79b8002a71f38e2fd0fae7c5b3aff04117ac4820f |
|
MD5 | 28b79a3762e75bf023e4869266cea57b |
|
BLAKE2b-256 | c520d8acf978add6b036b73f1779923ed2814158582f663a8e0ddff8d5d5d4e2 |
Close
Hashes for waveforms-1.9.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e06d5df19cd8f16955da1fb1ee7f57ff9643f74a1922f22c742b9f986be9af47 |
|
MD5 | d53036600a41f6e61771c7da1ed1fae6 |
|
BLAKE2b-256 | 7c631d7504a261d7b7ac9a5bc46e15aacb7727304ea3cdcc28864f281673c8d7 |
Close
Hashes for waveforms-1.9.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a55ed3bfc1eeea570a046a7b199177d110c2ee5498ebde14fdfa388c75e67bd |
|
MD5 | 3c214f9c985a59ce3b4d23ed7740debb |
|
BLAKE2b-256 | 42ea91e6294f281a2a86a3f50e0f11fbd4f6a46ea0c8ad2feb33a471213a4e27 |
Close
Hashes for waveforms-1.9.1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3676742b60fcff5e6cbe03fe1c9838078c49632ab9a77481166698349fa55c42 |
|
MD5 | 0994acba0b7b8cc4cf5d02ed9df097a6 |
|
BLAKE2b-256 | ae7c97be8b83b42840c4335d258f903ff433d5c6061661d43979bded9cd44e1b |
Close
Hashes for waveforms-1.9.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79d9f879f7ffd8f918296440be9da2f291cacd3867b2559addb28d72124a62d1 |
|
MD5 | 1d3dda9a91ee6f6b2523be0d42fb90bd |
|
BLAKE2b-256 | f72ce64fab33a56ae120d9a3aac2d37fd37dfd6d1324df710f8a389c7345ed22 |
Close
Hashes for waveforms-1.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d79fb78213fd944715f71d912f1262baa6f1e01a11dbac0320a34cb933e18b0d |
|
MD5 | 9e7160ee390b522b82b813188a7ff9e7 |
|
BLAKE2b-256 | 4c184b903b8fa84bbf6fd3986289bf69962c94e0e454cca8589ac56d93b586d2 |
Close
Hashes for waveforms-1.9.1-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e151e423d3bb12dbf0ebb6c7d961b22deb55551bbaaeb2808d58011bdfe30c44 |
|
MD5 | 0f828bfb0ea4dcab897c5d76cb4faf0f |
|
BLAKE2b-256 | 08b07a8473dfd05573ad807d8828f3227cb0cffbfb6eec8e9166ed5b0f38876b |