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.7.5.tar.gz
(250.1 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.7.5-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e121a6978623eea42c4739bd738fe1d4683cbba6cc98d32de55e8986bcea975 |
|
MD5 | 39642561e18a7781950cffc178e1361f |
|
BLAKE2b-256 | 42e11874390c5a518d1c9ec733cd94c0f683235ba49e4c12c78c22c5edc39925 |
Close
Hashes for waveforms-1.7.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 108e33694f6f677894d7376e73f1e040bcd011867fd78c95c46ca59d30e7fc13 |
|
MD5 | c150fda32b488411f492a9ee1373dd74 |
|
BLAKE2b-256 | 8a779bfdf9fbb570a867e908cd624ea751b17e55283b7f0d144d5cc3a58e54f8 |
Close
Hashes for waveforms-1.7.5-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f28081fe06ae0e6707a208da4c61ddf8f5f917e378d93218b176df76faeff596 |
|
MD5 | 00175d8d4a09ebe2f63b3100090af704 |
|
BLAKE2b-256 | 025f703a4530e985790bd7792cd44b2fa3c6cf4b90708f8766e11462bd2a37a0 |
Close
Hashes for waveforms-1.7.5-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d50518b526deab07362d2cb63cd85eaaeb3980c755a12952a260c563a3fd8d36 |
|
MD5 | c61024ad6938a13a3f2c30160be9623b |
|
BLAKE2b-256 | a5ff1d9d813b82883645db2c4fde570bf93d5d851e50cca1c1da194aa79d547b |
Close
Hashes for waveforms-1.7.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da99eb20d7a44ff672b5416f6d181b529e3b98a82abae3d8779966d704f093f1 |
|
MD5 | ef6115f2790edae6f498325c374e4064 |
|
BLAKE2b-256 | 90a2da80e9c0658164e1b18c5df0efb6b741ed782c0cdfe6f095c65fde154972 |
Close
Hashes for waveforms-1.7.5-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7597816ad157d810164781d8f729922bdb7138e88afc91465839a541674b8a6c |
|
MD5 | 286d340ed28573481ea630b6362feb56 |
|
BLAKE2b-256 | 74c80bd50e843ae6018deb39e89335feb6c27321e7607e4c8fb72f455d9bd203 |