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.4.tar.gz (132.5 kB view details)

Uploaded Source

Built Distributions

waveforms-1.9.4-cp312-cp312-win_amd64.whl (262.9 kB view details)

Uploaded CPython 3.12 Windows x86-64

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

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

waveforms-1.9.4-cp312-cp312-macosx_10_9_universal2.whl (471.6 kB view details)

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

waveforms-1.9.4-cp311-cp311-win_amd64.whl (274.0 kB view details)

Uploaded CPython 3.11 Windows x86-64

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

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

waveforms-1.9.4-cp311-cp311-macosx_10_9_universal2.whl (502.2 kB view details)

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

waveforms-1.9.4-cp310-cp310-win_amd64.whl (273.5 kB view details)

Uploaded CPython 3.10 Windows x86-64

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

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

waveforms-1.9.4-cp310-cp310-macosx_11_0_x86_64.whl (329.2 kB view details)

Uploaded CPython 3.10 macOS 11.0+ x86-64

File details

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

File metadata

  • Download URL: waveforms-1.9.4.tar.gz
  • Upload date:
  • Size: 132.5 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.4.tar.gz
Algorithm Hash digest
SHA256 7e2b41d7b235e6241200e67e957b73671ff4c31560ad937ce3ad95390943e6dc
MD5 4b797cba804d814bd95e1e29fb8dca86
BLAKE2b-256 cea8935d70c5f54f243b28683c018ef9db4ba1d26fda6fee34d9bbc918ed5aac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.9.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4b8f9a23bdf8ac7c601366ca781c91d4293fa5c2d2b2ef2eef358cc713a14588
MD5 ad86122e12d14fba0f5af57bb3e5d9b8
BLAKE2b-256 1b3bfe24518d9c6f52f0fbd121b17ffa5607ade2d26e9fd8c42bd3685843a46d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.9.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b6f7ffce54e89515b50bd927c48cd8e41d4b03d5d71abe97aa303fdf5baf8a51
MD5 235a7c926cef340ff650695104fa25b6
BLAKE2b-256 d3a8f2adac37c0feae22ecc81b8d4016a6583e947a687037d4dbe39b51893826

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.9.4-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f00c290fe4be3cd9ac31ab281738c14ad587a051cc21c6e031f5b3ccf38d4421
MD5 f52acdf0c6af0cb9850db53cc6a588a4
BLAKE2b-256 2e17639d2c74705dc87533cf5ebb572d086331c744a5f1386561cce3cf133914

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.9.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 48b47b4c3bee3a4f9edc9cf0ef4222f93d7b0f3e24a6349e65cc7a7b2be71e36
MD5 5850a42644cbb508c2b1847ef8090fef
BLAKE2b-256 2d2b7d5fafca901c0f8b48bfa62235e9b8579f3492fc026e1dd543f4a27654f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.9.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 73c4f8b093efe6f4f0a4fa1977eb943f21e78a65dd10c28ad9141f59f4b7ab23
MD5 5820dacbd7df62dcdb12016b6c91193b
BLAKE2b-256 eff15d9a91ba8e85c950d0ee63ce8eba24942865bf1f2364090eef0dafa9ec54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.9.4-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 87d1d4fd9476d0db26bcb467ee770eee3a509c0b611d14919ce8290ed5698b8f
MD5 7c6e80ab9b1bbac32095ff4220e14da7
BLAKE2b-256 732aa101c875fa607cc2945a7070f0ff35576a43ef8eb3dab4971f137c8c114d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.9.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d745b9ab1c1d1115e6ec12818e60ad1577d1962dff0e732c042c4c4a7bcd5df6
MD5 967f05fada32001196105a29d388394c
BLAKE2b-256 7b7eb76840607fc5f6497c8821fbf8537567f2ca1c316862790aaba34f9af664

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.9.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b855fd2f226b1e0e94a37b2f6a7f9bad9322b4a11e150ff6910978efcfaa1599
MD5 64b3d4872b0e4ccb7519672f32c57593
BLAKE2b-256 db042ce48f653a3aa46a8be71bf711f4853af857855d7e86e9c3830fd498e170

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.9.4-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 db5c62d7d9c47d93103e4876d9764b3aee9e21243f8225a23d3715b60e3f6ade
MD5 b868b23617a7ff47d9aeb5da79737998
BLAKE2b-256 3c1f2e7951187e2723981d75a3a101289893887e107a260477879d7b91db9133

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page