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.77.tar.gz
(170.5 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.77-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0086b644a9fbb497433f95cd5bd20ad0dd9d9395b6fc8b510112be7b8e70897e |
|
MD5 | 9d3e1d32f5e0340713ddfd52ff7dcf56 |
|
BLAKE2b-256 | 9012645cc04b774cd0402679e04d0b01195f92ada8665c934bd69d8632be13aa |
Close
Hashes for waveforms-1.5.77-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad1df704a0c7284a501eb9408c445a194c7b24dabe8270c77eae5562951b8f1f |
|
MD5 | 7ebe1f9eb8f2586d23fb7ea810ad08be |
|
BLAKE2b-256 | 7a01461b95a59e073811d636d9106a180b8aacb7fb2dad27aa6583d3e3a26a18 |
Close
Hashes for waveforms-1.5.77-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e89cae1fd74b47993d05a294921c400213f4e4d31029c3017b93abaa174e5141 |
|
MD5 | de0810a049a1e215ef437933c820851a |
|
BLAKE2b-256 | 9c58b097492b4158d68587f0cdebc755046d70c751dabf6d0fc86f21eff6ea55 |
Close
Hashes for waveforms-1.5.77-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53c846986dfd6bc6dc68181721acf702e91324b97bffd83e13e07dcb019ec656 |
|
MD5 | ddd7541b9218b268c22ae80f1ffe44e6 |
|
BLAKE2b-256 | 46ff1317c4f8f7082bbe5a95c9159b7b46df3a27d00f44ad91100309fb53d08b |
Close
Hashes for waveforms-1.5.77-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 333ec39100f523c67fe830a9712836c52d986d3cc791618bdfe99ca3ee5c6af9 |
|
MD5 | 6e988e81cbdbda7313d48c175d198832 |
|
BLAKE2b-256 | 5bdb83503a7004ac97e08c0d5ad8f0fd4750f9976dc664da6a756994e164d8cb |
Close
Hashes for waveforms-1.5.77-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bd6f0354a73deefe01d6f746438b2e7840d477b9d2add09d5ebdd5be466cfb3 |
|
MD5 | 3388c1dc5998d2766b58d12a32ba8d01 |
|
BLAKE2b-256 | d11c871164830f198fc181e79ec46afff9ff23491b48e57fda567c1a7444c3e9 |