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.9.0.tar.gz
(141.5 kB
view hashes)
Built Distributions
Close
Hashes for waveforms-1.9.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e6952742b96bb0039709b6c71d505df13c318dc0121aba3f879718235cef860 |
|
MD5 | 881d9a35b058e93074aec3f1b9059a28 |
|
BLAKE2b-256 | 53dc8ba52fb1abd122a21567686bb4755490b7e5e5c872f376a88189bad7668c |
Close
Hashes for waveforms-1.9.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | baad0be6e454f510cf7c67f5a3b1e76d146afc70dc3cfd5e2bf592668a9ca273 |
|
MD5 | 3ccbb9db9192190a7329e59e248f67d5 |
|
BLAKE2b-256 | 4a52f703b0b2e6b3f9317637175494414736eb69040956979d44069443011999 |
Close
Hashes for waveforms-1.9.0-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd297e782260db1e06fa8f549035fc2bd6290af0706b4f7d01a6f1e2e19c8d53 |
|
MD5 | 1e41d5f417c80de22387a7ea57e88ae5 |
|
BLAKE2b-256 | 71933d1d16dd27abf6f002e6506caa2eee8ad83859d98059d06efea59f1bfe72 |
Close
Hashes for waveforms-1.9.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b89ee1758463f14efdf80e0b63d8f9c5f728a8655344caba2d5003899a24e2b |
|
MD5 | 9b262ce59cbc203f187819dc373686a2 |
|
BLAKE2b-256 | fc370abfedde3adb8d7342ac7d7a4e918c9a506945021dedc0d844fbdec6886f |
Close
Hashes for waveforms-1.9.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f20a18dc88853035a1616b8d5d1f29fb927a50b900ebea01d95b4c73541d982d |
|
MD5 | f284432de71a5a3b826ee77d422daefd |
|
BLAKE2b-256 | bb86161b880b68ff92b7c85af850e8c2736778e78784d90694079c80031f2ef5 |
Close
Hashes for waveforms-1.9.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46db10c3a11b07f662e81ff136328d7e1f85fb9427ecb0332e3d1da04c3d5080 |
|
MD5 | 3f680083b0d64d38d7fbe98af5af866d |
|
BLAKE2b-256 | 74b36419987c2c05d36b6079da26490fcff677578b4506ca41d42cd553418826 |
Close
Hashes for waveforms-1.9.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32bbfa49a50ebbd9b4e33e3b1042ca07fe25852e836b32772211246b49dd1f0d |
|
MD5 | 3a6712a9aadbb7302fbc7df1afb1c2ac |
|
BLAKE2b-256 | 7290e884f93f42a7b233b2f95620c1484bd3a307c9c2eb9088e941e58c4f08f9 |
Close
Hashes for waveforms-1.9.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b18d1ce3462c36d16b2d1d2c4ec07b2c7ad695017b024f2c64918f8086c35cd |
|
MD5 | 0c1648ee394c880dfd498e077638a1d7 |
|
BLAKE2b-256 | d1a5f0e1f36299d41f362802e1a107ccfbf75572d507a4bb531759639ad0c404 |
Close
Hashes for waveforms-1.9.0-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e7bfe70a8c80ae3795dcfb0d4a69a8f8ae8c278b683e4787143c8326ab2d05f |
|
MD5 | 50ebd9dc86b0a3e272a906274acc18c7 |
|
BLAKE2b-256 | 4d5fde3771aed97bb7b8e60d8bccca4be5b08400ec84a5eaff92cf6b9b4f4af4 |