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.6.9.tar.gz
(230.7 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.6.9-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca08de492f949e0917570b9955748dad34305390649236eccaef83d626e47b74 |
|
MD5 | 0f9cbfb8ca58ee9f20115a71f26f2899 |
|
BLAKE2b-256 | 0106295fca11e2e815571c51bdab642104274c52f06c0395eec846b114c35de1 |
Close
Hashes for waveforms-1.6.9-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d8be88e1498b402b2bb68d87d924d44478ba85dad87f8a9e06decd37fbeee24 |
|
MD5 | 7a1f9ad81e9c47be5e746bfaf0259b29 |
|
BLAKE2b-256 | 87b199662ca5ebf38a9851f9110e59a09be758d680aec55a7468085b3ce40f4c |
Close
Hashes for waveforms-1.6.9-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1257397315e18cfab9b73d01b836320d4bfcbe758f663b2fe28dff19f14f4b8b |
|
MD5 | d7c43d2f034c3e91fcc6cd27c2bdab0c |
|
BLAKE2b-256 | 8f0af18cc7b03afb0194ed094be28b99b5247cf924b47aa2b20cffe7c03b51fb |
Close
Hashes for waveforms-1.6.9-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29417853083e635ed565423be023b0155a11faf96e9fe77cc95ce19ef3763347 |
|
MD5 | f8e7697b6c09b800acb96b597c8e458f |
|
BLAKE2b-256 | d864acba766fc86d22c29d2ff389050177fde4a5247ed7c690710a301c50be55 |
Close
Hashes for waveforms-1.6.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f688571159f3e177ad07052453484c97a4b5ca4cde8fdcc83e627ebd140e33d0 |
|
MD5 | 657af9a17d678ef56967f5e59bcd84a0 |
|
BLAKE2b-256 | 3c0493360926df99753d5500cc6bd613d3d47459cf5c15e914e91b7b5fc438c2 |
Close
Hashes for waveforms-1.6.9-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cb8db4daf21fbd5208effd74ed5c92671d2086fdaffefd6092f9955ebf07f7b |
|
MD5 | 51cb1ba69f93053244ee1eaca3d598db |
|
BLAKE2b-256 | ba9dea23207d0a8426e6015ee6d41076645cc4d4f39029602522d642204e95ab |