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.6.3.tar.gz
(220.7 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.6.3-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffe1a150e52c79fbe229ed050fec0b154126b4472687164ed6deb5cf349d19b4 |
|
MD5 | 6cbd782e9a4ae55909c6784fc4ba1241 |
|
BLAKE2b-256 | 009931aaf522c5e0b33f707227894a0ffa1c82d95c6a51f4ef39a62f532cee92 |
Close
Hashes for waveforms-1.6.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e1b1cf85a3e15b2f622766fc43a93b4c1cb30a185ce016f61861683e1452bc7 |
|
MD5 | 57cdff113bdccbc2990faadd1060719e |
|
BLAKE2b-256 | 87a559d98346bd7c456901efa56bad8720705b13d3aceef39a72a6859e3b6c9f |
Close
Hashes for waveforms-1.6.3-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bdc5729c17148a4b90e47cd1c58401e45abc4691d7d1ce1fcccd710d9183204 |
|
MD5 | 57386c309d2912736b3fa9ad3be1176f |
|
BLAKE2b-256 | 3d8864eff29baecfb9726fbc99d6fca71509d8527061b780b489c235161c658a |
Close
Hashes for waveforms-1.6.3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d33aebab08d205299cf5f36492fd467d184daf763725094ebc67a1205833799 |
|
MD5 | 7a478c5c50feb97058ca00b44490c99a |
|
BLAKE2b-256 | cc6f30e2ef5b73d9a1a25757b2f927c05c4cb9ba475626cb07856b887cf7bef4 |
Close
Hashes for waveforms-1.6.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18eb88ca4d067a20f29a103283f34fc5e92493a1a4ae52da37ca8297d9fc2643 |
|
MD5 | 928270a025f8aca6bbe62e3fa6e8a95b |
|
BLAKE2b-256 | 26fe4d5a25d650c7ed6309c93547e9878bccb99bd59c0da24db238b0296fa898 |
Close
Hashes for waveforms-1.6.3-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2ad83899ab36b3a70dcad448cefd2fc366f3c7e8c54e472bf49e29bf6bc6c11 |
|
MD5 | 0bb3f551ecc94080ccaa8380b9efcf4d |
|
BLAKE2b-256 | a0be2b024c200b534acd3e2c7b39df160e27f3aac5475a7b04c1ab57813d509a |