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.90.tar.gz
(197.8 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.5.90-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9d2932fbf56a8bebba8aae0d65cb128c3f0997d31c631c4d1619f29f9eda463 |
|
MD5 | ca53072e50837d1760c454a59e67a229 |
|
BLAKE2b-256 | dc774cdfa1bc6d66d01ba990f7c9d610cc0318b4a1624a0aedcbc4d5f2855ea2 |
Close
Hashes for waveforms-1.5.90-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4f16206cbb3f666dfb6f6dd8598eccbb0e460539bddda010562e080deb102aa |
|
MD5 | 9bced0f2c107aae805d0f2389e74dc2a |
|
BLAKE2b-256 | 266095b5db504e40012ff3a93735960aea95262423554d672f5c1febdc7bcd05 |
Close
Hashes for waveforms-1.5.90-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd372f0e5614ebc9bdecd534aeba4945db16c0b05b9d38e0152d9ec160eca740 |
|
MD5 | 703e3f21f1fbe0a79b14f820cc84b7f8 |
|
BLAKE2b-256 | 85669487704522a78b835339ec58c774b3ff1ac4526ac819da1e5100fe53a08a |
Close
Hashes for waveforms-1.5.90-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69329c7592a736e6e34e4360a0c734103a111c52069d48d4f4c5446979bb9982 |
|
MD5 | b390bb160ace87a7c7b611331d881913 |
|
BLAKE2b-256 | adbbb0b0e7f56ce5a1f8b89103513bb76230e36631b961365239889311832754 |
Close
Hashes for waveforms-1.5.90-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 024fd5492422c59ba2f3f4c3871df9f9d4526938178225a1b217f0132edd10e4 |
|
MD5 | 43f86168ebcfc202f6efabb1993d50de |
|
BLAKE2b-256 | 1ce905899f74528e5a06253fb5418a9d955b25521ec43eb1334a3b59445a9818 |
Close
Hashes for waveforms-1.5.90-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e407ffe5d3a16c989eea90a2f91e5ec07ee95ebae784990c5ca03b7a21373ef |
|
MD5 | a5ef628eea2034c633b7df880d0b4761 |
|
BLAKE2b-256 | 96bd9d4dbb76fa41591b6186be8c7d87b3c2b7e0579fccbe6b77aecf2809ac77 |