generate 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.54.tar.gz
(126.9 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.54-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 572302288642570bdf6c581a732d0bca8741031f15087f77174b2439bb56ec38 |
|
MD5 | 236da46d242e201e514f1aa24375461a |
|
BLAKE2b-256 | f3b8d226da5f21e7e31732f0a41ba7e3cb8c641189955c0da0e5e40713b16203 |
Close
Hashes for waveforms-1.5.54-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c14b2eb9597d7d4cb1a691002dd66ae1b832c0845678f7db81aba6c94ab5f66 |
|
MD5 | 0f70ae08511b7db400076ab8a4862c85 |
|
BLAKE2b-256 | 0969313a93daa2dbbf0c6ef56ee43029307fa50587566add4dca612663cdedd0 |
Close
Hashes for waveforms-1.5.54-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 872240e209642f63615ad789396b6829babd9d597993584fd317d72809021b0e |
|
MD5 | 1c03ac4ed1c2fd944e06181adb206a49 |
|
BLAKE2b-256 | 7a5675911df53216e8daeb49d7d8a3c7b8933c216a8c04a965496e638957fe36 |
Close
Hashes for waveforms-1.5.54-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 069d7b57e16e84433ba6e174aa2be61394e29a99d20c92465404a7e06b724016 |
|
MD5 | 37ccdefff3e7ae7e79145a71282a6093 |
|
BLAKE2b-256 | a426308900ab5dce403e824ae7c88a8497b08e31a01e0246e7d6145c1f3110ef |
Close
Hashes for waveforms-1.5.54-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5606e4e8cfbb1cd65f3ac97fc7ebd5140316724339d18b4f9698b2939168a5c0 |
|
MD5 | 8b5aa1ff2e7a96175f51d24ba13ecdea |
|
BLAKE2b-256 | c9b56818c9d3730ee6100e6fbf7c39634e84bc86919a357e0e22250a6965d21a |
Close
Hashes for waveforms-1.5.54-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef3f15e1c8b527840b1eba77dbee765e3281b4375e94bf19d6a44748896c6abc |
|
MD5 | 6883714cce94879b6dced0fffef240b4 |
|
BLAKE2b-256 | bdb9c99d51a25e3c6d880522ea616e6d276ae3eef546d2d5c598feb4cd56a093 |