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.86.tar.gz (197.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.86-cp311-cp311-win_amd64.whl (239.3 kB view details)

Uploaded CPython 3.11Windows x86-64

waveforms-1.5.86-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (279.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

waveforms-1.5.86-cp311-cp311-macosx_10_9_universal2.whl (244.3 kB view details)

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

waveforms-1.5.86-cp310-cp310-win_amd64.whl (239.3 kB view details)

Uploaded CPython 3.10Windows x86-64

waveforms-1.5.86-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (279.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

waveforms-1.5.86-cp310-cp310-macosx_11_0_x86_64.whl (229.8 kB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

File details

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

File metadata

  • Download URL: waveforms-1.5.86.tar.gz
  • Upload date:
  • Size: 197.3 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.86.tar.gz
Algorithm Hash digest
SHA256 8b8b289b87ad9c45c06dd51bfc3fe4503b8675a6fcb8463f77478000d3a06ac4
MD5 3bffc312f5590b75bd330f29b13fb378
BLAKE2b-256 49f6310cbbd43b1726a6900d1255babd4f2ea031a9ddd13f5af874216cd9285e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: waveforms-1.5.86-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 239.3 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.86-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4f1e622373e2914b07c43b2669f6f8e2951266ea835c7838af6e36bc533386da
MD5 05a76be49f80fa1590f7ab94d1445744
BLAKE2b-256 6ef6d7499b6930c069799d0dcf498506ca13ec5080fb30a5bf95fe323a6b36bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.5.86-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bd5e978bb94f26d6bfd7b6fb379d0f7acccad89b2740907178192f2afe59d269
MD5 ac534e884c009c35a4110491decffcf3
BLAKE2b-256 db5890a47c79fa552bca325e550b2f7d9639ee0dd4fe72d5788fe52d2572dd1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.5.86-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 da842302f5a1f8f1f9358454820d565d0fe091dddf46f4751dbf46959ff088d9
MD5 d8a914347aebdd18daedb611f5d30ad5
BLAKE2b-256 4614f18949af7cca4b741b9c6c8985b1b8a8fc0227f966a8a28c06765c2c09b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: waveforms-1.5.86-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 239.3 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.86-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2c43c33554d5b442d5bb75ce957796c59e55f6d9c52a13c959da9b9270b17cf3
MD5 584b97c00483c79a3c3af8d573d42f7d
BLAKE2b-256 258467943baef6017b8471475a2342017991b8fae6ab808f69e44c0382dfacf5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.5.86-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 69e9ccab0f99b473b54b3f3bc166e7b006dc1576ab2682a17fe76c86cec87eb4
MD5 84649ac4c9a0232fd124f86d0828c1d3
BLAKE2b-256 02a6496f586c3fe9ea7b47fa64f24f86c31c193465059d5a6c9faf46380eeef4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.5.86-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 b27ff9e644c5adf6337ec42ef0c0e3c2a6d4dd7ac6ddd47e645654a5b3a599af
MD5 c7b16d61476b8f81ad02127375528b7e
BLAKE2b-256 7ee55cc9f368b8ad89bd2b73421b19e696c1dc4a7e8aa756fdf8fc38231f5c11

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