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.6.7.tar.gz
(227.6 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.6.7-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 104d82b87b3f6b32e14befa21a641b307e7811a8af4b28caa9a460d8d3765af8 |
|
MD5 | 16e67451c0a76002acd161fbb8db2e05 |
|
BLAKE2b-256 | 271bd1c186e41a21c0b1a46a3baa2baeb341a76b4a8466500f4a34aa2422312e |
Close
Hashes for waveforms-1.6.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdadc6c96cc0609ccd8c60bc6c5c6c7eb230ec938563b0fc9b6f9244312e7e61 |
|
MD5 | 3a5671921291c6354ace60dbd5392cad |
|
BLAKE2b-256 | b84b551241f72b6b390c43d53c873bb5376fd2997090fcc56d4336359cb8536d |
Close
Hashes for waveforms-1.6.7-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ccf5ae840ff39745ff3fdd3ac0c2ed404696ff23f8e43913412b8b77a2155b5 |
|
MD5 | ea0eccc48f52c89c40b1dbd58d9a3c0f |
|
BLAKE2b-256 | 4fb912a628927d287d6b93f7b48b7503a7a2d9460ca59b10604f571548fb5ae5 |
Close
Hashes for waveforms-1.6.7-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2a704386868d3158141d3e822cc27e4a862fdb6f9ddd0f4004b48611674df0b |
|
MD5 | 5c578015e37caf8969e6c9e81389ed84 |
|
BLAKE2b-256 | 5db33857142a9b9092b084083db9c821ded2d7bbe38d1ead05b6ba0a0b8e0320 |
Close
Hashes for waveforms-1.6.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8bbf221cd7480c61bcab0e60f9f028855d618b3e8ced2abc0ee890f954b017e |
|
MD5 | 5f917e782fca123b58277b9414bccfbe |
|
BLAKE2b-256 | 6c85f4a9f51246d82dbfb3b970b47e7bb49520a50ede7ebf3457a8bd8be9e44c |
Close
Hashes for waveforms-1.6.7-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1b4adaa4eeae809fcc1632ee3b1ec2a545494aee806a31ddf014d28e942ccf7 |
|
MD5 | 0cdea77a253431706aeaaebe919661de |
|
BLAKE2b-256 | 49ec16a449364926ac629b2ec7a6a25cb9a3a8caee300254b91a9890c873665d |