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.9.3.tar.gz (128.4 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.9.3-cp312-cp312-win_amd64.whl (258.3 kB view details)

Uploaded CPython 3.12Windows x86-64

waveforms-1.9.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

waveforms-1.9.3-cp312-cp312-macosx_10_9_universal2.whl (467.0 kB view details)

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

waveforms-1.9.3-cp311-cp311-win_amd64.whl (269.4 kB view details)

Uploaded CPython 3.11Windows x86-64

waveforms-1.9.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

waveforms-1.9.3-cp311-cp311-macosx_10_9_universal2.whl (497.7 kB view details)

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

waveforms-1.9.3-cp310-cp310-win_amd64.whl (268.9 kB view details)

Uploaded CPython 3.10Windows x86-64

waveforms-1.9.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

waveforms-1.9.3-cp310-cp310-macosx_11_0_x86_64.whl (324.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

File details

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

File metadata

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

File hashes

Hashes for waveforms-1.9.3.tar.gz
Algorithm Hash digest
SHA256 853882bdd1141bb6a91bb3dad0af12b39dc20f954b97c8d5b368503276f3cf81
MD5 7ffb275a3a8ce1320b5029493385519a
BLAKE2b-256 4a5c6af87caad2a10a72efda7a5b0670f03b6f0e4d1ec2faca4d4d8a6f938276

See more details on using hashes here.

File details

Details for the file waveforms-1.9.3-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: waveforms-1.9.3-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 258.3 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for waveforms-1.9.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9187a54e8c6559b77de67dc80f3ab832c90be34a86d6e7c1a930b0d77fe49fbb
MD5 9a9c58510764341bdd71fe82ed435acd
BLAKE2b-256 b2ee91d56b08b75e9f40187d7996172306b9bb2d38732d829e2a1f7f2879e21e

See more details on using hashes here.

File details

Details for the file waveforms-1.9.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for waveforms-1.9.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 39ea3311b3cf1244e2b094ae7ab3c6aa5919c46bc421c7a2d7e47b1be7df57ec
MD5 a6915383c26fe0baa4a90ad5950beacf
BLAKE2b-256 f922cd6e2228c7b2685f5d39907a0318090fd6f84a1ea8da47a981b167042ec8

See more details on using hashes here.

File details

Details for the file waveforms-1.9.3-cp312-cp312-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for waveforms-1.9.3-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 bbf2d3ff5544dcf7170b7353d534b3a87d17859105aa3af244462b7dc95d2dac
MD5 b0875ab036d2eb0d6bc26c7a2f9a676b
BLAKE2b-256 e8f35914d29d1586ea482185e0f29fe796d027551633bbf39906a7075b7a8f6d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: waveforms-1.9.3-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 269.4 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for waveforms-1.9.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 19a32ff6c86c739469b83ff344bc1fb05525a0f1e6b4abdea0e93e1fbee8f292
MD5 c59715addf095fdc6ce9ab9570ea07fb
BLAKE2b-256 bee425112ff31f77aff03a9109080033e1ce0a6bd835553ec2a3d5355dd8271a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.9.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7c5d385e39b80eaaea6cf8b954d83118e6343656200c53e83d7a4954c26778c0
MD5 e4f9e4dc0c43e4d8b64d2738e396bc15
BLAKE2b-256 83bd53a5f32a4246db197f96c9d83e76edc0216c9efb57cf8a5f104d8f50e131

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.9.3-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 6a023450dfdac795d82dba1607d2eb2738eae54939f5c4a043feb7539cfbb8e2
MD5 d7d634c2ad60ed295bf537801c0bd93f
BLAKE2b-256 80f89e1b1f37143a4369ef5e2b710dda08feca4cc9140eab2cfa45e52123378d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for waveforms-1.9.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a9f399c2cadfde6242c6c21ede7c16ccbb4b6a15fa7d33f8d95e442988d576bd
MD5 1f0adf58e110698902b8ce64b898a2aa
BLAKE2b-256 76ff92a0ccd5414b42117d869245735eba6667baa78a1badfaf0ba173637575e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.9.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 85d37b2e1d9fc7a9e91b8d2ded533b6d29b005498e23c5256ef0dcb915c225a9
MD5 a9e4f9e5b7df43d0acf9942c07af329a
BLAKE2b-256 8963c2b6af8ee67286b7bc5c36f853a39cbc91815a278e1e84031bf4918638ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.9.3-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 89ddd139152e6345031952d6775aaf4d871debddf9a4a55c0c58210a90c67e15
MD5 1b6ff876fd759161f56b87aa70b1d7fe
BLAKE2b-256 594fa812f3516fa438f07614e9921656c39126fedd93c9a7ca5a6edc69d7de28

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