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.70.tar.gz
(146.8 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.70-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89ee28f27eead766e924b0fef31854b44d5ecf9682d9bb03c25a4f4af5bfe475 |
|
MD5 | 809905de8f37f5b85e4b7b5319889e9d |
|
BLAKE2b-256 | daab95a1b650bc2b782fa0dd512b33a02629e23b7ccd521ccb2ea8890b23b3e8 |
Close
Hashes for waveforms-1.5.70-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98cf1836b3e2bc1afd77f63f581b3360f625483232cde667d0132b0594bd5746 |
|
MD5 | cdc0722146b489df9e3390c9df35e65c |
|
BLAKE2b-256 | 2105fc136770c3abec15d98e8244f017a81d8e837046966a3f81bb846d0fdd74 |
Close
Hashes for waveforms-1.5.70-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaad1f50592bc81199ac22f0e299d6d5c56d88336dc7a79c100ba3545bde9805 |
|
MD5 | 5be899f47ed82c0d21da115b3faeaaf0 |
|
BLAKE2b-256 | 90e6181b5d51d5b55eb4e27d4590089f8a41e7f16c27c5d847c4d602800a7aa6 |
Close
Hashes for waveforms-1.5.70-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1589001364272d79eb2de32eabd11ead99f80058e5c09935878730f8288a784f |
|
MD5 | e36e7e254fce77fee7000a9cb1f2d97a |
|
BLAKE2b-256 | 0243c44d72050c271d3d15c0d3a182e2822cf1a4a8e44463a62bcde6a93f10f4 |