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.69.tar.gz
(143.1 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.69-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12a814effc7e5f18141f6783dcfa9c6f99837b4c8732b076aa894c2d8520f391 |
|
MD5 | 8144c4987b44ae7042721a23b8090df3 |
|
BLAKE2b-256 | 06a80242f8889784078912658526500f417e7976f0f6690de38a70c111fed01d |
Close
Hashes for waveforms-1.5.69-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a46e472c4a8cbf0b241584bc082593d64b5c7861d6c1bca2104c659783e09b3 |
|
MD5 | 71c258a446162060f0d4bd9a785531e2 |
|
BLAKE2b-256 | f77db8eadd3c9403496ef4e298c44c4c5be903b64765471e4285fe620e5862a3 |
Close
Hashes for waveforms-1.5.69-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 202683c08f4188010cb3f946d99c1ae0b89d55b0f602f9188722c8e45db3d7d3 |
|
MD5 | 69650cc5dd91f3b4560fc088f919b5a5 |
|
BLAKE2b-256 | 5d2924b8ea4dbb847d003ff784004a1e2b2fc80abb5c56adbc00aa522357ac9b |
Close
Hashes for waveforms-1.5.69-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7273056b614cf14f102b227636cc783ae2bfa41b1af8e6d2a04decf1cf307c4c |
|
MD5 | 2b7324031adc9fbbbb08b8c6a77493fa |
|
BLAKE2b-256 | 75d0e38c0fee9df52394c0947e760f00e1935d8c3dcc168225b24d43c40b8a9d |