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.9.3.tar.gz
(128.4 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.9.3-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9187a54e8c6559b77de67dc80f3ab832c90be34a86d6e7c1a930b0d77fe49fbb |
|
MD5 | 9a9c58510764341bdd71fe82ed435acd |
|
BLAKE2b-256 | b2ee91d56b08b75e9f40187d7996172306b9bb2d38732d829e2a1f7f2879e21e |
Close
Hashes for waveforms-1.9.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39ea3311b3cf1244e2b094ae7ab3c6aa5919c46bc421c7a2d7e47b1be7df57ec |
|
MD5 | a6915383c26fe0baa4a90ad5950beacf |
|
BLAKE2b-256 | f922cd6e2228c7b2685f5d39907a0318090fd6f84a1ea8da47a981b167042ec8 |
Close
Hashes for waveforms-1.9.3-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbf2d3ff5544dcf7170b7353d534b3a87d17859105aa3af244462b7dc95d2dac |
|
MD5 | b0875ab036d2eb0d6bc26c7a2f9a676b |
|
BLAKE2b-256 | e8f35914d29d1586ea482185e0f29fe796d027551633bbf39906a7075b7a8f6d |
Close
Hashes for waveforms-1.9.3-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19a32ff6c86c739469b83ff344bc1fb05525a0f1e6b4abdea0e93e1fbee8f292 |
|
MD5 | c59715addf095fdc6ce9ab9570ea07fb |
|
BLAKE2b-256 | bee425112ff31f77aff03a9109080033e1ce0a6bd835553ec2a3d5355dd8271a |
Close
Hashes for waveforms-1.9.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c5d385e39b80eaaea6cf8b954d83118e6343656200c53e83d7a4954c26778c0 |
|
MD5 | e4f9e4dc0c43e4d8b64d2738e396bc15 |
|
BLAKE2b-256 | 83bd53a5f32a4246db197f96c9d83e76edc0216c9efb57cf8a5f104d8f50e131 |
Close
Hashes for waveforms-1.9.3-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a023450dfdac795d82dba1607d2eb2738eae54939f5c4a043feb7539cfbb8e2 |
|
MD5 | d7d634c2ad60ed295bf537801c0bd93f |
|
BLAKE2b-256 | 80f89e1b1f37143a4369ef5e2b710dda08feca4cc9140eab2cfa45e52123378d |
Close
Hashes for waveforms-1.9.3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9f399c2cadfde6242c6c21ede7c16ccbb4b6a15fa7d33f8d95e442988d576bd |
|
MD5 | 1f0adf58e110698902b8ce64b898a2aa |
|
BLAKE2b-256 | 76ff92a0ccd5414b42117d869245735eba6667baa78a1badfaf0ba173637575e |
Close
Hashes for waveforms-1.9.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85d37b2e1d9fc7a9e91b8d2ded533b6d29b005498e23c5256ef0dcb915c225a9 |
|
MD5 | a9e4f9e5b7df43d0acf9942c07af329a |
|
BLAKE2b-256 | 8963c2b6af8ee67286b7bc5c36f853a39cbc91815a278e1e84031bf4918638ec |
Close
Hashes for waveforms-1.9.3-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89ddd139152e6345031952d6775aaf4d871debddf9a4a55c0c58210a90c67e15 |
|
MD5 | 1b6ff876fd759161f56b87aa70b1d7fe |
|
BLAKE2b-256 | 594fa812f3516fa438f07614e9921656c39126fedd93c9a7ca5a6edc69d7de28 |