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.4.tar.gz
(249.1 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.7.4-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 621d3ed7c9e5ba95858a390435cce865bf6c11bb286eda90c1836ccdfe25840f |
|
MD5 | d516aa39bb3e7472911c731352450328 |
|
BLAKE2b-256 | 5985f762a0bbec429dbf6b073485939b3c49b2daf58c0c7c2f227656c263914c |
Close
Hashes for waveforms-1.7.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef715c8897a42f890d9e7f7734a9f232ff714130d16e4120c38249ef2b16d858 |
|
MD5 | 019c832d5f22f6d522f3bf0effe93d28 |
|
BLAKE2b-256 | 9d69098ca990c1e1b1ebecb8df321f531e05da22798ae64ca4908f19e4a04c74 |
Close
Hashes for waveforms-1.7.4-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbc0404afdec63697f9235d6772f7e27b1a2ea585fd5a28c8c442ca67e0b07cb |
|
MD5 | 8e883028b344dcc31970b72f2ff3515a |
|
BLAKE2b-256 | 99340f14b34ada21bb31134a8d72f373ab91cca20ec2b6feeb4b4ba89ffea066 |
Close
Hashes for waveforms-1.7.4-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f091a1fb543c4a91d0c85445635bfaa39da1c617a53c6a1500e1cf1f4f207506 |
|
MD5 | 2357577b28ca624b75eca2d892132ab8 |
|
BLAKE2b-256 | 7a1ed299a3cf18df8bacc1edcf82d37c5d195c1d9ec5d5ffa895a411d27b368d |
Close
Hashes for waveforms-1.7.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 866290f982c436a533d072f1be0320ed2e5d28051b65b6616e338a0c726576d5 |
|
MD5 | 5d82f3f16de78e56ca4d5f4c3c8cce24 |
|
BLAKE2b-256 | 7262b54e7f7107378ed3863f4ada8c539a2a786b0a78aea190a84bea01461952 |
Close
Hashes for waveforms-1.7.4-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd41ef86be6e1e8b5a1b134adb47acdb190e7313a9d5f6f463c6efac6634be6f |
|
MD5 | b40f31aeb3317f6cf944e9ff05cde6e4 |
|
BLAKE2b-256 | e5bb6d1c0a209cfa891633b046987716c2738a2e901a6fbf031a4198270c6582 |