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.8.5.tar.gz
(268.5 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.8.5-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cf364bf45744c05180ce2229ebace4018ac7a8b434e11e94f4d673d05859509 |
|
MD5 | 2ed341e9f6243b1bad66624bae6e5ab0 |
|
BLAKE2b-256 | 61a29c66607a4d0b3d630980468d86aa8b6e4199bbc2f60ac268e51150fff527 |
Close
Hashes for waveforms-1.8.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 585ac99b82e2dbbadd7d95d52ec59934f0893aae53ef16cbde7accd8a9a6fdbb |
|
MD5 | b16dad969eb95759b19b67f8ccbd45bd |
|
BLAKE2b-256 | 6780b69cd28cda0ce114e944d8358b9ac7ae4b4325cd33e8f5144c6c454ec581 |
Close
Hashes for waveforms-1.8.5-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23cbd0470d9bc256a8cf70430e356b227755bd3336fbb6ab3e7a7ed816dd90d4 |
|
MD5 | c6860dd088843b4fcb14f4a4f4e2b3af |
|
BLAKE2b-256 | 92a6dd188945a33b9436bc4f298485ba9e737db817571b89dbafe610561d2e5c |
Close
Hashes for waveforms-1.8.5-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d917fdfcb615bd5e9a7906836926e74ca6001d9ee24fcf76f8c399e4fbc01024 |
|
MD5 | 7a7a4b0dc162c9ee665fc5ea750a9465 |
|
BLAKE2b-256 | 5735b7446fdc6b0b0ed46606cb9d6ac7ab769fd9995267580dff4434c3543def |
Close
Hashes for waveforms-1.8.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e01f783a55390f7ece7d68200944659dad7ed6dd0e242af07d92c09752e29b20 |
|
MD5 | 993ab7287cccb66212d47435f39f096a |
|
BLAKE2b-256 | 988cbe04eeac0cb3a1eedec4c5aca06ab584f6e6d1f84800b80884b08babcabb |
Close
Hashes for waveforms-1.8.5-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24d11e1e27f1f1f02498050a243efff94661ebec97b7a5ba078731225439c0d8 |
|
MD5 | 263873bdf09b196658e07d88fe42337b |
|
BLAKE2b-256 | 6cd0fd2b1563a5ef7c14db108842e8afb6c76906bc03ccce11f29c965fd0b4bc |
Close
Hashes for waveforms-1.8.5-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd86b78c6a6884493ebb50fdbc947e1bc717f30a27b042b95714206fab551560 |
|
MD5 | 9db7801827f8852fcd0691a9af3217eb |
|
BLAKE2b-256 | f169632bdb6b55cb130bd579c2d3d716cc907a93da0319211cfcb3e0613ad197 |
Close
Hashes for waveforms-1.8.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37cba7174ab07379214214903ca0046368fe25bb710749c671c7a9dc01b95138 |
|
MD5 | 060ebcf867d634423d33ac7fbcf81051 |
|
BLAKE2b-256 | 4fb81cbad1427faf7c18e34d5fee11247ee7610d96420f07bbd892e07e67f8f3 |
Close
Hashes for waveforms-1.8.5-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70329fd34b26c3e67b7ad140625b03c3c314a9c28ca0eb39fffc86bd85d28641 |
|
MD5 | c0c85e5528956ed7064b0d50f374e067 |
|
BLAKE2b-256 | ed052d94bd761d918618fbf934cb049f27ed2f1cc8d8d3f5aa73709f1c38e4da |