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.79.tar.gz
(190.8 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.79-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 737f62feb18b9babcf3847cf75f3b572cd06a0bd09a44a0f735a0f3b11f2841d |
|
MD5 | 32e1f516251572e292cab8d075a92207 |
|
BLAKE2b-256 | 61670c9daf9735f1d1d11e308717a7585bbdc18d931a02953e3468da0fbea1dc |
Close
Hashes for waveforms-1.5.79-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ab4dd10ec993aefad97697fcf71c3615dfd2379fa10ba4f863db9d2012351c1 |
|
MD5 | 741e35d6ed75d70eee4566a739848ce1 |
|
BLAKE2b-256 | 067176c38dcaf3de78fda19c4cef3bfc85b9cd3fa402520f0c4b98bb284eb4f2 |
Close
Hashes for waveforms-1.5.79-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 244752c6088f2c41e0b9516f9254eea42f0bd467da4873ce93804097cf964077 |
|
MD5 | fb78c2f2e4a558241b317cb755587af4 |
|
BLAKE2b-256 | eed91a67f9ea551d27f52eeb33a4f21d989a1f0e30e6a63ad7da29b142a226de |
Close
Hashes for waveforms-1.5.79-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47cd02723f1e6782a84ee3d78a66ed94fef8cd5ba5d9abc96a51ede7b211f079 |
|
MD5 | 82e6d39fc454e65b44a12b19bc894ca7 |
|
BLAKE2b-256 | edd782c4c1c06c036a6fe6c7d9f7217ac6b5bcfe825df181052ac4dc5d0fb7b4 |
Close
Hashes for waveforms-1.5.79-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7749cb4f3832235b0a29db7f6673f66600c07ff41b605337941352c21ee6bf27 |
|
MD5 | b4030550f0406c6eef0fd6e1218d04d1 |
|
BLAKE2b-256 | 990272cd5fe0865f0fb225edb4ad0c03fbfb5b38cb511f8c0e46c9aee188e034 |
Close
Hashes for waveforms-1.5.79-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58b8c9678fd25c88517ed1d6baa4309e5c7589b0c4ea6979ec96653c76e7cb4d |
|
MD5 | 275f8ed98754e3b389e6e23d2767da9f |
|
BLAKE2b-256 | 08bcbc9c2eeb68829cc154ea0c078aa5c7f4eb64d84d5ec9788444b141af9749 |