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.72.tar.gz
(147.5 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.72-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80ca37d3bc057d631f938fdd4ed4eb25bc155b34e9863add9f5078b344ffbd59 |
|
MD5 | 054ec71d9e891866ee5db32672bfa9b4 |
|
BLAKE2b-256 | 5f1b70410f9b8daed0b84ad05cdbc7148454288de8c1043bb30e6d785f53bad5 |
Close
Hashes for waveforms-1.5.72-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02e8f435b64027c74645fb9ccb1b193004d44a6d9e5b79fdab4040b02724186b |
|
MD5 | 7197fb4fc2de741504f16e91fdfbf756 |
|
BLAKE2b-256 | fc4d7eea97669d5a5c74a73a4ac0aa0cc00a3159dff740b54f2d403fccef4b88 |
Close
Hashes for waveforms-1.5.72-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6f21efd7b51d437e9585efa79be309091701eb41ceee0623ca747108ee0223d |
|
MD5 | 426c3a40767f3ee4230cc8f0439baca1 |
|
BLAKE2b-256 | 6abe853b4413163e09a57b7618003de7a693309f725a91488521caafcd4383c1 |
Close
Hashes for waveforms-1.5.72-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5977eddf722de7a6f1dd6b8cc0aebef8937c75e969665e6ba0bd89c7bf198e5 |
|
MD5 | 500bec20c1b14fb79e63f01d5a820f4f |
|
BLAKE2b-256 | 73d91f3caa57b6141c47a88aa9abb1e2b1ba0bf3f8f6e298d0002f975063cb66 |