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.10.tar.gz
(251.9 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.7.10-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 782f30bc76a2bb140b5d089d078e496d03f21ddb556a83f272e9ec342e690ad1 |
|
MD5 | 348df3381ad74c547246830015b214d1 |
|
BLAKE2b-256 | 9ef99c4413836a7f323073953f5d473902aa330fea9a99bfe2ac63698debcd2f |
Close
Hashes for waveforms-1.7.10-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8bea6dd8d058b2f44194d2ca6e32e552d469a42fcd1ca5603a8edef3ad83458 |
|
MD5 | 9f8f461e4555a5d3a4c7daac0f679253 |
|
BLAKE2b-256 | 1398c664c09821701dcd3072f3babdbaeec425627970db6c2508a55e4dc4bef6 |
Close
Hashes for waveforms-1.7.10-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5e91096e99f05fe409bee81ea30e7f0bd18a35aaf11665f9d3a2f0d0bc77130 |
|
MD5 | c04d0cb51746af11514a315c2ba92b31 |
|
BLAKE2b-256 | 46eae6266d03680213407a99d679fcbaf0232110337c896bb6cf27a5bde08f11 |
Close
Hashes for waveforms-1.7.10-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c04f8e64bc21cd6a185ded4b8fae7f2366a16c200e76866e90fdbed9c4fe9b78 |
|
MD5 | 11d0b6fc4cd7bdd7fe9f511474c36727 |
|
BLAKE2b-256 | b8c4a27dd1a9f4ee0d3fd02d13348312f8a41d915d687bb4cf208202a676e2fc |
Close
Hashes for waveforms-1.7.10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e81ef5f1d2bf28f1d49b09ee43417d9a7e240fc2fd039ddb428d6db37c6e1722 |
|
MD5 | e6cf6302fa75dd69038ee12153f68dee |
|
BLAKE2b-256 | 8f9be23d9fda54d530757fab4f707bd147bf1b1acc85d2434682b026471f93ff |
Close
Hashes for waveforms-1.7.10-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7946840508c61bd59ed36314fdcb1c3dba149af36b40a90555c25a35480d9e77 |
|
MD5 | 6acda9d8cd9f09d73484a844d09411e3 |
|
BLAKE2b-256 | da873abfbc9c873533c9f7965b45f739727a32341950ace681a3f661ce67804b |
Close
Hashes for waveforms-1.7.10-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 471aa1f7cc276fe9e0c5a4f094837b2f87978c41b6de0017b99ab13006ad5539 |
|
MD5 | eff19acf984422768f3c8a29ba8a514a |
|
BLAKE2b-256 | 06e4338f4f644fd17d01e3b8bffcc53c7fb13c291f64dcf77210359bab8b2833 |
Close
Hashes for waveforms-1.7.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85097fe862bdbe62f57bba456889a0be607448018255dba17ddab1d516aa95eb |
|
MD5 | fe8330e652d4d725a255e92fa66b3b84 |
|
BLAKE2b-256 | d1099ec32e5374c1f740771e6879da3df25a15a59760cb8cb00c167c37767a1b |
Close
Hashes for waveforms-1.7.10-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88123abe8dded18b6e0d5d8cb354f76b75ce469f5d9f36076a1171b052f0f238 |
|
MD5 | ff29af710788d0983a08d6b0c8244c22 |
|
BLAKE2b-256 | 9ecf9bfae42e60fbb747dd5c185e9e016484fdd29c6e4d621e239d91e55ca044 |