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
Built Distributions
File details
Details for the file waveforms-1.9.4.tar.gz
.
File metadata
- Download URL: waveforms-1.9.4.tar.gz
- Upload date:
- Size: 132.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e2b41d7b235e6241200e67e957b73671ff4c31560ad937ce3ad95390943e6dc |
|
MD5 | 4b797cba804d814bd95e1e29fb8dca86 |
|
BLAKE2b-256 | cea8935d70c5f54f243b28683c018ef9db4ba1d26fda6fee34d9bbc918ed5aac |
File details
Details for the file waveforms-1.9.4-cp312-cp312-win_amd64.whl
.
File metadata
- Download URL: waveforms-1.9.4-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 262.9 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b8f9a23bdf8ac7c601366ca781c91d4293fa5c2d2b2ef2eef358cc713a14588 |
|
MD5 | ad86122e12d14fba0f5af57bb3e5d9b8 |
|
BLAKE2b-256 | 1b3bfe24518d9c6f52f0fbd121b17ffa5607ade2d26e9fd8c42bd3685843a46d |
File details
Details for the file waveforms-1.9.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: waveforms-1.9.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6f7ffce54e89515b50bd927c48cd8e41d4b03d5d71abe97aa303fdf5baf8a51 |
|
MD5 | 235a7c926cef340ff650695104fa25b6 |
|
BLAKE2b-256 | d3a8f2adac37c0feae22ecc81b8d4016a6583e947a687037d4dbe39b51893826 |
File details
Details for the file waveforms-1.9.4-cp312-cp312-macosx_10_9_universal2.whl
.
File metadata
- Download URL: waveforms-1.9.4-cp312-cp312-macosx_10_9_universal2.whl
- Upload date:
- Size: 471.6 kB
- Tags: CPython 3.12, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f00c290fe4be3cd9ac31ab281738c14ad587a051cc21c6e031f5b3ccf38d4421 |
|
MD5 | f52acdf0c6af0cb9850db53cc6a588a4 |
|
BLAKE2b-256 | 2e17639d2c74705dc87533cf5ebb572d086331c744a5f1386561cce3cf133914 |
File details
Details for the file waveforms-1.9.4-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: waveforms-1.9.4-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 274.0 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48b47b4c3bee3a4f9edc9cf0ef4222f93d7b0f3e24a6349e65cc7a7b2be71e36 |
|
MD5 | 5850a42644cbb508c2b1847ef8090fef |
|
BLAKE2b-256 | 2d2b7d5fafca901c0f8b48bfa62235e9b8579f3492fc026e1dd543f4a27654f3 |
File details
Details for the file waveforms-1.9.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: waveforms-1.9.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73c4f8b093efe6f4f0a4fa1977eb943f21e78a65dd10c28ad9141f59f4b7ab23 |
|
MD5 | 5820dacbd7df62dcdb12016b6c91193b |
|
BLAKE2b-256 | eff15d9a91ba8e85c950d0ee63ce8eba24942865bf1f2364090eef0dafa9ec54 |
File details
Details for the file waveforms-1.9.4-cp311-cp311-macosx_10_9_universal2.whl
.
File metadata
- Download URL: waveforms-1.9.4-cp311-cp311-macosx_10_9_universal2.whl
- Upload date:
- Size: 502.2 kB
- Tags: CPython 3.11, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87d1d4fd9476d0db26bcb467ee770eee3a509c0b611d14919ce8290ed5698b8f |
|
MD5 | 7c6e80ab9b1bbac32095ff4220e14da7 |
|
BLAKE2b-256 | 732aa101c875fa607cc2945a7070f0ff35576a43ef8eb3dab4971f137c8c114d |
File details
Details for the file waveforms-1.9.4-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: waveforms-1.9.4-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 273.5 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d745b9ab1c1d1115e6ec12818e60ad1577d1962dff0e732c042c4c4a7bcd5df6 |
|
MD5 | 967f05fada32001196105a29d388394c |
|
BLAKE2b-256 | 7b7eb76840607fc5f6497c8821fbf8537567f2ca1c316862790aaba34f9af664 |
File details
Details for the file waveforms-1.9.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: waveforms-1.9.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b855fd2f226b1e0e94a37b2f6a7f9bad9322b4a11e150ff6910978efcfaa1599 |
|
MD5 | 64b3d4872b0e4ccb7519672f32c57593 |
|
BLAKE2b-256 | db042ce48f653a3aa46a8be71bf711f4853af857855d7e86e9c3830fd498e170 |
File details
Details for the file waveforms-1.9.4-cp310-cp310-macosx_11_0_x86_64.whl
.
File metadata
- Download URL: waveforms-1.9.4-cp310-cp310-macosx_11_0_x86_64.whl
- Upload date:
- Size: 329.2 kB
- Tags: CPython 3.10, macOS 11.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db5c62d7d9c47d93103e4876d9764b3aee9e21243f8225a23d3715b60e3f6ade |
|
MD5 | b868b23617a7ff47d9aeb5da79737998 |
|
BLAKE2b-256 | 3c1f2e7951187e2723981d75a3a101289893887e107a260477879d7b91db9133 |