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.73.tar.gz
(163.9 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.73-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fac58471fe83246a1002df03d6b02b5baa0f9a4c79539004d8103326ee6172e7 |
|
MD5 | 0c896d0a2c306527f5182201b85f5f14 |
|
BLAKE2b-256 | 8e2b4484869397745650caa75ab19110f9418462f401b370bb430ac5bf9d5260 |
Close
Hashes for waveforms-1.5.73-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 543420fe927be81b36a677020dd225fcce26c0dad3f804888db0659777e73525 |
|
MD5 | ba88bc556e777eaa1b6dd140912643f6 |
|
BLAKE2b-256 | a616d01fb3a1e4342e471478666f3048b97475af48d9250d64f5e17470475d70 |
Close
Hashes for waveforms-1.5.73-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4012a9004293a86bf7e6898b5d1ce4021b0b31f51dbb32b3f5f0c28cf9a25289 |
|
MD5 | bb84160a16dfcb8277f23f2011fa2711 |
|
BLAKE2b-256 | 485481e9468a7e1be7e5fa387929db433cb5f42d1d559d8546c602ff6039b019 |
Close
Hashes for waveforms-1.5.73-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a0c1bf2a4a23841a656f92d31ca754bf7455fbeb7b950630b6edbf69c0ab76f |
|
MD5 | f379a5a4578677e5f0a8dc8f58f974b9 |
|
BLAKE2b-256 | 66c5b25433db2993e2c81138ac15d36f34761a9488094768d9ba86c6b739989e |