Skip to main content

generate waveforms used in experiment

Project description

waveforms

View build status Coverage Status PyPI version

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

MIT

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.5.66.tar.gz (134.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

waveforms-1.5.66-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.whl (187.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.5+ x86-64

waveforms-1.5.66-cp311-cp311-macosx_10_9_universal2.whl (179.4 kB view details)

Uploaded CPython 3.11macOS 10.9+ universal2 (ARM64, x86-64)

waveforms-1.5.66-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl (187.6 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.5+ x86-64

waveforms-1.5.66-cp310-cp310-macosx_11_0_x86_64.whl (177.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

File details

Details for the file waveforms-1.5.66.tar.gz.

File metadata

  • Download URL: waveforms-1.5.66.tar.gz
  • Upload date:
  • Size: 134.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for waveforms-1.5.66.tar.gz
Algorithm Hash digest
SHA256 0c95403ab79364eccef655db3eb184e39b4c44b551f68ead8984ccb3a926c49f
MD5 560510adf084aff5f391e5762ab490be
BLAKE2b-256 97e3db6a9249390a2ec96341bbbb482c35262ea0ab7c21320cd1b430c61e9ec8

See more details on using hashes here.

File details

Details for the file waveforms-1.5.66-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for waveforms-1.5.66-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bc54ebaa596eb70a59c4e161372ffd70e3394b37b5475d4214b3b5d9e005d7bb
MD5 d42c1ecf9babbb09d270f3dc7996fdbd
BLAKE2b-256 8565cf9cc57694d2982f800f465eb9b4da14e1a3cb1b7ac957b3dc3c14be185b

See more details on using hashes here.

File details

Details for the file waveforms-1.5.66-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for waveforms-1.5.66-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 7fd8938adf35895eb79c057732ac7048ad17de2063d0ba6a20050b38a37d1a7e
MD5 ee33b12062ad823a10308e5a1be61d3e
BLAKE2b-256 74116835d35cfcbac7c44b60e18bb8034ce5cdcf1b636a9a16dd371095596e09

See more details on using hashes here.

File details

Details for the file waveforms-1.5.66-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for waveforms-1.5.66-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3aba10916e2829f425d66b4b7d61ce1a881b4ee789984e3016f1c63806a13329
MD5 871068d2d332d69c2ce92c2536b27283
BLAKE2b-256 c6ac432172f6346bab037e6d5487811d33f8d53ab73a215e1e78aa7de2dc0258

See more details on using hashes here.

File details

Details for the file waveforms-1.5.66-cp310-cp310-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for waveforms-1.5.66-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 32a177b8e96cef15ae8066a72421b93a21e0cf7d30bfeb93ef627bfa9697a852
MD5 9d7cb9293f4504cf9d4bab52a36bf2db
BLAKE2b-256 5711811913fd52aa1ba5952e62b14fb2c7f83ee28f0690c5f36a085ecde14dc0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page