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 -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.45.tar.gz
(107.2 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.45-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84addb4f5ab2aa511bcb8372b3d4544a39a841250b9874e2785d861fb53b0a07 |
|
MD5 | 25fb9acbe753efdd26f9e501fb345248 |
|
BLAKE2b-256 | 30b6a39ffdbcacca045c778324f7b80650f81037e3cc8efd36c55eed78c2ad6c |
Close
Hashes for waveforms-1.5.45-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b22a0d428e181ad1c33459bcfc94cae0379a98eba3d6c6970a973d395fa2a2c |
|
MD5 | 60ffb5f696375941b7d56d4c4f517ea5 |
|
BLAKE2b-256 | c56a18bf9a5446565203c3a23090c72feb8e7370510e0a804862ad4387b74a8e |
Close
Hashes for waveforms-1.5.45-cp310-cp310-macosx_11_0_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 331039138f5a88ef8382205fa0e83db765bb1a984b577c632bf2d246d9b113a9 |
|
MD5 | 5894baa033553dc5f8275c81b6bc420d |
|
BLAKE2b-256 | 06014ffe60c741687612edd115eb5b9ba8b8574365fe15c62932888816bf157d |
Close
Hashes for waveforms-1.5.45-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5c6fa6c8dd89e347292333b9d700e7c859e55121f8c578ae1fe08aead5eed4f |
|
MD5 | a8f28a60b784872d2f7c0ad6244afc0b |
|
BLAKE2b-256 | 9ee20632b57b6b2c16b94a5f369f1717c0790b433503b523db42e64ac61c1bb5 |
Close
Hashes for waveforms-1.5.45-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b94b48475ebc1a44dce8da7fe36b703eb8e6b023fb3242dee20448aeb9fcdc3 |
|
MD5 | 883e464a287a1144ee061e63e6a9a34d |
|
BLAKE2b-256 | dc88a68bfaf4f4c8b9706d9e6d31ebf7418579d2c8a2cd2de8db83aa32b05fe7 |
Close
Hashes for waveforms-1.5.45-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a097989f2ccddbed912b6eb42b7ae13ab1ee1661ffd56e0d44936f19f27c2f5 |
|
MD5 | 34f8a19b2761b9c196db59f859e24dd7 |
|
BLAKE2b-256 | c6ee1a06d2f8cadf7ca4a3825832a1c776f85c9a22f17500a3c05ee4accc1640 |