Skip to main content

Edit 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.81.tar.gz (191.7 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.81-cp311-cp311-win_amd64.whl (232.1 kB view details)

Uploaded CPython 3.11Windows x86-64

waveforms-1.5.81-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (272.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

waveforms-1.5.81-cp311-cp311-macosx_10_9_universal2.whl (237.2 kB view details)

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

waveforms-1.5.81-cp310-cp310-win_amd64.whl (232.1 kB view details)

Uploaded CPython 3.10Windows x86-64

waveforms-1.5.81-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (272.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

waveforms-1.5.81-cp310-cp310-macosx_11_0_x86_64.whl (222.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

File details

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

File metadata

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

File hashes

Hashes for waveforms-1.5.81.tar.gz
Algorithm Hash digest
SHA256 e47668f86b7e22bc833bd2aa45bfdb56798026f0f5fb5bea6eb8c01bedf9288f
MD5 664d87f86e4fcd7edd50a91b1320d4cd
BLAKE2b-256 18da88543672f8c2831993d6556d29200ccf1acce29de57689c818fb86189cea

See more details on using hashes here.

File details

Details for the file waveforms-1.5.81-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: waveforms-1.5.81-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 232.1 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for waveforms-1.5.81-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 58b117ac2e9884ab10d114a9d079ef3e9afaa26a262e586221c39fe7220e3ee6
MD5 18a004ae087ffc16e344eee2cc994c3b
BLAKE2b-256 bbd684c586835957462644d11115f90627985b03d5271f1e2eae3e9705a28087

See more details on using hashes here.

File details

Details for the file waveforms-1.5.81-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for waveforms-1.5.81-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4b7acd99d7ae5e83104664d4d3327819e4303e2d71723f454288abe38b46cfc9
MD5 746d5540c5703431d51c89083757551a
BLAKE2b-256 968439f88cc42e70c1d5aa670d7e0433011af0115dad357a11a5ce844dedf671

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.5.81-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 4d9d2243a6289bddd6eace1f698269c947afdd4c682ecbb932da20078258f0d7
MD5 6b3176ce8cfb45f556d37dcfda1da9c5
BLAKE2b-256 755daa93caae37550400d5b35374a592b12bdc5aa94f938d7650570727429b2b

See more details on using hashes here.

File details

Details for the file waveforms-1.5.81-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: waveforms-1.5.81-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 232.1 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for waveforms-1.5.81-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4d68c9456ea51ce5b221dff4476c2e86f82c0e76da45cb01b3576cd6e04592ae
MD5 a5cabf63f23aa71f3e52a9403b6b4465
BLAKE2b-256 fbc86b365773844c7361e67264a52ab3db0344b3089c85945166f7f3d255abe3

See more details on using hashes here.

File details

Details for the file waveforms-1.5.81-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for waveforms-1.5.81-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7228af0a0237e4ea1f47fd949018ba8e38e4364c21457406578099d5f26914f5
MD5 0f4f97083014e9e70ac5c4ad5369fb58
BLAKE2b-256 7a9dd34c5c7baa4572d8ae8ce9cbbcc1a828f50919afcb5b369a2317f13b36c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.5.81-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 9820d4beff7c77dac7fd0ac0ed5d5ad3f497eeef0bface9c9974ec0f4ea6e130
MD5 7488ec76fbf931d4bb8184d783d71e26
BLAKE2b-256 d2ba4d1d41ec6b7c539960b34d7775c98abb0ed750938346877260b1ec560930

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