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.9.tar.gz
(251.9 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.7.9-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4b4a20b4fd86cb4168ced97a09215a3cef5f5f3699140a022c58f413821c48a |
|
MD5 | 9c26a1ddfe79bdac5cfd6c12dea2387d |
|
BLAKE2b-256 | e0a321b3bd3b3bd83824665dc6e13717d8f59ef3e8cbac09d2876ca41f32fbfb |
Close
Hashes for waveforms-1.7.9-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2cc822317a6e82cb3bcf444c323c7a8018b525d351271f20c829ffead3c7c3d |
|
MD5 | 34478f351967a99077d17c2823ca00d1 |
|
BLAKE2b-256 | 52cf048efa812ee74f2459651d4d5842bb93c50ea9f7a80b6a36bf9dfbc70617 |
Close
Hashes for waveforms-1.7.9-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f54b000718f2b58e975c034c58574adebbbae7e4ee816f18eaaaed6d50e1cbe |
|
MD5 | 3ea4a2dd457ec6cf1b6bdd5dd231aab2 |
|
BLAKE2b-256 | d8efe5ddcc84dceea5d3bb4bbeacdb9eb5db45bc3549b8b795cea65ef592fa33 |
Close
Hashes for waveforms-1.7.9-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b360c00c5c6826f09ce250ef1ee5036ad338b12cf3bb64787d1ae198e0d5131a |
|
MD5 | bd8818ac74a4e3b271401deae10f66cd |
|
BLAKE2b-256 | c9f65488b923d6f196406d954e6d108903ee69a292229f24f2bdefe507bfc0a7 |
Close
Hashes for waveforms-1.7.9-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78384377a0c60ae2c4231b7405f6a2be83ec9c94db7bc152c0bc4047b080a4f4 |
|
MD5 | 53ab4f5e3e1fa369075a7124e3ab940d |
|
BLAKE2b-256 | a5024d1aa997859b1d25bbfd30275e298579ee32f8a3f849bb9bc68f7ffa7b7e |
Close
Hashes for waveforms-1.7.9-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5ab9a0eb409baf8f7348dbb5f6083708892a46e358fb362cabd224418853595 |
|
MD5 | 4f4ff225d4717ad98f87b0f72ec16ba5 |
|
BLAKE2b-256 | 3b96fc25018eb2ca0698a0986379810bdaafeb1cde7c6cc26694949df679e8e0 |
Close
Hashes for waveforms-1.7.9-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9eeed0b4175a473757204d69f94e5f76b3808ae00e816df6fe7b452730b5cc26 |
|
MD5 | af77437d7167b287df86743a7423c3a5 |
|
BLAKE2b-256 | 681d4b6b7b8a85260ff5c5fd0be1fd835967a5549b096b3887f1df1443880cf6 |
Close
Hashes for waveforms-1.7.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e95cbeeece6501bbb5e40d4974fc2d36215b031878342cfb92b4968c6aefe76a |
|
MD5 | 8e2b93ecd7dda1a13842701fa350f3cf |
|
BLAKE2b-256 | 0b4210c9ddbdbebd1801ded91857216f228cc3b501d7083f27c43b3634bcc4ef |
Close
Hashes for waveforms-1.7.9-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9d5762670ecadcc2a89b6c34df598ad4f9a3206b3580c27ad85ead78652704d |
|
MD5 | ff7a0a2998ff29492c9e5137aa745f84 |
|
BLAKE2b-256 | 165925894098823e1b28fd72ad22561d74a89769b89b17d40c04d1c98a9a5b15 |