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.51.tar.gz (124.6 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.51-cp310-cp310-win_amd64.whl (170.8 kB view details)

Uploaded CPython 3.10Windows x86-64

waveforms-1.5.51-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl (222.4 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.5+ x86-64

waveforms-1.5.51-cp310-cp310-macosx_11_0_x86_64.whl (179.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

waveforms-1.5.51-cp39-cp39-win_amd64.whl (171.3 kB view details)

Uploaded CPython 3.9Windows x86-64

waveforms-1.5.51-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (222.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.5+ x86-64

waveforms-1.5.51-cp39-cp39-macosx_11_0_x86_64.whl (179.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ x86-64

File details

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

File metadata

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

File hashes

Hashes for waveforms-1.5.51.tar.gz
Algorithm Hash digest
SHA256 4de0ec3c6255a77454c075057ab1f68707144a2bb972a8569ac7ca008db248ab
MD5 74dd5f0c95c98430b6d43ee4bc93e0c0
BLAKE2b-256 144cfe6b7d5f7a8161684652745ebe9d7891723bc75fc75d3d7f931e69c5c776

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for waveforms-1.5.51-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7bb83c010e9984a26e7ea97004f25f9684f6647eaca8a1e1d1d46e8fbe40302a
MD5 9136549711f95ad45e9d812f292859fe
BLAKE2b-256 e0b511e639bd1832f3deac08d218a4a91e0c9677d4fb50ee29dbc3cae1ac8198

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.5.51-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5258004c8aac87648d7c59a5df76389fd69ba84e8363ddc7ff998ba41ca8fc4a
MD5 d2957577a4a030c9049766bcb58ecfb2
BLAKE2b-256 3c13511f85267a3c338ebec92076ff4b36c61a8798d567ba8b626da45b1900d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.5.51-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 3ce12217323bccbd4b721fd134769b32aace45b269e451d37f3902f2e4af1c00
MD5 39b459273965c014d27d89ed656792f3
BLAKE2b-256 558e474e7abaf9e0223a1c2e30623a9de531fa1ebc274f24acfc770bb8a4f165

See more details on using hashes here.

File details

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

File metadata

  • Download URL: waveforms-1.5.51-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 171.3 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.51-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 34f2ddee29d65dce22ade78a490ef44fff90048db74a548d6c375f59c32fad77
MD5 d05bb60b2dee7cffaf0af71ef75ff54b
BLAKE2b-256 255c7d7f6cfa5b4713c1b5f16e2848ca19ef818b579b9595f96b7d11f64c8a13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.5.51-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0fd839a45134decdad4b7431bcc5e01e20e4bb99871e5994914114be122688e4
MD5 4343cbd5a28168b59ff1b8a4a386403a
BLAKE2b-256 f726e55066307f63fa2b6a26f1e948545af40ca065ea3b697957064d2ff61a2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.5.51-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 2150e527e4bed4a1c647c999b3bd9db886568ec6e1f45d85faf6889720aeca4e
MD5 71054825ee9dfadc9f66d2882b8c9a45
BLAKE2b-256 7040f61bc3fe57022da0791aa18e4377c19a0d424452fcd9553a6db6541b3ab9

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