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.6.8.tar.gz
(230.4 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.6.8-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 860dc3cc2d7ffc20f68fb90cff37155a85fa3de8e20a80b9a2c0768e525bcac7 |
|
MD5 | 4533336bbb11e1be5b7b19a8467a540b |
|
BLAKE2b-256 | 9115dc3ce3af42797130333d47e0c43140143a19c5b7de147cf98a7f1f437be7 |
Close
Hashes for waveforms-1.6.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13107fcd561900f2f7df7186cd282d6ad88b0784a1982bab7fd95c846b54289e |
|
MD5 | d44bc3ee754d1d4e94e7d878f0bc5fb5 |
|
BLAKE2b-256 | 437b093019d282765ccbad79e419db24fc4b48ebbd3f4182120c51716c86ff06 |
Close
Hashes for waveforms-1.6.8-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8c1cff3c0380a65b680daf5e611f22d6fc6afd837be5e9416045dec9e830453 |
|
MD5 | d5fa890256ba8e62157bcebea840e2d7 |
|
BLAKE2b-256 | 3375a4babf9d096238d51e86e36e6362f9dbce722797628abc28252431873c11 |