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.95.tar.gz
(277.5 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.95-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b09869d17909bb76c4736e583ee6faeb42fbe4c0e8dc4cbc855daf7530f3da54 |
|
MD5 | da59f935fbe8f833192e8cf8380f903a |
|
BLAKE2b-256 | f24f3e933d179e09ff5b34e0b5a8f46578e3522ebb9b666a102f0b3d4726230f |
Close
Hashes for waveforms-1.5.95-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68007a04bf44e056f8eb5346ac554ced246da10487320fc89506b1fcee4fe00b |
|
MD5 | 07d27304cfe94dfb047166905557408f |
|
BLAKE2b-256 | 4f5312eaafe372bca2d6e711ec44931a7d22c2e1ea363ec065f6a5fa7690c64f |
Close
Hashes for waveforms-1.5.95-cp311-cp311-macosx_13_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 838c425fb399145c7cd37880924f5baaa48050ca83827474c19efce63346975a |
|
MD5 | c867f9b741eda3fa501b92bb38043c3e |
|
BLAKE2b-256 | a312137ddd070ae83967067ca53216fea9ed3a8677f1096167e63faf63bc81b7 |
Close
Hashes for waveforms-1.5.95-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d36832a2d6fe499d1f856ccb7b8351d4b424dc64f2c80cf52cd371946b10ae5 |
|
MD5 | 185ea23395ef4f786f58967273181249 |
|
BLAKE2b-256 | a8542dc2a8263aa075419f7545f762ca4a39f87874ea0108b3e57546c928ad4a |
Close
Hashes for waveforms-1.5.95-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa8703eaa65afffe60f82cd2f16252585a161e1209f149ddfdf6ec047e7a5a41 |
|
MD5 | 6ed8574d44a2f9b88e76199be132e374 |
|
BLAKE2b-256 | 43f00c97e95f5e1734bb3dfaeee755d535f44f88548763edc85e50c820b70b28 |
Close
Hashes for waveforms-1.5.95-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0425847ee677cd1652514e9b0b935aa0b47dd75abdf73819a179083a73bced4d |
|
MD5 | 324f8ada653a21ec9801cf4e0aea3678 |
|
BLAKE2b-256 | acd1588fcb4425619670ff63e54376d2db95b49a41d3f63dff22b9ab21a25335 |
Close
Hashes for waveforms-1.5.95-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e99edc620b1a2eb7247f7b356516df28bded54fd8fa666d498b00fe99870a611 |
|
MD5 | 80a23fa4a290ac54954b2d9575a123fe |
|
BLAKE2b-256 | cd615e75afbb4f5df1f04a88a90794cc2ea5764cf4604b037b970857d67b7d3a |