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.7.tar.gz
(250.1 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.7.7-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a43d9d8807ebbab9632665a18aeb34540c704516b01001e4e77a111514a20af2 |
|
MD5 | ad0ce55e33c08f190afbe96fd2809e34 |
|
BLAKE2b-256 | abd50b72661a3dcf63f53236afaede9047107afd026fcaef8a6b6add7e4b8e3e |
Close
Hashes for waveforms-1.7.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 190291a1c17d8e4e176e5099a070691a0fcd8f9bc62d699e7248a94cc8913354 |
|
MD5 | 48ee3f5f31536b55645697aaf4828d87 |
|
BLAKE2b-256 | 1a5de965c39bd95de1871489d1da60719fd173d12107d809aed367c9e6375b9e |
Close
Hashes for waveforms-1.7.7-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90316b5d160213b5d83b706b8e7cfab432c22fc2cca3b80361b6456a6d58e2b4 |
|
MD5 | be985dd0c28144e631b49b788b8ecf05 |
|
BLAKE2b-256 | fc2ded5ad5ac1b59808e55da80597511e2b674be72c3b4c1535f6057e5947203 |
Close
Hashes for waveforms-1.7.7-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebac3f4471ed6d5ed4d3e3664e737527fcb04929d978d7fb9d4592903904a46d |
|
MD5 | be21ab3ab86d6781dc6931d0c227a417 |
|
BLAKE2b-256 | 0ea5aeb029c5e5e7ebefbba6820e087d235d61757380450f77bdbce21da18250 |
Close
Hashes for waveforms-1.7.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 621e2f1cf2d527a47cff011dc6c0b0a22405dddbd1044a30d7afc93b1ceca3c6 |
|
MD5 | 9d80eb4dff5f584fbfde05ae04328dfd |
|
BLAKE2b-256 | 374f7ee9bcf487ca127a0c3b8391c610caf1e4f5d01cd06c0183aca61986ad87 |
Close
Hashes for waveforms-1.7.7-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5cc95c9cde7268ec168ba97b1a9e891e64384a0aa3b4eed15c9f557af559891 |
|
MD5 | a9dedca2eda4c0486af6fe9ca0ffc2cb |
|
BLAKE2b-256 | 2b85896616bb29863264c23689575860a97bb36acf38ecd4fb1729b750005774 |
Close
Hashes for waveforms-1.7.7-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad8bd9a69914e3ced846ba0c4d018b855c9e67b8060ca3bd0ee281a745c3cf14 |
|
MD5 | 298eb16f6f8021587e9a5839eca4f9b5 |
|
BLAKE2b-256 | 1b333b823aed3d37a8e634dd899f95a41d9c579dcfb5538ef8e584281312a470 |
Close
Hashes for waveforms-1.7.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49ec4642ecb046858b2441d9e5cb1f0320fdb8030f495b18ff613363c2eb613f |
|
MD5 | 6c4c958557d5dc204526bfbd3ef93bb9 |
|
BLAKE2b-256 | 5e7bf64c64ed905d582496db65047f4b9e07e419429d169ae6dbb38d0009d9ef |
Close
Hashes for waveforms-1.7.7-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9388b49f8e0589efd65c154713ff91d39c391b4ed7b02c9dbc7972621deabce6 |
|
MD5 | a5c1d99b4b69d9ff15642fe74fcd5237 |
|
BLAKE2b-256 | dcebb751b8746614afa0b8d2cacfea9ff412df6910e870ebf6cb55b7fb2d1b5d |