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.10.tar.gz
(269.2 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.8.10-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c160a1ca92f7f5c15ea6c29485182cbdb33785d0d240c8417ebcee1fd9160459 |
|
MD5 | baeab54eb033cee46e288e0cc75d76ce |
|
BLAKE2b-256 | 7dc67a942cddfd69257d5f400ec73846ce1b00b20eab5051c9c990979278e925 |
Close
Hashes for waveforms-1.8.10-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cd30e21214ec2bdf205f47bf9e65f6153010196d0c23f85ce3c2142f59cfc11 |
|
MD5 | 0a022d6d367beb555eb5f3f5dee145f8 |
|
BLAKE2b-256 | 1e6c76e24624da6835c665d74c38ba79efbb30746498b996b34e68205a8df448 |
Close
Hashes for waveforms-1.8.10-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e8e6d965672f7ccabe9b7a368a53e5b81ab3328609e470b57dfcc0d979af0b0 |
|
MD5 | 211e0ee222ecf678c72e46a9465367c2 |
|
BLAKE2b-256 | 81a485fd6a33f2fbe44663b25d12c40eae0ce0d63663c7919a1bfa4b516c100a |
Close
Hashes for waveforms-1.8.10-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3924d6cd300239831bf8d1db0fc8d9bfabacb3fad79997f3d2a8a92dae6c1ef1 |
|
MD5 | 95acd8d63b4e60e5f3a55e62a9f19e52 |
|
BLAKE2b-256 | 68d7c45382d28b2cee8ec353885e3ac777d325e1a5e70324e494a3ba88c7d39a |
Close
Hashes for waveforms-1.8.10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e1f5410071b32997a29882fa48baef972717feb5df554d3b0623e310401166b |
|
MD5 | 8d95c23ab2a1ba2dd159d21b21b847bf |
|
BLAKE2b-256 | 6e8697ee7271f6a69e0af37ad7442168a9ca452706d8f1771ebbdb4ed9a68e18 |
Close
Hashes for waveforms-1.8.10-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6924ddceb0f0e80b023145c6a469c6794f7ee8653b38364025b2d0d13dca1241 |
|
MD5 | 2d7db358df851cafdbcf2e289a362c70 |
|
BLAKE2b-256 | c04c40d086c40d786716dc9afac231eb5a97f7646ddc161f4026c8c600709f2b |
Close
Hashes for waveforms-1.8.10-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 455786cb381541c48ae003d469e10f7ca4786c3bab7094f47a755623a9eed172 |
|
MD5 | 6aa96be86e293cad6a3ae2804ed7233e |
|
BLAKE2b-256 | 3a28d4e4a06afe0608dcae177a49f3be6d5d3e056ea99b08c0913e4269bd17fc |
Close
Hashes for waveforms-1.8.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 659cff3a34f7048dcc752e91f21d151109907b5b4db5eba212e6f32eb113a965 |
|
MD5 | 2126d7d8e8289cfbf0e6ca7c650166d3 |
|
BLAKE2b-256 | e9bc1c0c73462d14538b120977204a1347d32a262ea52abed487a6f28db8ed6a |
Close
Hashes for waveforms-1.8.10-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20564810c63410691eb0658580c865139dd9914090355544defc98d488fb2aab |
|
MD5 | 269948e9edc04bf8aef5e5736caa4ae5 |
|
BLAKE2b-256 | 5ee58483dde33925429d44203066bb109a9e3ab6568e3b9cc1f79e84ef1896c8 |