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.9.2.tar.gz
(128.5 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.9.2-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 522622020c60313ac52aeb41ff40879c9bfee64674648c863a41c91d1732ee29 |
|
MD5 | 9c727d62a4ce25df009f96aec5d9584c |
|
BLAKE2b-256 | a327b1b205bb6d7a5b0f31a0cc02f0304e451fdce17de8e27cfe1b2fc9f1e1cb |
Close
Hashes for waveforms-1.9.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a810d25aba451b12cf8b96db4972ac266868ccedc5e28aeaad7c5fecb0c78b66 |
|
MD5 | b28534bca5898165caf5c43bb82f2ffa |
|
BLAKE2b-256 | 212a3c41a50cf5ec2c10fe2b303151891f64afaf00b164dfb3151662cf1eaff9 |
Close
Hashes for waveforms-1.9.2-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f7aa3b0ac033728bc4ff81766a68497b10b1ea786f2afb917d40462a36d1d6e |
|
MD5 | 9018fbc68b025a7ee5b2a4f7e70f2d01 |
|
BLAKE2b-256 | ba8b0ad6bd0c83130421cbe024f9f15c5a26560c14ae9c87c296d4694121fd76 |
Close
Hashes for waveforms-1.9.2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a4f0c60ac269c369535e5a9138697dd2ceecdd637b0ff033875d05dc1f2f2b4 |
|
MD5 | 1ac2e5d154f9fb6e22812d7d826eb1c1 |
|
BLAKE2b-256 | 8af84bcae435b1bd59a1881c6c08b7bc6c707eb79d2a2ec2830198acad1c877c |
Close
Hashes for waveforms-1.9.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67228bf584078da4a086922b96119cac83f17e827f3001b351e0d01575577070 |
|
MD5 | b1aa0bc54d7b9f6e9e3edb9b96bf83e8 |
|
BLAKE2b-256 | cf36d1f9c3ed2a8182152933d951f6948f26b717c40487121a69b54bcb23ff32 |
Close
Hashes for waveforms-1.9.2-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86b40f4acd5ca7e830eeca73cabbcd640eced918224a3e976a4c19b2af208e70 |
|
MD5 | 2235a3e975fa4ffcc3877183f03adfca |
|
BLAKE2b-256 | c5472730f3b494deac6acc572abe05fff168ec0cdfef6bc28821d07af6162712 |
Close
Hashes for waveforms-1.9.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0160652aa42b70567353277e4401ad6127e7e981fe12fef2abd60329b4ca00d5 |
|
MD5 | b93e4cef2bb37d9efbbd1a6e63642d07 |
|
BLAKE2b-256 | 9527b7c3f97d39725c859b2bbc0edfbd70045165634e58d506e26be482922c6d |
Close
Hashes for waveforms-1.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e13391f07332597fc7a3b5d914d7fe7fd3d11a0f043285ecc0ac8956df844e9 |
|
MD5 | 7344d30ce12aa709116b3d1da4b9bc91 |
|
BLAKE2b-256 | 1d4ff7475affe99de8dd17da53cd30d0ea2f03adf2f039d1bae3dd4004e75a72 |
Close
Hashes for waveforms-1.9.2-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e2ab3a1deab46741df032bb6f8330df6b7e3721099bcf40beac780ed24ade7b |
|
MD5 | 02690feb3625934adf674f476dffc92a |
|
BLAKE2b-256 | ebb01303f4803ace57dbd5fcd53b6620099eb320f1bd89045bfec15659de74d0 |