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.84.tar.gz
(197.3 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.84-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 990480de8ac886a01090184251f9ea0e2d0e9a8a34aa813d4554bbf3fbd13327 |
|
MD5 | 0302e4bbba96eb7f7ee0a6702d68326c |
|
BLAKE2b-256 | e5a8af5d38abad5f955dcb4a443fb288af895fdb934ce6c7c6d6348856c2a246 |
Close
Hashes for waveforms-1.5.84-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcd1a4352c8158022dfc7cd02bbbc0d99937c07ad9290799a2b37be2359d98bb |
|
MD5 | 30de88ba530a7989b1a5da92f19e33cb |
|
BLAKE2b-256 | 7a551ebe1d816629318c95d8fb013547cbd50ff3631548d504b033e81f78a67d |
Close
Hashes for waveforms-1.5.84-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2389a7a29f8aa419067c687e0945dd3d094014d82e52a8dbf99ad31f3e425348 |
|
MD5 | afecfbce9de35d82a4f902a9043be4c8 |
|
BLAKE2b-256 | 4c573cc6ad65b87005effb276d706abc2bef81faa535df082edf4b6a5eca2569 |
Close
Hashes for waveforms-1.5.84-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f5510450a4e2e5682d8d3e86986fdd34d2750bd15b4161c18a5b597e045c912 |
|
MD5 | d6bb4ce10179be70b36fc2086360c796 |
|
BLAKE2b-256 | 5848c963f88217512e9b55b584399a407cd0bcbaebb158473364abaf933748c4 |
Close
Hashes for waveforms-1.5.84-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4634f3cc146260e94d0c9e9d93ae2a9a1dc18a5db4a931d20492c0e826018178 |
|
MD5 | 687dc3f89706014eb60da65b0662d1ac |
|
BLAKE2b-256 | e865c4bc4c5dd78f03a5f9115e70d5f1a64962d5cb449e6deb07e400c8a67f07 |
Close
Hashes for waveforms-1.5.84-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d709ef181766c47d80e1769dd8bec80ca98a299026e23ff72c2620e7a7e3faa2 |
|
MD5 | c7542806cedfe5c891d9b0b1190a3b24 |
|
BLAKE2b-256 | 043975d30bf0427c1d3b8d67c65f407a5f7d61a518e5f3c9be669bebe9f036c0 |