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.4.tar.gz
(132.5 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.9.4-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b8f9a23bdf8ac7c601366ca781c91d4293fa5c2d2b2ef2eef358cc713a14588 |
|
MD5 | ad86122e12d14fba0f5af57bb3e5d9b8 |
|
BLAKE2b-256 | 1b3bfe24518d9c6f52f0fbd121b17ffa5607ade2d26e9fd8c42bd3685843a46d |
Close
Hashes for waveforms-1.9.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6f7ffce54e89515b50bd927c48cd8e41d4b03d5d71abe97aa303fdf5baf8a51 |
|
MD5 | 235a7c926cef340ff650695104fa25b6 |
|
BLAKE2b-256 | d3a8f2adac37c0feae22ecc81b8d4016a6583e947a687037d4dbe39b51893826 |
Close
Hashes for waveforms-1.9.4-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f00c290fe4be3cd9ac31ab281738c14ad587a051cc21c6e031f5b3ccf38d4421 |
|
MD5 | f52acdf0c6af0cb9850db53cc6a588a4 |
|
BLAKE2b-256 | 2e17639d2c74705dc87533cf5ebb572d086331c744a5f1386561cce3cf133914 |
Close
Hashes for waveforms-1.9.4-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48b47b4c3bee3a4f9edc9cf0ef4222f93d7b0f3e24a6349e65cc7a7b2be71e36 |
|
MD5 | 5850a42644cbb508c2b1847ef8090fef |
|
BLAKE2b-256 | 2d2b7d5fafca901c0f8b48bfa62235e9b8579f3492fc026e1dd543f4a27654f3 |
Close
Hashes for waveforms-1.9.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73c4f8b093efe6f4f0a4fa1977eb943f21e78a65dd10c28ad9141f59f4b7ab23 |
|
MD5 | 5820dacbd7df62dcdb12016b6c91193b |
|
BLAKE2b-256 | eff15d9a91ba8e85c950d0ee63ce8eba24942865bf1f2364090eef0dafa9ec54 |
Close
Hashes for waveforms-1.9.4-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87d1d4fd9476d0db26bcb467ee770eee3a509c0b611d14919ce8290ed5698b8f |
|
MD5 | 7c6e80ab9b1bbac32095ff4220e14da7 |
|
BLAKE2b-256 | 732aa101c875fa607cc2945a7070f0ff35576a43ef8eb3dab4971f137c8c114d |
Close
Hashes for waveforms-1.9.4-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d745b9ab1c1d1115e6ec12818e60ad1577d1962dff0e732c042c4c4a7bcd5df6 |
|
MD5 | 967f05fada32001196105a29d388394c |
|
BLAKE2b-256 | 7b7eb76840607fc5f6497c8821fbf8537567f2ca1c316862790aaba34f9af664 |
Close
Hashes for waveforms-1.9.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b855fd2f226b1e0e94a37b2f6a7f9bad9322b4a11e150ff6910978efcfaa1599 |
|
MD5 | 64b3d4872b0e4ccb7519672f32c57593 |
|
BLAKE2b-256 | db042ce48f653a3aa46a8be71bf711f4853af857855d7e86e9c3830fd498e170 |
Close
Hashes for waveforms-1.9.4-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db5c62d7d9c47d93103e4876d9764b3aee9e21243f8225a23d3715b60e3f6ade |
|
MD5 | b868b23617a7ff47d9aeb5da79737998 |
|
BLAKE2b-256 | 3c1f2e7951187e2723981d75a3a101289893887e107a260477879d7b91db9133 |