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.63.tar.gz
(142.9 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.63-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64caf1961ce595370f00d3ae51be3ccff6567cb2b2827905207127662f9679a2 |
|
MD5 | 1cc8e84a418318ea26c348c4dad45427 |
|
BLAKE2b-256 | 58547bc3d27f0ec687f872d9e432736d01c4d6c108e4bbc21f6b854014614f48 |
Close
Hashes for waveforms-1.5.63-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d635f473fdc809aea15990746f5794d13c2867316cefe5edacbafc3c2c49ed80 |
|
MD5 | 3a9df268671b8abf1b81d06421cb73e3 |
|
BLAKE2b-256 | 81f9df4b428f7548e8362db886caf34c9d6e9831c91d2bd7b4e6b8bfa622f5cc |
Close
Hashes for waveforms-1.5.63-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09c382d2d0d4310e3e8f43fd2650e4adf8b73e135f7661cbe68191542fc20aed |
|
MD5 | 9f172323ed8f6ea645f121fde51c3287 |
|
BLAKE2b-256 | 15cf725cdca6698b8332a5d5a3b757ffc8935e86b44731138287d2ea377ddb13 |
Close
Hashes for waveforms-1.5.63-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b5045c76e16df740c0b07df11334f4247313e89a036e4fc2348893bfd3fd7b5 |
|
MD5 | cf89a2e8d6eeffc48963f00db28ecd61 |
|
BLAKE2b-256 | 4186f8d84965611871dc18a2e578345e88cb5ac2be5fb1d21acebde8eeef190d |
Close
Hashes for waveforms-1.5.63-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a409ab1cf762b7a1f7bcc0a832ad43353eb518d1f055de3647df1c7c0dac8e87 |
|
MD5 | 103c8b9e0b38cb60d9ff1572e6782ce7 |
|
BLAKE2b-256 | 07f74ac2ad27c4b5c6a13df903860c071533318c761e739449f6ab0a22f080bd |
Close
Hashes for waveforms-1.5.63-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec8076a489ccbb94cfdce640b42912bd7e7dc7ee383734faf54d1f6257e56989 |
|
MD5 | ee062955a3c06c3911395a54c1003c59 |
|
BLAKE2b-256 | df49c41dc2be1af3154d9af0c36319bca0471f18814bd72ea00ad75aa062d6b4 |