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.8.tar.gz
(250.7 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.7.8-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8448f40d35a323bb1508ca3bf009fdc7908bbb01b59a5604aafefa61254e2769 |
|
MD5 | d230e3dd6c45ff308882ecff0b2285ab |
|
BLAKE2b-256 | b22d5d9039f82ad7001fb9ea76439b80b9d4bb726b20a3f3b35c0bc6df202ad2 |
Close
Hashes for waveforms-1.7.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4aae2367ae884ab80569837e37f8dee0fdd7dff30d125a91780713a7caa32e3 |
|
MD5 | 76cabe5ed6c9df58ed24f9d28309cd2c |
|
BLAKE2b-256 | 1139a5a30c5dd650d28235e949d96d47d63773cfc157020d11a80da69f7170ce |
Close
Hashes for waveforms-1.7.8-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5356341c4aeb42e3017f97b26983c54b3b44e7fdf155436a6b330a5abdee7865 |
|
MD5 | 736f4031db34ab50822942fbb3f96a2b |
|
BLAKE2b-256 | e6d14520b5e5fb74ba354cf3a0bb115b586e12dce218e47e7186eeae6b4cf625 |
Close
Hashes for waveforms-1.7.8-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29c979c3436f02ee5103840360cf1f60db4ff01684769f43d0e4774117838123 |
|
MD5 | 0aff1e7cf9636fd8cfea6226aa2d1e2f |
|
BLAKE2b-256 | bfaf67796ef26258085080fc2d7bfa89a5fae9fd2809f7e8469e1b6522b87f6a |
Close
Hashes for waveforms-1.7.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7a5ae6d429db379d73a4b6174eb370d6b322290f5f5bef593268f71d3f2fe89 |
|
MD5 | 9f0cab97b1a1529eb0ff02cd67b9f667 |
|
BLAKE2b-256 | 408047a646e00352f0d615543515c76bb22bb7eb43e8f34fdbeda9be3c62cba8 |
Close
Hashes for waveforms-1.7.8-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 062a15317e34da5b5337aa56b238fdca323b416b9ed3520de153e564584342e8 |
|
MD5 | 360d6b835b00b7029be9ff43e0e26b9c |
|
BLAKE2b-256 | f31c084a286bb3c3852c2b4964b46ef33fb1682aea530787fd0de751b8c73f6b |
Close
Hashes for waveforms-1.7.8-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3aea08aa8c5ff4348db8ccda2daa08f01b622c844e0f130bc2e2ba23f8f904b |
|
MD5 | 9ffda9783858be46557b6043d210047f |
|
BLAKE2b-256 | 7cd2ff8cd1866645b3da4b8a1f4cd303559c1bef1f9a5f467fa0ea83d92c4906 |
Close
Hashes for waveforms-1.7.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97122df1b9705735b5e5157c4599d0c584a6e63948eb0b98be3b3ac298f7fb9c |
|
MD5 | 4c3f879352087c59e33421ada9d7cb87 |
|
BLAKE2b-256 | 6b1d13213d013212604ac8f958548efcbe16a427f9dece602f5fe7b38865f3e1 |
Close
Hashes for waveforms-1.7.8-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4c8eed8db7c4d72de8f58f86e2c343be7aef2c75c8ce34957e204bdfc4bd8a0 |
|
MD5 | ae5ce34abd0bdb5e217e90a6b995eb4a |
|
BLAKE2b-256 | 56eeb0aaa5b0d2b709af0ff75a255a3f36958f810779703fd60b0dde50d0ab96 |