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.8.4.tar.gz
(268.5 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.8.4-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1836cef7b4c72b704b7d0c09730f51a332cd61de6f852f990a94521c434b236 |
|
MD5 | fa724319901ac9cb587a937db27bcc2b |
|
BLAKE2b-256 | 22fb4dca793a6a080ee8362aea78936f2bce9e598cb06e945b2cd29b2dea064e |
Close
Hashes for waveforms-1.8.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f60586d533afe2db49deae57035042eb3fca0aac37ebb8db8f1a1d5a51836e6d |
|
MD5 | 92586b5cdfdf3fe9cfafba704e0587b3 |
|
BLAKE2b-256 | 7218058795d6e02cee96863d773fddc151f6acd5004d38137ed9cf68cc7bb3fc |
Close
Hashes for waveforms-1.8.4-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f5087e511908d6cc9cf1b4b59185d962f3138f2f36ad3e338648588710e15b1 |
|
MD5 | 40e29b223c506af07e9e9bae0ea17d47 |
|
BLAKE2b-256 | 989152c42a8af8fb64f9fe0e4ded2c2bf177ce87b9c23b9a9838aa12a6d4a225 |
Close
Hashes for waveforms-1.8.4-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b16fc74ed7528fd9e4344db4bd8fed1ce39e6d7ab5fdf484943a2d83ce81c80 |
|
MD5 | a57bb102635cabf177f28422c5b2c846 |
|
BLAKE2b-256 | 4f2ee6ff75d7fb8fcb2f28f385d5f1dd6eaa74cc58d90635cfbfc071a7e9c56c |
Close
Hashes for waveforms-1.8.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7ebeedc0510e98e1a84682d3669b79a178ec395fed4929187701b1dc409e7c2 |
|
MD5 | b40b52e9f8a5f5f68d2ea23742c96d71 |
|
BLAKE2b-256 | 4772ca4b2f07da5c3250d9432ba2ac0d3e71ec55bf01b494e2323954feac44f8 |
Close
Hashes for waveforms-1.8.4-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c0b739f308354611c41374c6ca8a2c5ece6379aa4601bb8a4f97b32ca988baf |
|
MD5 | c89b16c1b39d786762e3ca49fc741bf6 |
|
BLAKE2b-256 | d0e7299846191c1d751c98ff8cf362ae008da131a61fa2fa523b81df157f96eb |
Close
Hashes for waveforms-1.8.4-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cf6911f855960c2edf83aeb802e733c6b18719a7dfcc3cb4309ee7bc3880b6b |
|
MD5 | 8a54ec844986e9958ef4ce8d7a3b287b |
|
BLAKE2b-256 | 2db2f4800c9287ecf7436abdf24ca1d128ea5d9ddbcacd2f89486586ec71fae5 |
Close
Hashes for waveforms-1.8.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac69bb5da07ef8df65dab150df1002f08935d6e872a3636aa219ab24efb0819c |
|
MD5 | 0427924da6e94642f4869a6279144a5a |
|
BLAKE2b-256 | c7b4252b19e880edc771a0aed92d2084fa961e0cce4130e2f0e6d8fbfc361c9e |
Close
Hashes for waveforms-1.8.4-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 893691f99d1764912283ccbffcef7cb1a720787077c36d3607ef7b4c23c8f89d |
|
MD5 | 4dc0f5ca6edc9c432de6b31af67e4560 |
|
BLAKE2b-256 | d75a0d04ef0c76bd4a06060077e74f77c118ce8a5130c8719bc27e29d16949a1 |