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.7.3.tar.gz (242.5 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.7.3-cp311-cp311-win_amd64.whl (299.6 kB view details)

Uploaded CPython 3.11Windows x86-64

waveforms-1.7.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (339.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

waveforms-1.7.3-cp311-cp311-macosx_10_9_universal2.whl (304.2 kB view details)

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

waveforms-1.7.3-cp310-cp310-win_amd64.whl (299.6 kB view details)

Uploaded CPython 3.10Windows x86-64

waveforms-1.7.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (339.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

waveforms-1.7.3-cp310-cp310-macosx_11_0_x86_64.whl (289.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

File details

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

File metadata

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

File hashes

Hashes for waveforms-1.7.3.tar.gz
Algorithm Hash digest
SHA256 3044c2e8da417739597f02a1aaa1ab760ae97f121ac2ce487bb4a57e984fa185
MD5 52458ca9faa9b14e817341c8f3e2f484
BLAKE2b-256 4dc4064adf39dd3e7b099e478c56cd5ac50125135bf27d5a55c016fa0f8f02aa

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for waveforms-1.7.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c11f38688262535cdad383059fa71d0522aa86b9b8db0b17b0e341d9d068e690
MD5 8ae71772f7921b561ce8bfcea7e3541c
BLAKE2b-256 21dba729578e03dd7df3153278fc87a6e1471885a411088d75f35f4dc55a7e86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.7.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4dbc832f68a6cebcbf14eeb112402bd1fe72fcb33ff05942010989b99f9a53b9
MD5 594e2fdb05bfe074144f6cf7b1602365
BLAKE2b-256 d44256af406e11ca67289b8e24f96ecd3202af4172948a5afba72f426cf18af5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.7.3-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 0a021e8bc4a33b73dfc2a12bba7ac8e3480620a860cdec5bd034bab3f7d67949
MD5 66a679e0030a40e9f70249a2c8223b22
BLAKE2b-256 2f1928643c6c5ac9dbb0d7aef8f8e0f9192d86eeaaea444f889ddb086ebd617e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: waveforms-1.7.3-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 299.6 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.7.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 878f251549c76fb50eb3c98d07a99f0468d289b569b9a1c9bcfafa65be3defbd
MD5 ecb2f8199fce943a4181556bb63f0b39
BLAKE2b-256 307201752e71c0de641f7adc1388afd9c9031e33b2a0e88cc6b6e05ff9b57ffc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.7.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 42b7d90ca7d40c5ee3e3af9237bc2ec6fae48db9f19ee5539ee0855ac863dc8f
MD5 947b2273f20a7384c6c94f814e07db0d
BLAKE2b-256 f49fed6bab5836ce39db1c771b3dbfc487999c6bbbdeca5e5524d5c7a2788737

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.7.3-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 d071ef7264c671228432870ee5d2082529e6bc9330151d586009c56bce138f08
MD5 8f58af19c835008c5e4a40a4c3f30560
BLAKE2b-256 efba2b2b083335dc90e8f5d609f85ba8618db9f60aad5356b8f8abcdd363412b

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