generate 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.62.tar.gz
(134.3 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.62-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 341a51eb94a358005bb761dc3ea321773183d712248bcb68d069444f52c951ce |
|
MD5 | 172e66e0fe4da2a6df080668e98745bb |
|
BLAKE2b-256 | b7df0e4d6f148af4343d19e2099ecca68ec7e25a0c43df8593561eb69da8cf9e |
Close
Hashes for waveforms-1.5.62-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1e6bdb87042f00ad2aacbcd5969d12a7fc7d135417865a5c52e00e47ddcc9cd |
|
MD5 | 6c2a2ededb27e5c21c83b7be4b13dcaa |
|
BLAKE2b-256 | 021efa77e4e55e70a2136e2cb3ed5cec4e66fa09f6fb7dfc8417e8b42bef0dac |
Close
Hashes for waveforms-1.5.62-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 708b5539f4d32c72d275f1a44617af072c25e7ce346cd24e429b9357600edb3f |
|
MD5 | 0ff818a0861dbf5fe1b6797c5cf611c0 |
|
BLAKE2b-256 | 64bbfb776cd9288ec5174ea7bbe636f6e9662b844305ed2ec385b7dc0d304786 |
Close
Hashes for waveforms-1.5.62-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52ec88a0207ac4b17d47a2a037e644431431195bea9ef73e07a6a85c6e5872ec |
|
MD5 | c86254b30b7e8f31926c9baec56bf930 |
|
BLAKE2b-256 | 0ab050de0d6f40b634f0a5a1c54751633d64f55be690103fd9c5d4a1fb66eeb2 |
Close
Hashes for waveforms-1.5.62-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 561a8a7543f637bac24440e8522cc5eb4462ed80e2c635df3e400ed1296f1a89 |
|
MD5 | e5b0a3ac300bebf9f5ebee1de95115d3 |
|
BLAKE2b-256 | 805a8ca7917b075512cc13b36b378a78f32b0cdfbb25140b70cf1078f01b65f7 |
Close
Hashes for waveforms-1.5.62-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0ab52241793fc4eab277af5b5d7e2c57c8302294f7df517b1fc8d5be97ab84e |
|
MD5 | 29e144edcc70e17b543e9f11cc7f9bae |
|
BLAKE2b-256 | 9d0021ef2815ef73a1cef51554c980fe701d0e1bae7f3b3e95c1520bf1f8267a |