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.99.tar.gz
(220.2 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.99-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7d92e8eb2d9a1590c5766e8d25f4431bcda07aca2e8567729d559fd9b52c056 |
|
MD5 | 7b54913426b7fc5d9b282fe8c5751ccf |
|
BLAKE2b-256 | 404cc75bb2d87ca68d54f311ec841b717a79944ef1e5cd3af79e72da8da88007 |
Close
Hashes for waveforms-1.5.99-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e23482c2b3040bd92532dc935d94b3a9c1bf173cc96775771f018f09047c36f9 |
|
MD5 | 87c5e2590be9ce2524711d454f913b6a |
|
BLAKE2b-256 | c6748f5064c13ad9a95fcfc41108ee1a995a1ce1ecb9ad17f65ab0ee93bc6bb9 |
Close
Hashes for waveforms-1.5.99-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 700a8e01de9f6a1138d9f1b97630e429ba6e3f3b221888e5a8de322a1761306b |
|
MD5 | f1e21749a1b763ddbd2001f7274d9c10 |
|
BLAKE2b-256 | 76b05189b062d912055c5caf634489c5c1521616e863e455b566d768f83f44c5 |
Close
Hashes for waveforms-1.5.99-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c072f21215a00aeeb3664118ddb0c78614cf54c80a9c3b76cba0c09f977398a1 |
|
MD5 | b6c78b5c133ca409f078215a8090ef80 |
|
BLAKE2b-256 | c8e113bc8d67a212443d013b21f232bac64c74fb28cb4e68b7e87f7054c5797a |
Close
Hashes for waveforms-1.5.99-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cc3c6c78fab9e25f8456e57fb8791b7d7617abed020685124fe0fe8770e07cc |
|
MD5 | cf5e5a94e1203d37bfd9d8a94d74491a |
|
BLAKE2b-256 | 66af20bfa473af6021d0af681f0057b52000aea2bde3f999c6291c2c0a59d163 |
Close
Hashes for waveforms-1.5.99-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5adc8ec507eaf169c425eebef4c23826cd13833f181a684a1b796bfc704dfc0e |
|
MD5 | 41ce133d3472d9c531ff02c62843273e |
|
BLAKE2b-256 | 2e57513da146e04ce007edf6fb3153a43b9a12c60e943a6fd7c1af30c0ea8aac |