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.97.tar.gz
(291.0 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.97-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b3416a1fd06585ad402e9d8342ee74d4b3f040997cb3074151a44b0aa710e86 |
|
MD5 | bbc5529d11f3d53c38a6a23cae713b96 |
|
BLAKE2b-256 | 166625b40b0203d26f49a85dc525831dad7a8668fa86724c0b3b0897f3472099 |
Close
Hashes for waveforms-1.5.97-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcb35f14b464d9dc49a95b2dad7d1ea2d101dae05b2c9ed08f16a01d1a953d17 |
|
MD5 | e127b010c0e4203a1be59e1413d98191 |
|
BLAKE2b-256 | 29f40b922899747627124a7ce6cb5736140e9d2d8c2b42dbae9de87531f9a3d1 |
Close
Hashes for waveforms-1.5.97-cp311-cp311-macosx_13_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fce99a60653b890211c444b599e53b8229a23f94ed01c5641d89a9d257ab4f65 |
|
MD5 | b138b5ab872bce868fc46ab9a0dd18a2 |
|
BLAKE2b-256 | eeb82bb4ef03939116ea398cc768e91a3b15c5203622f309f8b907277cd4e63c |
Close
Hashes for waveforms-1.5.97-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65c4b0e58fb59ec542306682fb513abf21e96a4fa8dd2084f27a398b2a5f1d6f |
|
MD5 | 3db4600d1687694dd93d3b07abd72e47 |
|
BLAKE2b-256 | a45166c77a046e153378a028af661528c778d8ee1a43981249b233241238924b |
Close
Hashes for waveforms-1.5.97-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6ac488d8072228170806596bd212c513b8adac19659ba4c37631e0e4524e988 |
|
MD5 | 61208a92bd247c08b13f21a8e7126c3e |
|
BLAKE2b-256 | e3a9790f7d4826b2f5f1795f6e9555dfa5b176d95821a939c81664c7c1055639 |
Close
Hashes for waveforms-1.5.97-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 715fbee1ca315b57becc681faf8b10864a3c91e79f9f202d10fd7f2ef6ed493a |
|
MD5 | b37f9309b137040bac951edf9dbb200c |
|
BLAKE2b-256 | b5154a59a9673eb8adf28829262e24b415647249faea1b7e3aba02d15ddf1834 |
Close
Hashes for waveforms-1.5.97-cp310-cp310-macosx_13_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbeba60bc669c55af908993923a7f04c7013dfef13d2178b0532550cdcd001c6 |
|
MD5 | c2896a206a2d794955b6b5398cfddef9 |
|
BLAKE2b-256 | bae2657ebf3b922473dba8706e8a601eeb063ee9c84177ea7963536209f80a61 |
Close
Hashes for waveforms-1.5.97-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cae5e0fe4a663403f6433c0c1fe0a933fb3dadb244b6a412abce59499706f7e1 |
|
MD5 | f2eaa91aebbdb58eb6011453ccdef2e0 |
|
BLAKE2b-256 | 04cf5aa17366ad2d07637e35f0831f4077e0bfa22343a0e934e5191e72ee6f23 |