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.6.4.tar.gz
(225.3 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.6.4-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 771a1aeab84589c5621e8a2b3fa3f18e7fb1018900a4c28c709f76a747261eaf |
|
MD5 | 9e358fd152d0fa560b279a5528a5b303 |
|
BLAKE2b-256 | c38264803b004751d37664cffd0d3c7d9db87b50f9fd61ac9c6c205e2c860bca |
Close
Hashes for waveforms-1.6.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62fce849ca500241bae8e939925dbc8bf485b5dda65095267d04e351ae416511 |
|
MD5 | 8591b90db31f36e64c88d1ed47e15ed0 |
|
BLAKE2b-256 | 02c640359d768d67f859fdaa0a3a6884a5f1669b9229d289f5f4ed0d369e6162 |
Close
Hashes for waveforms-1.6.4-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bd8a800188aa8c8e9d29d766cc7b1f0f4bd1f5fc91196c61b33b977abebef74 |
|
MD5 | 1b8cccd636ea6c30c45848d2226a1a09 |
|
BLAKE2b-256 | 99e83a24147c2c41ca4cf65075d4ecac107e909502067cd159458cec2954c9ed |
Close
Hashes for waveforms-1.6.4-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2760ea32f0ea89b1910219621347c32b89cdc2de79dc3ecc5b5c7f0377e02d9 |
|
MD5 | 9b20f13a03f9a7336f4ebc81d880cabb |
|
BLAKE2b-256 | b5e2497d06a15af4dec24984697d588938cbb28a2ea64ab244639ca6d4ea1a9e |
Close
Hashes for waveforms-1.6.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 370f10d2117cc941fff5c5c13e9df2c393d690674e32b4900ba6883e01184686 |
|
MD5 | dae7cc51f7cdde0f945f9335f865de44 |
|
BLAKE2b-256 | 8decc5205cc90cb35b86aff75d7a283ea587c77841716e1b01d1689233bc6635 |
Close
Hashes for waveforms-1.6.4-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5183a125c63da892aa4650e6a451c1a5d4ad3b292a275aace2d82d6e424e9e7 |
|
MD5 | bbb4c94d8615225a5e35e1eb27992dd4 |
|
BLAKE2b-256 | 557f673c520dc2dbb571c2ae33c23debc47ede7f28494651744becdf4ebb00b6 |