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.52.tar.gz
(126.6 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.52-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b5c5862c1bf542503a4d19873e08d77b417e6ef5fcd14fe1b23b90d2f7f562b |
|
MD5 | 67de41791968ab968f1ba94306339fd1 |
|
BLAKE2b-256 | fb160525c99048d118e1f76bebea26319bde6632870fc16434224083c3866f73 |
Close
Hashes for waveforms-1.5.52-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 986fa5a202d04a02bec8e43aea4652898482f1c91efca09efe5744c50d98c197 |
|
MD5 | 87aefe53d7bbcb9077b3e4c9ebadacb8 |
|
BLAKE2b-256 | 13e2a45d327cb4dbbd1c342e3da52ac9af69504606a671cc64090ba33c7be7eb |
Close
Hashes for waveforms-1.5.52-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32643b98451bf7f0cecd83ae17de7bbaa3af070e0d9fcc02b3e5484bb0bc308c |
|
MD5 | 83c6d71fa88d21f5526048902c7d9883 |
|
BLAKE2b-256 | f554d11c7b2250cbb1d4c24c589cd9fb97ec37d1ead7a693e7ca4100ecbfed74 |
Close
Hashes for waveforms-1.5.52-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ceb0b95bb76791753d03c025cf55a0488987776d55d3869b9967c3b41c16d31 |
|
MD5 | 58d0bfed2cb95f03611fd380e175c909 |
|
BLAKE2b-256 | baa940449288e453ad3b0842b7a32e7a311b3e980665e6dd074383dfbdb8be10 |
Close
Hashes for waveforms-1.5.52-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21f61527bb52031b568e91b81663b83adfee99a378c68ee03b361fd8876f058c |
|
MD5 | 85106f911511f404056cf954637bed40 |
|
BLAKE2b-256 | 00a1eb0d87ccf59c68a6d88a2a18f9c635405825c8d087302cdc7001d8a5af91 |
Close
Hashes for waveforms-1.5.52-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21f2aa2cbdaa23c4879606ee0047a3b0bb12ba34825fe265f9ad4b311092564e |
|
MD5 | 7cf5c9d8fe42ee39bfcf7fc9fd709a67 |
|
BLAKE2b-256 | 55a03a21dcc2def4cfd0caebc6b82e1c6f3d1c322b69664d3dfba3d64e7807ba |