generate 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.49.tar.gz
(120.3 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.49-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb33a7f8a3248ec6e0d872f6d36493d852481494870808cb8c8db65872c4588f |
|
MD5 | b23fc788f6c37a3dad593eae00ed72d7 |
|
BLAKE2b-256 | 0111ccf8eba0fee45a30b148831ad12e22b4b45a3e1e241f67388ec683ce9670 |
Close
Hashes for waveforms-1.5.49-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8cd04dd563b8c6035200633b23891c7466f328c581020da28b88b94c6e27d83 |
|
MD5 | fe37f5e9ef90981dab48dee8f1dba590 |
|
BLAKE2b-256 | be9347268a435238dd800fa8d8667f223a21f2e4c931772f7d010228310b1d47 |
Close
Hashes for waveforms-1.5.49-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3431c242f94f58ba606c303324c882b1d7927b08291a34e429b07d951ebc9a3 |
|
MD5 | 65e3f0c3c067d22572aec794162c2e3d |
|
BLAKE2b-256 | 195a0d3af9984d69d5ab7a6f8f1e6a4b6cee59d44928d87f677b9ddbe727b1b9 |
Close
Hashes for waveforms-1.5.49-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 283e375cebaea5cec290c7807436acbb86f05971729a2f556fef43823c4e2c7a |
|
MD5 | 0dc0e3b4466cf423cf3bae8b9a5f663b |
|
BLAKE2b-256 | 9e4c3c6854d43f272ea2088033e48f90d90e4f8debd7d6a53b5110df433689ea |
Close
Hashes for waveforms-1.5.49-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f95b8f508c262ca924f48296445e6a28becfe0c42b15432c7f5ee3c732b81be |
|
MD5 | ac0f254d1c73a0368853b82e3b1b4532 |
|
BLAKE2b-256 | d5f262ce32bdc0c605e6187355a90fce98eb646a98c827d4dc6b25eae7eb9813 |
Close
Hashes for waveforms-1.5.49-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1d0cdaacc1ea62308c02311b1aa38adec31afccecde91a37a8ce4e11b2a0825 |
|
MD5 | e66fb6c4d6e830384f7f9ad36d6f69c4 |
|
BLAKE2b-256 | 430db460f257f420c99197c5c678ee681bfb9f674150539d5f2cb60430b115ec |