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.50.tar.gz (120.3 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.50-cp310-cp310-win_amd64.whl (166.3 kB view details)

Uploaded CPython 3.10Windows x86-64

waveforms-1.5.50-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl (217.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.5+ x86-64

waveforms-1.5.50-cp310-cp310-macosx_11_0_x86_64.whl (175.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

waveforms-1.5.50-cp39-cp39-win_amd64.whl (166.7 kB view details)

Uploaded CPython 3.9Windows x86-64

waveforms-1.5.50-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (217.7 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.5+ x86-64

waveforms-1.5.50-cp39-cp39-macosx_11_0_x86_64.whl (175.2 kB view details)

Uploaded CPython 3.9macOS 11.0+ x86-64

File details

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

File metadata

  • Download URL: waveforms-1.5.50.tar.gz
  • Upload date:
  • Size: 120.3 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.50.tar.gz
Algorithm Hash digest
SHA256 c05c5dda358d28a44af25cb9a7d67a8f26e38a0a95b438c05c8a331e13eeaac1
MD5 0ca5d7ac11a195827d45ea5edf76c4f2
BLAKE2b-256 9962cac3806978fd6ee1e962d4fff96ec81b579610e914f322a5e57c13cffb95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: waveforms-1.5.50-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 166.3 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.50-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 120feab0163c10d70d67b69df81f7847380f882fdd572965b5ac5e26f659f36c
MD5 bcdb26deb3e6274ac8fe7c20bc5fdf5f
BLAKE2b-256 b7028c54c3f49ca181c211e815e5f622e78554dfe26beb609ddc25cd0a487041

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.5.50-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b492d618e4845c46ac47ed9e43c4198e526178f0aeac601dab4f0fad20a93564
MD5 1d19bcd7adbf3479ae38fe85d2f1d6c3
BLAKE2b-256 976deed09ca8c72c19ed15756ae083f42c1510769a800ab42663ea2511acd47a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.5.50-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 8ee028d284f588182c07f08f5bc3af2122f4ef58949ca8652e39d4f102cc57a6
MD5 727bc8c4c5414f1990c1c73ca6ea6c60
BLAKE2b-256 67476365bf47aa6d7805b5cc1baa0dbdd6461f4aa21ee2e97dc16cbdf9f803cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: waveforms-1.5.50-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 166.7 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.50-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1f7ef9716d3aedc2f21c95cc0f416f70698e35ac027ec21be9b0866217e5dfd9
MD5 cfe79318569a713367556318f56bd3e8
BLAKE2b-256 ad226df1ad12ffad44a0edececf7af35328b9ebe7daf4a92cbca0c70071e7337

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.5.50-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 69a1743c3f6c9704b1f4898d55267a5cef43a0d7991a2fe58fd8fa30560a6da7
MD5 db6b7babb817f355eb05a92a2f7642bf
BLAKE2b-256 4265f80acfcecf4c00cf8de3738bce859fe159891120be2736b117fdcf9aecca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.5.50-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 4a65432a9f5c70aa80031602f0e6712ba30de3c5493f087cc50696686ee38086
MD5 249ac3c5edd9de6e415b0337ae43f086
BLAKE2b-256 8c714778e535850f3c31ccda5ba243ef44b19639643de3bb19fc8a6e5aedeccf

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