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.8.9.tar.gz (272.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.8.9-cp312-cp312-win_amd64.whl (318.9 kB view details)

Uploaded CPython 3.12Windows x86-64

waveforms-1.8.9-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (359.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

waveforms-1.8.9-cp312-cp312-macosx_10_9_universal2.whl (323.3 kB view details)

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

waveforms-1.8.9-cp311-cp311-win_amd64.whl (318.9 kB view details)

Uploaded CPython 3.11Windows x86-64

waveforms-1.8.9-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (358.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

waveforms-1.8.9-cp311-cp311-macosx_10_9_universal2.whl (323.3 kB view details)

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

waveforms-1.8.9-cp310-cp310-win_amd64.whl (318.9 kB view details)

Uploaded CPython 3.10Windows x86-64

waveforms-1.8.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (358.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

waveforms-1.8.9-cp310-cp310-macosx_11_0_x86_64.whl (308.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

File details

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

File metadata

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

File hashes

Hashes for waveforms-1.8.9.tar.gz
Algorithm Hash digest
SHA256 9957ea8a66695001b51be70bd650831c0597213ef3027249dbf5cbab4ba2223d
MD5 89c29b3bc35f2cb4306500d24a847391
BLAKE2b-256 3709fd4f8970e956d3d16cfb956614ac952da3ba43a224e02745bc09fb3fcde7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: waveforms-1.8.9-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 318.9 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for waveforms-1.8.9-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 41520991c249841890cdd82888965218f402398614743853d1b588c12f73e110
MD5 a7a5affe99bf6c3688c477d9f08e68bc
BLAKE2b-256 c823b9d0c10f9ea681bd05edecbd7489f3f26ff7908783ab79d6c7cf0bbdb1ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.8.9-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 baea381df756b22eb5e86592674d39e870bc2cd83fdb5c1dcb6d74b9b7e3283b
MD5 90e6f40441e383e7b507f781143819ab
BLAKE2b-256 9482fe6f43044f3de068d829a794a5d7036b3a0101d8029c47aadfcfe73dacef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.8.9-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 eac4c3bb7a84f512d15470ea09d8685a049a8155487db41052b95cc77c5b3622
MD5 30538e0c9b6f809f18632d0f77f0c8e2
BLAKE2b-256 8a1d0328cc6e8f6265bce56aecf8e7541cd39c5f8bf442d9944b8e8edeaef70f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for waveforms-1.8.9-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6197803c103647b25a35f8adaf468d6e88744ca5cb113111d9f112463feda6d1
MD5 1e9b51bef13e1b2d77c5bafb1496f703
BLAKE2b-256 5247876d4b688afb8088d9adfac8f774cec3366c958d623ed6eccb2eb12208cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.8.9-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f194e557a52b9a3056819bc8d29ea67a71b22390f0c30c1e10f4a0c71532286b
MD5 e960e2e2b9c8a846d954886c921836ea
BLAKE2b-256 621958aee641844589209da7a4dfea91ab61659e46c3598073abfb9cfca9da07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.8.9-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f21d062491496769ba7964c46ac4b9cab4ed93e104d8bd88227a2cb1b3fca0c7
MD5 2055726f168619b845ca9c5243d0e75f
BLAKE2b-256 c33d78273c035885bb2bdfc309670a7945a55794a300b87f4974d01de570ef07

See more details on using hashes here.

File details

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

File metadata

  • Download URL: waveforms-1.8.9-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 318.9 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.8.9-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4f4fed35294eac462689dbe65e5cddb37e677d65705f58b411d25a98550e2948
MD5 8a906331b29fef63aef9eecfb3ba711b
BLAKE2b-256 9fcf7e6c8449e152cce398ee531a00723ca2a26373d5e88215655c9c3640ec8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.8.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eb05f37d668a9838a429d5c61bccda14c2b46b0652ef75783fe91cd6fb9a49ff
MD5 78c350b7fd6a331535ab2094b7e4c246
BLAKE2b-256 0a7a6b30b1f6a84baba13ada440d7fb6d555dbedb5909e160a3c091593aeff9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waveforms-1.8.9-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 d89ae6b4e788006f1327e73a112828f90f9396bfc49b4b0de5af0b3594355b08
MD5 01cc515b193803b6a029ce471cf27d5d
BLAKE2b-256 1e5d55859406542cfc5e7d2fb7a55c823e1b0d26765f4214a1c452c02853324e

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