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.8.0.tar.gz
(259.9 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.8.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 064d961e8115aa606ebcfdf408afc59251b25f8709cee715d61366de59276f53 |
|
MD5 | a83d76d8a77edc3d7563f07e8d0eac5d |
|
BLAKE2b-256 | d1a462e1fa8829080cd021bece1db36274e063588bca1309aa47a2c3a0c484e8 |
Close
Hashes for waveforms-1.8.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a69bd157082d4932d9f5510119c16ab1df54b2c8b774db22ad2252f571c97f61 |
|
MD5 | 8c3b2499e9c785aa1ff38e0e6681a177 |
|
BLAKE2b-256 | 03020325040e890e6d0be6d9df631e95bfc2d68946aed417171206647b7e2a91 |
Close
Hashes for waveforms-1.8.0-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fa7b25c52a9d92b3e38de1a9372c21bdaed4604803a037c00f7e5ae930cc43f |
|
MD5 | b0aa4ae845b8044c12e7922b44e1cf5c |
|
BLAKE2b-256 | 7ad53d9d8c2be0abc171dfc6cc374f85a597bfada48350908129e97c62cf0811 |
Close
Hashes for waveforms-1.8.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6019d7cd7ce61cec862c64d9be267241ce801d17f7b69df25d7caf26042d8e39 |
|
MD5 | 92d0ae39b6e1fd6cd33428938bc28ad2 |
|
BLAKE2b-256 | 960a7acc63c9ecee0c6f49a4352607e742356ce25b3b21365a639773316747f1 |
Close
Hashes for waveforms-1.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58506de4c1e1890bb294d82e1fff2b735178ab3a37d3e870b8b5a1bd31abb21b |
|
MD5 | e6d9d09e03904657452ea8bfbf0e4afe |
|
BLAKE2b-256 | 2fde0f9062985e7f18ec3fd7b9a9b34307422b0702379b4c05d75add8d1f33dd |
Close
Hashes for waveforms-1.8.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3163001166fb356163ed764d623c1536592f6943efc1bb1b517a9e1bfdcd7404 |
|
MD5 | 518d9c77feddeb3e4d42288943ed6a95 |
|
BLAKE2b-256 | 640ccc50446d4eb62e94c413be4d454d56811ba4d5a7a32420f09fff8c734c7e |
Close
Hashes for waveforms-1.8.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56561a1248ae17f02015c560ffff7ba737d2f6f3be7f777de7db60c5afdf58b7 |
|
MD5 | 73b8730166d97ded7ed6a6233d69935a |
|
BLAKE2b-256 | c3f9a387e9f8766474b886c94c3abb22d9ed5ec138aa1a8b296af9d0bec23c6b |
Close
Hashes for waveforms-1.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e4eafb1a28e88994fc864ee16682c2e1158e50c8bcbaa7ff478dc4907ac8ece |
|
MD5 | aa647220711a369bfe6f71f0eb493d05 |
|
BLAKE2b-256 | 8c8920ce225e0299b3e80adda878d14e0947c79045383e8a0176c798e3f7eef5 |
Close
Hashes for waveforms-1.8.0-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e71cc720e22ca4fe96cc825c1ce7ae51f41ed0b08eae2a6a363b11b73ec1f94 |
|
MD5 | 926d2a1412941508fef47ef08d1cc08d |
|
BLAKE2b-256 | e60784b0a9e557cf80da765b61963e8340c6944ec4ae88aa3f9a4970cdf73fae |