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.98.tar.gz (220.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.98-cp311-cp311-win_amd64.whl (262.4 kB view details)

Uploaded CPython 3.11Windows x86-64

waveforms-1.5.98-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (302.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

waveforms-1.5.98-cp311-cp311-macosx_10_9_universal2.whl (267.3 kB view details)

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

waveforms-1.5.98-cp310-cp310-win_amd64.whl (262.4 kB view details)

Uploaded CPython 3.10Windows x86-64

waveforms-1.5.98-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (302.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

waveforms-1.5.98-cp310-cp310-macosx_11_0_x86_64.whl (252.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

File details

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

File metadata

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

File hashes

Hashes for waveforms-1.5.98.tar.gz
Algorithm Hash digest
SHA256 9143b00e5d35f2e5b0224269e5917fc34f19288eb7dec5f8e09b5178a9fe9f15
MD5 679645b8226948abdfeb89a474e9d8bd
BLAKE2b-256 aa8ccfb1d5a8c7b1d31b330f9ea93cf0ff1cc55e23d52e5154e3a53905a49ecc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for waveforms-1.5.98-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4b0e94ae7ae82b523d6e3375a76ff3c3f6058e26ec91b6856645f0cda455a971
MD5 ed08e21f239ed7241f687d2cd19b457b
BLAKE2b-256 522e303b02a376a8836f1143fc2187b00dd7154a3869eae17b018a3a5659b97b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.5.98-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a141fd99b18eb2a480e62421a0ae450f6d5894e96975430d1ef27facc51e988c
MD5 80d8b82b8218919fc2231fca5b40a7da
BLAKE2b-256 6cad52229f2926212b38527d5906700fdffa6b21c252bf62b617029fa0d78399

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.5.98-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 2966ac34a3aea904c9c198720ccc4b2c485136fb2a138d403e3d4dd9ec46f60d
MD5 a4bc1de75acc90fe73577f72d97e911b
BLAKE2b-256 f111b8ec1f01d04dead8559c383e1cced20be0e9d7989fad64f246d2c61f24bd

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for waveforms-1.5.98-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bbff7b889b375ce2086c1e73e0f3c07c185544169848e191f4d5c31ec95b0e69
MD5 36da4191acb909611b8c97e39f24b23a
BLAKE2b-256 6ce85027d650ac9dfe14a92b970ce784585b0a70d86a808d0c12474497c2902e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.5.98-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1c8f52f4919542719ee4281777c0e12eee7968424170ad304d7c534d731e16dc
MD5 306a012944d2c500a9edaa2b097f341a
BLAKE2b-256 309bac4df3b88f4f10d0552ad6e3af64d94166a7dd3436bd39fc153ed850dc90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.5.98-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 3c3cf7f0edd8365c2c6c4eb3ee7d73615955e370aaa3e1ff72ecb05874b59dad
MD5 6cc6760c34bf52e52b3ec7aba50800da
BLAKE2b-256 989ea106d991ab82e359eda97ba0a77e31d7b0c4354882021760eb846935c2ae

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