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.76.tar.gz
(170.1 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.76-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc6baf8b66d7cd8311c89f8c8084354cfa636d4f6c06ed41e5429eb02cffa483 |
|
MD5 | 492c18db8383b7afa2aa269457ef80b9 |
|
BLAKE2b-256 | 583dd04cfface322090867a71717977b492b4570a90a947064f70886e979c385 |
Close
Hashes for waveforms-1.5.76-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1404125e6986572bc93e93bb34e3dab8143bc4a31e17079c54484154ae41c83f |
|
MD5 | 07da2af2b439fa39baa2f5c077ebd4e4 |
|
BLAKE2b-256 | 6def4588f4b158160596f09c7c185c9882aa2b46b80c9107cf1512bd856c5cff |
Close
Hashes for waveforms-1.5.76-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 176f1cb54bc309b3e1d7e4d31d8eaca6342577de036db05405b62ab7df801b5a |
|
MD5 | b424ee62351e4a0923cddc346e59fdd8 |
|
BLAKE2b-256 | a1fb806cd1a31014e17e1aa32bedf05b598efe7d5d7637b537dccbf7babf5420 |
Close
Hashes for waveforms-1.5.76-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9a1e72c2f849f7fb2444ff0f3b6eb6c7e2fefbcb3cc77bb071069f97bc244fc |
|
MD5 | 23a479ba9ccf34f8a18c880bcc5f06e1 |
|
BLAKE2b-256 | 28546f27c3a0b69cb93f595891d52597ecd2a8022fa68c0cb398c8d43edfa10c |
Close
Hashes for waveforms-1.5.76-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3819de5a3e8cfb79b208651af2b1256af475d28ef150fa3f6bdf54112843ca7a |
|
MD5 | 54df2d4cd52c2d4d9b16bae4e9b6e00b |
|
BLAKE2b-256 | 1dd780803aafa1230e6a5d77fdbf8dc3c1e0bf872719334011c535321624264c |
Close
Hashes for waveforms-1.5.76-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9d654c89f04fd5cc9e92c3be46150e4bbc9ce7178b7dd048f104c5a500a8022 |
|
MD5 | 399e268b270d9a5ece9cd2540ef3d246 |
|
BLAKE2b-256 | f92e6800d4ee16821dfc6884cfc8b2bd4f5feff19cda94cd0cc9b99ca43053f3 |