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.5.92.tar.gz
(199.0 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.92-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d49c983b1746dbb60e33cc2927d98cda4c17fb543911ef3713d399ac37a657f |
|
MD5 | b276f9c562033cd96ae4f699dacc6cec |
|
BLAKE2b-256 | 4b7c5cc86f8b31a13451d72ee3f64aad3764158641a15c87956c841eb185ec7b |
Close
Hashes for waveforms-1.5.92-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b5a1b445d9c2fc9832173752bb6d51f857e471bd6c200a7a75261445307ecf7 |
|
MD5 | 219d3b87a976cf22028006e4248e1f8a |
|
BLAKE2b-256 | 19bc3bbde8e09946fff6095648734e57cf84726c9d0b6916e5d98faf7240560e |
Close
Hashes for waveforms-1.5.92-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e3fa1a2e18d15cdaf283e7c1f107e0de7b4156a56eb1fbb1cb178595f258c16 |
|
MD5 | 947949fa33714688aadd494d2c390dda |
|
BLAKE2b-256 | 6f70aca8200f8fde57680ef9580b354369ae009f74f0f03c6a6572cebb0727bc |
Close
Hashes for waveforms-1.5.92-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 430edcb92cb7a2aae6b9ee5fa9f13c5b212bd18582d1be69df76a58a44496f89 |
|
MD5 | 6f2c18ddd067b3ccf0d6e2b4ce2a6215 |
|
BLAKE2b-256 | 421a8fa83f8530e6a73b0614e5665373d39b721c499ca6277b64a2a6fda7497c |
Close
Hashes for waveforms-1.5.92-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bfb131c7838674cabdbb9c431f6303baf855d386d790e1f14710ce80ff8210a |
|
MD5 | 5138d7b35119e5683ff83a31679f2453 |
|
BLAKE2b-256 | 3123ee2e556899a9bac8eba70fd06262f1ce59ba15e83fed6ca5251f5a79b422 |
Close
Hashes for waveforms-1.5.92-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ae6d3ec6a7e898429ab8ca7f382798ae67902be2fcf4539fd391c521533887b |
|
MD5 | c9f71781f1f389379c3de75613211179 |
|
BLAKE2b-256 | 105f1cdebb8879979032e430c8d250752df36433cde677aa2b139ddabd37d898 |