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.54.tar.gz (126.9 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.54-cp310-cp310-win_amd64.whl (175.1 kB view details)

Uploaded CPython 3.10Windows x86-64

waveforms-1.5.54-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl (226.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.5+ x86-64

waveforms-1.5.54-cp310-cp310-macosx_11_0_x86_64.whl (184.0 kB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

waveforms-1.5.54-cp39-cp39-win_amd64.whl (175.6 kB view details)

Uploaded CPython 3.9Windows x86-64

waveforms-1.5.54-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (226.6 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.5+ x86-64

waveforms-1.5.54-cp39-cp39-macosx_11_0_x86_64.whl (184.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ x86-64

File details

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

File metadata

  • Download URL: waveforms-1.5.54.tar.gz
  • Upload date:
  • Size: 126.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for waveforms-1.5.54.tar.gz
Algorithm Hash digest
SHA256 71e0242e21cf25d1ce84ac8c2cda695bd1b513a82e4c41b835f9e911511690ea
MD5 6a38e4c6ddcf1009fb35fb84d9d85b82
BLAKE2b-256 59a8cc4c157dc3a692883da4858340160716fdd18cf1ec5402998389cb3e52f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: waveforms-1.5.54-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 175.1 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for waveforms-1.5.54-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 572302288642570bdf6c581a732d0bca8741031f15087f77174b2439bb56ec38
MD5 236da46d242e201e514f1aa24375461a
BLAKE2b-256 f3b8d226da5f21e7e31732f0a41ba7e3cb8c641189955c0da0e5e40713b16203

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.5.54-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7c14b2eb9597d7d4cb1a691002dd66ae1b832c0845678f7db81aba6c94ab5f66
MD5 0f70ae08511b7db400076ab8a4862c85
BLAKE2b-256 0969313a93daa2dbbf0c6ef56ee43029307fa50587566add4dca612663cdedd0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.5.54-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 872240e209642f63615ad789396b6829babd9d597993584fd317d72809021b0e
MD5 1c03ac4ed1c2fd944e06181adb206a49
BLAKE2b-256 7a5675911df53216e8daeb49d7d8a3c7b8933c216a8c04a965496e638957fe36

See more details on using hashes here.

File details

Details for the file waveforms-1.5.54-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: waveforms-1.5.54-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 175.6 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for waveforms-1.5.54-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 069d7b57e16e84433ba6e174aa2be61394e29a99d20c92465404a7e06b724016
MD5 37ccdefff3e7ae7e79145a71282a6093
BLAKE2b-256 a426308900ab5dce403e824ae7c88a8497b08e31a01e0246e7d6145c1f3110ef

See more details on using hashes here.

File details

Details for the file waveforms-1.5.54-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for waveforms-1.5.54-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5606e4e8cfbb1cd65f3ac97fc7ebd5140316724339d18b4f9698b2939168a5c0
MD5 8b5aa1ff2e7a96175f51d24ba13ecdea
BLAKE2b-256 c9b56818c9d3730ee6100e6fbf7c39634e84bc86919a357e0e22250a6965d21a

See more details on using hashes here.

File details

Details for the file waveforms-1.5.54-cp39-cp39-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for waveforms-1.5.54-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 ef3f15e1c8b527840b1eba77dbee765e3281b4375e94bf19d6a44748896c6abc
MD5 6883714cce94879b6dced0fffef240b4
BLAKE2b-256 bdb9c99d51a25e3c6d880522ea616e6d276ae3eef546d2d5c598feb4cd56a093

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