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.8.3.tar.gz
(264.3 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.8.3-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5667ba37032ce2414dd71016cb29e615b22f11b068af29030f69878da526ea0 |
|
MD5 | 7688000b5b3450455bc6ea65a33c9746 |
|
BLAKE2b-256 | 45b7679a69ce43242090948642a6d00d70804a5985dfeeefca352864bf143fa5 |
Close
Hashes for waveforms-1.8.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 671b4785b3e406085ec47b661da6a98c68a3b734ff04a1047688094174f216a1 |
|
MD5 | 6e1c5ff0c629a939ee64d0ca1230cb97 |
|
BLAKE2b-256 | 650e465fd2266d53f5da81001e381d5b573c5bfee24497ec3821b8e24172f7ad |
Close
Hashes for waveforms-1.8.3-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58c85e65823a514f97f479f73bbe20e88fdc0dfeee5bc4a30e6a616cedfb67b1 |
|
MD5 | 19a46115551f317bb48a576cc310391f |
|
BLAKE2b-256 | 933922715e515020b85e3ee595fe27f34316185bcf78d861933fb628ea67df20 |
Close
Hashes for waveforms-1.8.3-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 556e3aed90886dcf21181c918941f6f2322132f288dd44445324e9df710e1e32 |
|
MD5 | 68fd106abc76dc1bbd758c1c67e9e9fc |
|
BLAKE2b-256 | 682e10094352daef265bf69b8d16b721bc224ef8bfeb56edd254b4403036e299 |
Close
Hashes for waveforms-1.8.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f782e10fb379c3e54d7e93047e15cf708eaae290f2f64b05ffe11a00de595c8 |
|
MD5 | 1a79c09bb346b6cf1a754058352233da |
|
BLAKE2b-256 | 8a89c5a4e2ffc2f3b56226cac05b8525bcbb2175935af81a5bc1d73cc0b7a5c9 |
Close
Hashes for waveforms-1.8.3-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf6062e29fc3f73262bfa3b43728fcd67a15f597dd9bf1a9ec4b557e436cee90 |
|
MD5 | 453983761f9a51e0c38e1b213f08feb2 |
|
BLAKE2b-256 | cce8ec605c5ebe6c792d8e369b37d3899aa82e7a576b0564a574c2684a0027d8 |
Close
Hashes for waveforms-1.8.3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a6dbcbaa48aa9f94da61941d92d29de1c09356ed5ddf9e47729a8083323addf |
|
MD5 | 8ba31ab5366ea36b2a57575543d860ad |
|
BLAKE2b-256 | 02d3dd99450b0b192736b785b150ccb9bfd83b1d88ce160eb3ba287ed537db20 |
Close
Hashes for waveforms-1.8.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2b9fa26c83a53a3d20f641e27d69db403d6bfd002c7f330cba8ac47394e3521 |
|
MD5 | 8b93fda38012ce8c3592918da5ebe610 |
|
BLAKE2b-256 | a45d2ba655bd597951118b699217b51476d87fbcfd7fcca92af4e7e04673b36e |
Close
Hashes for waveforms-1.8.3-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abd05b9fb8fc67be43da624ea51b77877b9cf4e507272ae05abb68ee20280d7d |
|
MD5 | 2a29dcae1877736616c75db47b853f06 |
|
BLAKE2b-256 | c008bc2f559c8f44f4ca8fc9a3fc45a87467c99f1a889ee77fc7bcfbaa77c6a6 |