Skip to main content

Waveform generator for pulse sequences in quantum computing

Project description

Bosing

Documentation Status

Waveform generator for superconducting circuits.

Installation

pip install bosing

Documentation

Docs are hosted on Read the Docs

Usage

Examples can be found in 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

examples/schedule_stress.py (0.15 s) vs 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.4.0.tar.gz (128.5 kB view details)

Uploaded Source

Built Distributions

bosing-2.4.0-cp39-abi3-win_amd64.whl (487.3 kB view details)

Uploaded CPython 3.9+ Windows x86-64

bosing-2.4.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (691.5 kB view details)

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

bosing-2.4.0-cp39-abi3-macosx_11_0_arm64.whl (605.1 kB view details)

Uploaded CPython 3.9+ macOS 11.0+ ARM64

bosing-2.4.0-cp39-abi3-macosx_10_12_x86_64.whl (625.4 kB view details)

Uploaded CPython 3.9+ macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for bosing-2.4.0.tar.gz
Algorithm Hash digest
SHA256 80eeaf1c2b57256960c0ee07192ea8d0a665bb719ac2e656161e8f5fb1d089b6
MD5 6ddef056fcf16b9ccd469b0820069c65
BLAKE2b-256 b0a3b57c70962a260a49d91e6c141bf9922f336766a1ad7eee34eed9e0e786ee

See more details on using hashes here.

File details

Details for the file bosing-2.4.0-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: bosing-2.4.0-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 487.3 kB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.7.4

File hashes

Hashes for bosing-2.4.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 65a0d5b598c3f0e8b96936df5f6e9bd9136c5ffee008e855e42775d3e274ec3a
MD5 7227293e902fe1ed959b48bbd8406da3
BLAKE2b-256 4813880f45a0d178080ea378e668e8da5fbfed9f299d1d6b3c7093cd1fb13c8f

See more details on using hashes here.

File details

Details for the file bosing-2.4.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for bosing-2.4.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9f7cef264a93375e3874411b0a213da1077e4776cbe08533b8166a1dc0464187
MD5 477b225239f257b71fecc678ad316713
BLAKE2b-256 be23fd37f2680c56ba841d5e1857748cad0c21cb0082b538ff501d514b1a4f77

See more details on using hashes here.

File details

Details for the file bosing-2.4.0-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for bosing-2.4.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bdc0f90b705bfddc48684ba11038b278bca116811f51a6f510ab92c04307a5e7
MD5 69a49185dc59363640c1e51791548013
BLAKE2b-256 ee738a7f945d1bf688f3d9166218b8a7fe2b830c999b0fc3d5258cf030c830bb

See more details on using hashes here.

File details

Details for the file bosing-2.4.0-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for bosing-2.4.0-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1ddebce0a90e885283f33860a91d37600ce70b87c7cdc15c4b22b0d7d70f2d6a
MD5 a8114feafd0fe55e140773890c4666d8
BLAKE2b-256 1dfc2b5db62c56ef4bac085fb2f11614bb27fac201ef8019ebc5c20735c4db78

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