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.1.tar.gz
(236.4 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.7.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34f5e931d4fbf288923ccf26d933089449c13710fdc5cb37edcef5aa5a5fce5d |
|
MD5 | 142058be3cb4958b119bc805df78b522 |
|
BLAKE2b-256 | d53d227cdf5b54c571f5a73d092b9437fd3c18891d2b89980ea29507b80f0e20 |
Close
Hashes for waveforms-1.7.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be2a4900e9155ba9d4d794b9e6ec229637a0d00ab3b14f88ce4947d8594d17c5 |
|
MD5 | 705b476a761dcac018e705ab298eeaca |
|
BLAKE2b-256 | 222e6aec61ee83416d49085a1b0dd1e42ad678ef8e5de70182ec7bcf2dae1d4a |
Close
Hashes for waveforms-1.7.1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04fecddc40e88b8ff6817643aba85c33393361ad0effe5177c6f692acc88e32b |
|
MD5 | 678b29a92ce8548bb4c6585377441b09 |
|
BLAKE2b-256 | 5fb6ade01f7e3958ca620af26d103017c202ebd9b18f34812a4c6170e32e0166 |
Close
Hashes for waveforms-1.7.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdaf378885759b74a61ce470b91476c8675b0596e3455ecbc82c6709f2035c0f |
|
MD5 | fbfb71f3731f553beb8a3734338b1cd3 |
|
BLAKE2b-256 | 320a2e99c97e00b7f63652e89b5ebae31c52f4f5f0f43bcb25b3cc8f0b9867ce |
Close
Hashes for waveforms-1.7.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 165e39a13b2ba836363ee76d9a0e28e7df0a3689fb839f65da9450162ee5a465 |
|
MD5 | 3f268cc4b633f6b34eb46dfb0a5868b0 |
|
BLAKE2b-256 | cf55e6134cca49eadb0066a136e299cd165e1c1be42f6e71520a13073e100e1c |
Close
Hashes for waveforms-1.7.1-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e69abd3bd8eab46c2cda24b4cd7253f8b3d5732c5e2fe6496cc6072f7448c26 |
|
MD5 | 8636e3f67d18de1785970fdd16e92d9e |
|
BLAKE2b-256 | 289e886a4c41c127d73211448b37243f5e936cc549e187ec23ea649f5b462593 |