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.8.tar.gz
(271.0 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.8.8-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53a59daea88037369524647b18e8560e09dd3efb0b6c5b1d5a52a13490a3b6b9 |
|
MD5 | 9cbf9585f45164726dd4a899797cc31f |
|
BLAKE2b-256 | 84190010107fdeb5d809eb50ce6f35e57d8710739d2a70e06f0335c87fd240e6 |
Close
Hashes for waveforms-1.8.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b59ba1afa6a5325e9c81fabb902d498460061a2593605a0e7382c2fa7f52449a |
|
MD5 | a1c4c8487cec56527336693af1fb03e6 |
|
BLAKE2b-256 | 4df5969508102d14e2a766c7b9edee7011d009e1ebf6c03ac0b44f14e8fa590f |
Close
Hashes for waveforms-1.8.8-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b1cfa5df4b25ae380b6b9f5fe51db65ef6d771f5168b885074f76f65fde0468 |
|
MD5 | 40f372825ddddebb52eb64f0ad35c3b9 |
|
BLAKE2b-256 | aa5a7162ecc63a192026dd35950bc87711451edab09111d6b9cc5159da114efb |
Close
Hashes for waveforms-1.8.8-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb5b98d9fdb841cfd817823c13a349b2f8a3ee1de74834df9ea955c67a897330 |
|
MD5 | 3a6107675918f0a147ad3367238d5795 |
|
BLAKE2b-256 | 98c5ef6a500181582f4fda834f3e221f49192dfac4cdaacb41035ef4f01593e5 |
Close
Hashes for waveforms-1.8.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e62b91958cdae0915468576c268350a56d92191864717519226cdbb5e3a4fb9 |
|
MD5 | a3e6d4b5f9239bb370021313c0fad1b5 |
|
BLAKE2b-256 | 888780f5773572932015ea8233014dc39feef540673b1b116584a939b0c75f8b |
Close
Hashes for waveforms-1.8.8-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25191450db5e4464a2f138e7e1fc24f65fda9090a123f7e085fc004361bd9d99 |
|
MD5 | 71aff9991c5ef54c41371d9532b4bbdc |
|
BLAKE2b-256 | aa56a1aef4f6572d32881882efb05a2db0b9350a49047718eade746ea0a9c231 |
Close
Hashes for waveforms-1.8.8-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98965a75446ba7ec9587065698130ef4a894fa5aaca2bf72c36f9f0f0836e89e |
|
MD5 | edb00775a4c90abf9a42872e55af13f4 |
|
BLAKE2b-256 | aa9b42512b9f8a8193947a2cb6f78916d41bda35080ac4a7b6f989af069551cb |
Close
Hashes for waveforms-1.8.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9ba995d11bbfc8d254e17e737dffdee3fdd921d0bed60a05afb66ff4592ca1c |
|
MD5 | 2e1950f6d8e1cd65fe7a9e84389790f0 |
|
BLAKE2b-256 | d9dfbe8cfe28713bc09eeacc2be9605e8f78f3bc22c1e0848eba443dbeab4a29 |
Close
Hashes for waveforms-1.8.8-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 888bf2932d335b4f85a6f1db4d7ce3de0f19c025d8034397899bef8fcd64c876 |
|
MD5 | 040398fb75e279a61138f4ade2ffcbf2 |
|
BLAKE2b-256 | e9bac61a04e7d0310aec8ca75ea02ad6188f67c46e5e197cf1677fd97ed921c4 |