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.2.tar.gz
(236.3 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.7.2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d85d38ccb5c369ad74233b0ced0bc0e7f03cbc2ea146815a37663f23e967fb8 |
|
MD5 | 20f45a61c853e8b9b0915c53144a78e1 |
|
BLAKE2b-256 | 521800ecf391e2b1898e9a59db3d6e4ed1975310f49b44fb4cc8428feba36396 |
Close
Hashes for waveforms-1.7.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4337891c83b6b1905077a88a5eea5bfb3d74ca7fd044746a6f4965896d71ae05 |
|
MD5 | 13dc4f4661bd9007a40d0866fed95a0b |
|
BLAKE2b-256 | b42be74df42f51c951f579a8a1812451655dd5b72b45cd57947b01d8d7f9908e |
Close
Hashes for waveforms-1.7.2-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a99407e2229f0728cfb974f0bcf070bcb04200deb03be25d12b1667ab07de51d |
|
MD5 | 28e3776f39397641faa22d86382a7ded |
|
BLAKE2b-256 | 6594567aa47f3ddaa4ff5588963bf08a2dedd21be1b2e8baf9e1c0bf2981571b |
Close
Hashes for waveforms-1.7.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 713ee7707a9ae940dcde2e258a7178dac0d5c8a89cc80051d05d556ebb5ceaa5 |
|
MD5 | 0892c0a41e169aa1d0e3d0b711705e77 |
|
BLAKE2b-256 | 1522fba3cd5468fb76d983d80c4235915e6df8e28c20b198884615a8d38c3bf1 |
Close
Hashes for waveforms-1.7.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55d071c8c03d20e333f7083518ad209c466b51598592db7f429b91f3840c9fe9 |
|
MD5 | d5f1337d57c4699430b32fc105eda064 |
|
BLAKE2b-256 | 8083a5b178686ca3da44bdaaa50668876fd4df974842da55e09b11c4dbadd516 |
Close
Hashes for waveforms-1.7.2-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68e271d476072597924c87bf532c229d8b551258bc1dcb7804249874cba01a73 |
|
MD5 | b312f7cbeff0b9b3b6c749dcc7435458 |
|
BLAKE2b-256 | e98f455955f7a30160c1b2f1638f48c192db2438f08e7e53fa5a7b3f2dcd8d80 |