Skip to main content

Waveform generator for pulse sequences in quantum computing

Project description

Bosing

Documentation Status PyPI - Version

Waveform generator for superconducting circuits.

Installation

pip install bosing

Documentation

Docs are hosted on Read the Docs

Usage

Examples can be found in python/examples.

import matplotlib.pyplot as plt

from bosing import Barrier, Channel, Hann, Play, Stack, generate_waveforms

channels = {"xy": Channel(30e6, 2e9, 1000)}
shapes = {"hann": Hann()}
schedule = Stack(duration=500e-9).with_children(
    Play(
        channel_id="xy",
        shape_id="hann",
        amplitude=0.3,
        width=100e-9,
        plateau=200e-9,
    ),
    Barrier(duration=10e-9),
)
result = generate_waveforms(channels, shapes, schedule)
w = result["xy"]
plt.plot(w[0], label="I")
plt.plot(w[1], label="Q")
plt.legend()
plt.show()

Performance

python/examples/schedule_stress.py (0.15 s) vs python/benches/naive.py (1.4 s)

CPU: AMD Ryzen 5 5600

Development

Prerequisites

  • Rustup for rust toolchain management.
  • maturin 1.7+.
  • uv for python project management.
git clone https://github.com/kahojyun/Bosing.git
cd Bosing
uv sync
uv run task makedocs # build docs
uv run task format # format rust and python code
uv run task lint # lint rust and python code
uv run task test # run cargo test and pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bosing-2.6.0.tar.gz (185.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

bosing-2.6.0-cp314-cp314t-win_arm64.whl (486.1 kB view details)

Uploaded CPython 3.14tWindows ARM64

bosing-2.6.0-cp314-cp314t-win_amd64.whl (517.1 kB view details)

Uploaded CPython 3.14tWindows x86-64

bosing-2.6.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (744.1 kB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.17+ x86-64

bosing-2.6.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (734.1 kB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.17+ ARM64

bosing-2.6.0-cp314-cp314t-macosx_11_0_arm64.whl (668.8 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

bosing-2.6.0-cp314-cp314t-macosx_10_12_x86_64.whl (696.6 kB view details)

Uploaded CPython 3.14tmacOS 10.12+ x86-64

bosing-2.6.0-cp313-cp313t-win_arm64.whl (485.1 kB view details)

Uploaded CPython 3.13tWindows ARM64

bosing-2.6.0-cp313-cp313t-win_amd64.whl (515.8 kB view details)

Uploaded CPython 3.13tWindows x86-64

bosing-2.6.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (744.2 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ x86-64

bosing-2.6.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (730.6 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ARM64

bosing-2.6.0-cp313-cp313t-macosx_11_0_arm64.whl (669.4 kB view details)

Uploaded CPython 3.13tmacOS 11.0+ ARM64

bosing-2.6.0-cp313-cp313t-macosx_10_12_x86_64.whl (696.7 kB view details)

Uploaded CPython 3.13tmacOS 10.12+ x86-64

bosing-2.6.0-cp310-abi3-win_arm64.whl (491.8 kB view details)

Uploaded CPython 3.10+Windows ARM64

bosing-2.6.0-cp310-abi3-win_amd64.whl (523.1 kB view details)

Uploaded CPython 3.10+Windows x86-64

bosing-2.6.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (750.0 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

bosing-2.6.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (742.0 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

bosing-2.6.0-cp310-abi3-macosx_11_0_arm64.whl (676.3 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

bosing-2.6.0-cp310-abi3-macosx_10_12_x86_64.whl (704.1 kB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file bosing-2.6.0.tar.gz.

File metadata

  • Download URL: bosing-2.6.0.tar.gz
  • Upload date:
  • Size: 185.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.11.5

File hashes

Hashes for bosing-2.6.0.tar.gz
Algorithm Hash digest
SHA256 b4acede68adf866efc8a94d79c09134b5dc32ad0d5285b5c4337e0187627edce
MD5 a0681614b4da43714e75124c138806ec
BLAKE2b-256 e6ecea443fc120139dd6a88036e3a2269e67771161ffecbb5eef8e5fd6724ea9

See more details on using hashes here.

File details

Details for the file bosing-2.6.0-cp314-cp314t-win_arm64.whl.

File metadata

  • Download URL: bosing-2.6.0-cp314-cp314t-win_arm64.whl
  • Upload date:
  • Size: 486.1 kB
  • Tags: CPython 3.14t, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.11.5

File hashes

Hashes for bosing-2.6.0-cp314-cp314t-win_arm64.whl
Algorithm Hash digest
SHA256 32dbab6bf054f58b716ba109872756c22c40a4aef528dc56e4cee28d253c8e58
MD5 61bb101a274fa9a5265c28065b89b657
BLAKE2b-256 2dbe1a47ebcfc7d2ffbcaa4e9a4c1605ade2c779ae167660fb8d44515dae1ac1

See more details on using hashes here.

File details

Details for the file bosing-2.6.0-cp314-cp314t-win_amd64.whl.

File metadata

  • Download URL: bosing-2.6.0-cp314-cp314t-win_amd64.whl
  • Upload date:
  • Size: 517.1 kB
  • Tags: CPython 3.14t, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.11.5

File hashes

Hashes for bosing-2.6.0-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 632613b27db3a6aa53ff4f62668e0420652151568d0751625cdb4bb576f4424c
MD5 7c963db6395a447e2cd5a3ee3e220d7d
BLAKE2b-256 464ea45a8b53b20063f482e5210ae581ad7b451b44897418952fa4a7e40f5fcc

See more details on using hashes here.

File details

Details for the file bosing-2.6.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for bosing-2.6.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2e5199edccf5a371513acfec058023b7e0fb81a04babb187ac70864606aed37d
MD5 944fc319a336060a0532837ef58ce816
BLAKE2b-256 ff7e0562e0249c55c531d7cb882ce6d8f61c1e19c5e1a80fa60618b277328ef3

See more details on using hashes here.

File details

Details for the file bosing-2.6.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for bosing-2.6.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4542f90f06c4e08f4930e119b5bf5c0fc96216884491a47e24b6ef7db030e79b
MD5 84d70831805738380b6f33ec35d29c54
BLAKE2b-256 dbb6c72033869fe4b3bdc69d846b99b49445f16fbb9281d83d711eca64d6c50b

See more details on using hashes here.

File details

Details for the file bosing-2.6.0-cp314-cp314t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for bosing-2.6.0-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 98346b856c5c301f64590e9314798e103e2be5837fdd0f2c9766711c62f53f13
MD5 1bdf7477642fce79e50cca14f647aff2
BLAKE2b-256 a5f5f9cc7e54068255035b094ac47ff3c5791049dc5c2e11a2fcd2f04dc79902

See more details on using hashes here.

File details

Details for the file bosing-2.6.0-cp314-cp314t-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for bosing-2.6.0-cp314-cp314t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1933742f4b0003790292014c11a7dd1faab961a69fddee02484dbf6d15f01eb4
MD5 59245aede56935ca9b817c6d64597b48
BLAKE2b-256 75c163a36afbc115b56ee2bad43c6bba52e72659508f614a982e94a0eca75d0a

See more details on using hashes here.

File details

Details for the file bosing-2.6.0-cp313-cp313t-win_arm64.whl.

File metadata

  • Download URL: bosing-2.6.0-cp313-cp313t-win_arm64.whl
  • Upload date:
  • Size: 485.1 kB
  • Tags: CPython 3.13t, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.11.5

File hashes

Hashes for bosing-2.6.0-cp313-cp313t-win_arm64.whl
Algorithm Hash digest
SHA256 4cda8f70a2d3646f4359011d83b830b687d5e217e4ac21ba85f371c7a6476cde
MD5 58f2a19ae72287e350a2f7ddac1a5e9b
BLAKE2b-256 608c7192baa96dc1dc68bc80ac360a12161b3833ace93e9760db9007e380d745

See more details on using hashes here.

File details

Details for the file bosing-2.6.0-cp313-cp313t-win_amd64.whl.

File metadata

  • Download URL: bosing-2.6.0-cp313-cp313t-win_amd64.whl
  • Upload date:
  • Size: 515.8 kB
  • Tags: CPython 3.13t, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.11.5

File hashes

Hashes for bosing-2.6.0-cp313-cp313t-win_amd64.whl
Algorithm Hash digest
SHA256 e300437c7df5238a5f6f78ae37e71b9c42f06f1e8f03088b2706801094db0010
MD5 d23ae29bbe6a2930fa3bda1f4017af1d
BLAKE2b-256 89f5fc51578786a6682d3634a5c82a253624d0b92235fd3cd7007cc66e202ab8

See more details on using hashes here.

File details

Details for the file bosing-2.6.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for bosing-2.6.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a4d71365d2c591b2807bf15602f1167b47b21472590235b6488342d89999cd8f
MD5 9273c603b9378e3fcf184f5d8d68cae0
BLAKE2b-256 17a3d196de927a95106a9bacab344ab4d67721c7574a78aa429a609e6dd99431

See more details on using hashes here.

File details

Details for the file bosing-2.6.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for bosing-2.6.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f48ba416a9265a280d0f3dbd9bb1a5cc1d9e163369dead7eb4aaccb3669ad155
MD5 10f0beda8b2f686a354372a1c767375b
BLAKE2b-256 e64dd1d73fe30830198367045b43ca5ca49952819e9baa22ee25c873b13b5662

See more details on using hashes here.

File details

Details for the file bosing-2.6.0-cp313-cp313t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for bosing-2.6.0-cp313-cp313t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e4b9e5ec4ac58fcfcd247b36d1b25dc63c13ce4e5faad29920bcaadd4827c385
MD5 0af22ae957be422b1a0d826175448f66
BLAKE2b-256 3f10580d5893cf9139fa0d5bfb18d7cc503b934ac1801528d396bb0ab179c90d

See more details on using hashes here.

File details

Details for the file bosing-2.6.0-cp313-cp313t-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for bosing-2.6.0-cp313-cp313t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a3f6093a08ecd13c13028356e5ba36f9b379fd4b580ca619c787e62666b3c137
MD5 ffa43d822c4af887c6384f65f5ff0cb2
BLAKE2b-256 7990c4882342f1bb79b621d74a13db73f677bdd835fbeee8e7f2c51cbb5a36b7

See more details on using hashes here.

File details

Details for the file bosing-2.6.0-cp310-abi3-win_arm64.whl.

File metadata

  • Download URL: bosing-2.6.0-cp310-abi3-win_arm64.whl
  • Upload date:
  • Size: 491.8 kB
  • Tags: CPython 3.10+, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.11.5

File hashes

Hashes for bosing-2.6.0-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 0d4659476db569e17900ac6c2c12c16eeaaa230d6ef94059541787ec71a73b8a
MD5 13bda9fc19b5b6bc677e3da2f69be4b3
BLAKE2b-256 2f982562bbf9977267442ec89552d6359c80055228204ee3037683e33b79a42c

See more details on using hashes here.

File details

Details for the file bosing-2.6.0-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: bosing-2.6.0-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 523.1 kB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.11.5

File hashes

Hashes for bosing-2.6.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 dea3f80f83a913686fd5991dfd47a299c78e9a60820254199ff17af35c93ad83
MD5 181071a3450fbef5d5f791eda637b1dc
BLAKE2b-256 f8c28c9eb08e3e34b7070141b557d673c154c716065c56e1a6e1f938eb9418b0

See more details on using hashes here.

File details

Details for the file bosing-2.6.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for bosing-2.6.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d54ca26bf4633da3eb89488c4f3a884996ab9405e658588ff5953f480f14f204
MD5 21616fddf5389a4545a99204aaaa07c9
BLAKE2b-256 c747e9e6fff28ab686e808209ab4f549fdb34d2b0c6bd8d365ab33602ed4802d

See more details on using hashes here.

File details

Details for the file bosing-2.6.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for bosing-2.6.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 34b165672a556e207934d04a2205857ea2e15a7932fa64fd258675c0e1a66119
MD5 003297347f63bd9b05b9e518d5ca577a
BLAKE2b-256 ec0c42c2a26194255f35114af41ca39ce40c50f6578a512eb80bc29a783d63d9

See more details on using hashes here.

File details

Details for the file bosing-2.6.0-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for bosing-2.6.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e6db424a5acf6731646ec5ee152b988f0a7a0c5fe338a056df622e596bce4d52
MD5 6d3c7ef87f321cca8222f229c94f7bd8
BLAKE2b-256 12d7545d081066968d2f595dba56d55c926770b54b434ffdc120051cd3432a51

See more details on using hashes here.

File details

Details for the file bosing-2.6.0-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for bosing-2.6.0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7f4fc5eb46d893733159fdfefb684875988f0be76d4aea3e50899f565e418195
MD5 8e74004b592fd01689392247cc96df8a
BLAKE2b-256 cbc80055f9b123883d32f40286959f9459d292abbd7821ab6f1612e04976bc43

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