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.5.100.tar.gz
(220.2 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.100-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0900f7eb131b3a6afc61c26f7a0d77f0c6066f3b9ba7a0e10d98a6b7f610fd8 |
|
MD5 | 640c09c94ffaf0abfb8a1492a52961ed |
|
BLAKE2b-256 | 8fe213a68aa935446f7da779456e8e92d10b953b6e5aabbb9b5fdea6c57ebe27 |
Close
Hashes for waveforms-1.5.100-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 514686eed61cf7eb0ccc46132c27db7b936e898990262edf1ae58e0221f44652 |
|
MD5 | d9f02b932decd216ce1f05265de02be0 |
|
BLAKE2b-256 | f21e2ecc82fd5a60227ce24aa85be92797849503d3b29c16ebfa85df4b153f8b |
Close
Hashes for waveforms-1.5.100-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3b65605d56d899f4a3363286e1c640cbc7d41da51a116fd8d95ac149bdcabae |
|
MD5 | 1d83dd78a146ffe6fb1f2909912deb93 |
|
BLAKE2b-256 | aacc48a189d22db933185cc7cf577ed3501e7b6de6b2c74a1a9cca4698d97797 |
Close
Hashes for waveforms-1.5.100-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 084f980294cfe8ccb5396aa545b00051146194f67c0a0a196c80f599625cff93 |
|
MD5 | d9a0e0ccc5779508177c388273eedf9f |
|
BLAKE2b-256 | 7543a98aa6602d4a8800f60d5e4f4e89d2683c996aa6b8d5d97d84899e51241b |
Close
Hashes for waveforms-1.5.100-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59bc725d4da6e0ebbfbd21bb6b1c4bed2da66392052ddfe6333187c0ff0eab75 |
|
MD5 | 6a1b803314bec0b92f950f8729b911d9 |
|
BLAKE2b-256 | 7e79b33aecada7c1a9500f3e7b8d4da915c2407b9312a7abae342b3b097aaba3 |
Close
Hashes for waveforms-1.5.100-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | caccedec7efa26aa85bdf3339432530f44e779bf2ced89234f2b3b4c5a96c8bf |
|
MD5 | aa6215522e3e530b38bb599ef96d7198 |
|
BLAKE2b-256 | 3dcfe1b3a4c416193a4e783cb6e85fb9ddb60ce2e53670b9ccb7fcb503ebfef5 |