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.7.6.tar.gz
(250.2 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.7.6-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33143222999186e46fb996113736cad7e7d640edf498a55a769fb83564abac81 |
|
MD5 | aec82d401ab35a03edca4868590c31e9 |
|
BLAKE2b-256 | 8fd3f8e0f2715d944895fa45c3abcdb86e9521a6e525cc7fae695b459d78b2d0 |
Close
Hashes for waveforms-1.7.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d53930538af75bc581405a908b794f67447925b09798cc0f15928b431d41a65 |
|
MD5 | 838fa155403038e48f912b694f7c76f7 |
|
BLAKE2b-256 | 7711654f54176d9ca1fae2649d30533fae2453d2b20192158936b5f613a93971 |
Close
Hashes for waveforms-1.7.6-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1059e1c439fd87564b2dc821ed195b0a520fa7e0838c0961fac44c4eb98c1b90 |
|
MD5 | 14d7f26543d377e67971c072e4983c48 |
|
BLAKE2b-256 | 8127f57d3fcfedadb2a3b0c2a1e2c3fbab5f926b303168185d78ad928e3fec13 |
Close
Hashes for waveforms-1.7.6-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c33d179e296345819fcedd8b31e3b61a674a987593848b4ecb872bfd0ab950a9 |
|
MD5 | 6508012884292c0faaffc37c2da1bdb9 |
|
BLAKE2b-256 | e7915fe6750b9f78ddba0d0af610a30b5db0e1ba5ffe1eef1fa38490dc2b188a |
Close
Hashes for waveforms-1.7.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b918e18ed5c671f3b7fae466e44d025eaa6998280778e6d08b7d334e8278f0d |
|
MD5 | e279fee15959ac00b78bb71c7c3ce699 |
|
BLAKE2b-256 | cf266179b09521585b50cdd09a1e6935edc4b5792b8d3f599286344bd9cb1b2f |
Close
Hashes for waveforms-1.7.6-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe639d90ddbee22a9db45a4557be452e58c5532351be6a66d91ffa9695aac6f8 |
|
MD5 | b3d8c46eea9a779dc54069116b595b06 |
|
BLAKE2b-256 | 3a653f7a275286a8fa5bae8d277ea3f2d7bf21ec5f5e1141f454f18dc3c49a21 |