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.6.7.tar.gz (227.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.6.7-cp311-cp311-win_amd64.whl (274.0 kB view details)

Uploaded CPython 3.11Windows x86-64

waveforms-1.6.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (314.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

waveforms-1.6.7-cp311-cp311-macosx_10_9_universal2.whl (278.7 kB view details)

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

waveforms-1.6.7-cp310-cp310-win_amd64.whl (274.0 kB view details)

Uploaded CPython 3.10Windows x86-64

waveforms-1.6.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (314.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

waveforms-1.6.7-cp310-cp310-macosx_11_0_x86_64.whl (264.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

File details

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

File metadata

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

File hashes

Hashes for waveforms-1.6.7.tar.gz
Algorithm Hash digest
SHA256 b1b344ff89d6dc53e3a75f7bdc88c91c37db769369d930a6dd439ec46ab0d089
MD5 5250ae1810adf3975ceae69ec3d3ddfd
BLAKE2b-256 4ebffe4d12c1c54de3d836b0d17ffb081426493a1d448f23ec6f01de0ea1b4d2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for waveforms-1.6.7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 104d82b87b3f6b32e14befa21a641b307e7811a8af4b28caa9a460d8d3765af8
MD5 16e67451c0a76002acd161fbb8db2e05
BLAKE2b-256 271bd1c186e41a21c0b1a46a3baa2baeb341a76b4a8466500f4a34aa2422312e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.6.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cdadc6c96cc0609ccd8c60bc6c5c6c7eb230ec938563b0fc9b6f9244312e7e61
MD5 3a5671921291c6354ace60dbd5392cad
BLAKE2b-256 b84b551241f72b6b390c43d53c873bb5376fd2997090fcc56d4336359cb8536d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.6.7-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 0ccf5ae840ff39745ff3fdd3ac0c2ed404696ff23f8e43913412b8b77a2155b5
MD5 ea0eccc48f52c89c40b1dbd58d9a3c0f
BLAKE2b-256 4fb912a628927d287d6b93f7b48b7503a7a2d9460ca59b10604f571548fb5ae5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: waveforms-1.6.7-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 274.0 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.6.7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f2a704386868d3158141d3e822cc27e4a862fdb6f9ddd0f4004b48611674df0b
MD5 5c578015e37caf8969e6c9e81389ed84
BLAKE2b-256 5db33857142a9b9092b084083db9c821ded2d7bbe38d1ead05b6ba0a0b8e0320

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.6.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f8bbf221cd7480c61bcab0e60f9f028855d618b3e8ced2abc0ee890f954b017e
MD5 5f917e782fca123b58277b9414bccfbe
BLAKE2b-256 6c85f4a9f51246d82dbfb3b970b47e7bb49520a50ede7ebf3457a8bd8be9e44c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.6.7-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 a1b4adaa4eeae809fcc1632ee3b1ec2a545494aee806a31ddf014d28e942ccf7
MD5 0cdea77a253431706aeaaebe919661de
BLAKE2b-256 49ec16a449364926ac629b2ec7a6a25cb9a3a8caee300254b91a9890c873665d

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