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.10.tar.gz (232.9 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.10-cp311-cp311-win_amd64.whl (279.6 kB view details)

Uploaded CPython 3.11Windows x86-64

waveforms-1.6.10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (319.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

waveforms-1.6.10-cp311-cp311-macosx_10_9_universal2.whl (284.4 kB view details)

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

waveforms-1.6.10-cp310-cp310-win_amd64.whl (279.6 kB view details)

Uploaded CPython 3.10Windows x86-64

waveforms-1.6.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (319.8 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

waveforms-1.6.10-cp310-cp310-macosx_11_0_x86_64.whl (269.8 kB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

File details

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

File metadata

  • Download URL: waveforms-1.6.10.tar.gz
  • Upload date:
  • Size: 232.9 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.10.tar.gz
Algorithm Hash digest
SHA256 f43317d12b11eaf552cf3ff384dd4fe04b83d9cc8977b9bf1e92684acdd2c53a
MD5 7e6025f1d95d5981faf77981e73f8231
BLAKE2b-256 1d24ccc187bc9fa45fa74e04c2d0dd6fd5411d298de2981bb3135ed9f0d8513f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: waveforms-1.6.10-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 279.6 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.10-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5cc72237561df4fc390a65c77e1d514ed48089fafef48077152e38b9a5fdcb80
MD5 b146b71d9159ca20a8debfe39381050b
BLAKE2b-256 8260d15324ae996a32ce2d5e2c00928aacb900e320d9ce0e9dc601ff0a586e13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.6.10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0660e08606a45e89a60af778bff7b9212a53882f9f2f237776ce81e58dfd8f6a
MD5 e20ad99a08b350cadf0ad5aa15f5d496
BLAKE2b-256 e8d7b9980f61bed3e812a99df370eaa7ae3c4258bb6e81a3be1f49b1fbb989d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.6.10-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 3626b40c135119c8b0efd8e3561de434f2d52971f411905e0817b8c673d25172
MD5 5efcb8340920aa2e20f704c80947b2b8
BLAKE2b-256 55f2b5502fa38f2d0b86d815bc04a8b357180ea80fb165fc99c091ca3511353b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: waveforms-1.6.10-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 279.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.6.10-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 74f23a55370ffd6f849c38d44862b4a387e73f2802cf0aa1ad3e52241eb7cd51
MD5 010302247d09be877611253d6329f7b4
BLAKE2b-256 d1e585f691a38e51c05698f1b97ecc4ec90a4de04d16c1886669f00e346caa0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.6.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3b73917202f9acb1d4302dc4510cb5a4785876457a8a8640e301e0bada9133c1
MD5 c356c9754d1a02012c73c06d3e8aa30b
BLAKE2b-256 ceb3191145da3c55204cec1bf9689bcdfc8467f5c7f544d7dea4bdfc1aa85248

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.6.10-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 d09eb8d89636c9fd33e05661a05b947124a823a5d56b1ea83e2acc5820d91fe9
MD5 ec6ad64cfe03c9c12e9684c5d6500f7f
BLAKE2b-256 91219e060cb43f52e870f03f60a73aceb795461bd0ddfd3f240c7824ca756e78

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