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.80.tar.gz
(191.3 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.80-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3d58d67ff6e4030896161c5f94f68bcea22a138a55901789b2f6959510e8b86 |
|
MD5 | 5083c1a0e9a78d1229aaffae5e09a280 |
|
BLAKE2b-256 | e89292be4a4c0cb49d59e578b38ea6de4cb9f7f9b253fb967eaf2fa5db042aeb |
Close
Hashes for waveforms-1.5.80-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82f9efa9ac6d101965ac46be8aaa597c331f71912e71add7a27c0e34c03b9287 |
|
MD5 | 4dfbbe1b65c43bb3cb23a481d7971222 |
|
BLAKE2b-256 | 2c3c2c948b7e7ea0895d3abf813bd4bd908f1c2efe8c1a99a1e008d572dd1895 |
Close
Hashes for waveforms-1.5.80-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97c1798dda20b6732ca4b1d4f41c1d8b6685f97bb40b1be0b2f689c00d5d586a |
|
MD5 | 8e6619c687d3fbf78829e291c448323a |
|
BLAKE2b-256 | 34f432fb0c08134856647f190417cf372850b8fe18c489c729987384c81dc4db |
Close
Hashes for waveforms-1.5.80-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf2b81c66afafb8f8c873bd3a7971523ea2c04f960f806fd184ea5bd1111b637 |
|
MD5 | 6f546db911956b5e4689e8ae3399748a |
|
BLAKE2b-256 | 431a6db272c520db7245bfdba7ea71544d9f76a5450875ea07da57e814f0bcfe |
Close
Hashes for waveforms-1.5.80-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a28226e8e5a3ebbccae615a6c03f186b299fbb468555b2307386755300130b89 |
|
MD5 | 93b0aa7ba691b243df9a03fa0e922ff1 |
|
BLAKE2b-256 | a5b00d513b5197f4fdd2bdd5f88c6d2242fedc2bfa43f8b5c6a14c8287d938ec |
Close
Hashes for waveforms-1.5.80-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d47bdf46d9858062febb90a44eb7644e36137df2e7280a56d849741959d646d |
|
MD5 | a8e9c5c8f13de95a492a75956995c96e |
|
BLAKE2b-256 | 5094879579805beb7e04b67a9e663c6aae9893ff1ee737abd0f2afd22de17f6d |