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.8.9.tar.gz
(272.4 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.8.9-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41520991c249841890cdd82888965218f402398614743853d1b588c12f73e110 |
|
MD5 | a7a5affe99bf6c3688c477d9f08e68bc |
|
BLAKE2b-256 | c823b9d0c10f9ea681bd05edecbd7489f3f26ff7908783ab79d6c7cf0bbdb1ba |
Close
Hashes for waveforms-1.8.9-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | baea381df756b22eb5e86592674d39e870bc2cd83fdb5c1dcb6d74b9b7e3283b |
|
MD5 | 90e6f40441e383e7b507f781143819ab |
|
BLAKE2b-256 | 9482fe6f43044f3de068d829a794a5d7036b3a0101d8029c47aadfcfe73dacef |
Close
Hashes for waveforms-1.8.9-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eac4c3bb7a84f512d15470ea09d8685a049a8155487db41052b95cc77c5b3622 |
|
MD5 | 30538e0c9b6f809f18632d0f77f0c8e2 |
|
BLAKE2b-256 | 8a1d0328cc6e8f6265bce56aecf8e7541cd39c5f8bf442d9944b8e8edeaef70f |
Close
Hashes for waveforms-1.8.9-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6197803c103647b25a35f8adaf468d6e88744ca5cb113111d9f112463feda6d1 |
|
MD5 | 1e9b51bef13e1b2d77c5bafb1496f703 |
|
BLAKE2b-256 | 5247876d4b688afb8088d9adfac8f774cec3366c958d623ed6eccb2eb12208cf |
Close
Hashes for waveforms-1.8.9-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f194e557a52b9a3056819bc8d29ea67a71b22390f0c30c1e10f4a0c71532286b |
|
MD5 | e960e2e2b9c8a846d954886c921836ea |
|
BLAKE2b-256 | 621958aee641844589209da7a4dfea91ab61659e46c3598073abfb9cfca9da07 |
Close
Hashes for waveforms-1.8.9-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f21d062491496769ba7964c46ac4b9cab4ed93e104d8bd88227a2cb1b3fca0c7 |
|
MD5 | 2055726f168619b845ca9c5243d0e75f |
|
BLAKE2b-256 | c33d78273c035885bb2bdfc309670a7945a55794a300b87f4974d01de570ef07 |
Close
Hashes for waveforms-1.8.9-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f4fed35294eac462689dbe65e5cddb37e677d65705f58b411d25a98550e2948 |
|
MD5 | 8a906331b29fef63aef9eecfb3ba711b |
|
BLAKE2b-256 | 9fcf7e6c8449e152cce398ee531a00723ca2a26373d5e88215655c9c3640ec8e |
Close
Hashes for waveforms-1.8.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb05f37d668a9838a429d5c61bccda14c2b46b0652ef75783fe91cd6fb9a49ff |
|
MD5 | 78c350b7fd6a331535ab2094b7e4c246 |
|
BLAKE2b-256 | 0a7a6b30b1f6a84baba13ada440d7fb6d555dbedb5909e160a3c091593aeff9c |
Close
Hashes for waveforms-1.8.9-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d89ae6b4e788006f1327e73a112828f90f9396bfc49b4b0de5af0b3594355b08 |
|
MD5 | 01cc515b193803b6a029ce471cf27d5d |
|
BLAKE2b-256 | 1e5d55859406542cfc5e7d2fb7a55c823e1b0d26765f4214a1c452c02853324e |