Skip to main content

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()

If you want to post-process waveforms outside of bosing, you can generate a deduplicated list of envelopes and compact pulse instructions:

import numpy as np

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

length = 1000
channels = {"xy": Channel(30e6, 2e9, length)}
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),
)

envelopes, instructions = generate_envelopes_and_instructions(channels, shapes, schedule)
inst0 = instructions["xy"][0]
env0 = envelopes[inst0.env_id]
assert env0.dtype == np.float64

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

Releases

Releases are managed with knope.

Contributors should add a .changeset/*.md file for user-visible changes. Each file starts with YAML front matter that declares the default bump level. The release note must start with a level-one heading containing a short summary; optional details go below the heading:

---
default: patch
---

# Brief description of the change

Optional details about the change.

Maintainers do not cut releases manually. A push to main with pending .changeset entries opens a release PR automatically. Merging that PR creates the git tag, GitHub release, and PyPI publish.

Release files for bosing 2.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bosing 2.8.0
File Size Uploaded
bosing-2.8.0.tar.gz 214.8 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for bosing 2.8.0
File
bosing-2.8.0-cp314-cp314t-win_arm64.whl CPython 3.14 CPython 3.14 free-threading Windows ARM64 Details
bosing-2.8.0-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details
bosing-2.8.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64 Details
bosing-2.8.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64 Details
bosing-2.8.0-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details
bosing-2.8.0-cp314-cp314t-macosx_10_12_x86_64.whl CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64 Details
bosing-2.8.0-cp310-abi3-win_arm64.whl CPython 3.10 abi3 Windows ARM64 Details
bosing-2.8.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
bosing-2.8.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details
bosing-2.8.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details
bosing-2.8.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details
bosing-2.8.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details

Total release size: 8.2 MB

Release files / bosing-2.8.0.tar.gz

Download URL bosing-2.8.0.tar.gz
Size 214.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b6a0433b81a4a5c2b8fa9e4c6af173b6feebef2d07a4398831c7ba8da4a709e5
BLAKE2b-256 checksum
How to use checksums
a254b65a22df3fb79ad2b7c4eb0fac2d17c89da7a72063cf55150ddf20a3e799
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.

Transparency log

Release files / bosing-2.8.0-cp314-cp314t-win_arm64.whl

Download URL bosing-2.8.0-cp314-cp314t-win_arm64.whl
Size 513.6 kB
Tags CPython 3.14 CPython 3.14 free-threading Windows ARM64
SHA-256 checksum
How to use checksums
0d71582d58d1b8836103f194b0600f0b85aca97924b5d19e49e953fe872374cd
BLAKE2b-256 checksum
How to use checksums
5fb018ea48e0e016b3a00d0f299439390472a4786551a3498e25f0b2650532bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.

Transparency log

Release files / bosing-2.8.0-cp314-cp314t-win_amd64.whl

Download URL bosing-2.8.0-cp314-cp314t-win_amd64.whl
Size 543.7 kB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
633c1ac6c01504d6c4cf3d6a2f5145ea1aa5b2932b68ce36a0e847a8851dc7c6
BLAKE2b-256 checksum
How to use checksums
234592140481c76b356ab884135b70795fab7846b26bd157e665af22833145b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.

Transparency log

Release files / bosing-2.8.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL bosing-2.8.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 757.4 kB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
fcb36607297b2634114834ef58729513938bb58a4e566d2f36b6d99179db0ac5
BLAKE2b-256 checksum
How to use checksums
934f415b7b060bd9b60ef7206365fcdcfc557ca3bbe6d2bccd05b68076cf8d19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.

Transparency log

Release files / bosing-2.8.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL bosing-2.8.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 756.0 kB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
32031429229a960e9a70f966d8502ce10b48ccaa4f81255f27ff220663ecb1fc
BLAKE2b-256 checksum
How to use checksums
a792a67394959f4ff1005df5405af2235c2795e35552530f340c391eb438b59e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.

Transparency log

Release files / bosing-2.8.0-cp314-cp314t-macosx_11_0_arm64.whl

Download URL bosing-2.8.0-cp314-cp314t-macosx_11_0_arm64.whl
Size 684.2 kB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
319b0aa5a928db06e1c35dd6da1412e591a1004cd441f3cd8570246550b52c3d
BLAKE2b-256 checksum
How to use checksums
71da66e324e4374354e1ccab68af3b63915e90db6f542f75b31e60bad8028a42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.

Transparency log

Release files / bosing-2.8.0-cp314-cp314t-macosx_10_12_x86_64.whl

Download URL bosing-2.8.0-cp314-cp314t-macosx_10_12_x86_64.whl
Size 708.8 kB
Tags CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
4646199ac17a33af9bf858848bffd963c6eb2ed53fcde08b08647f51cea8b04a
BLAKE2b-256 checksum
How to use checksums
58eb7e64648b0f1e56c029f2b643490d647bb2cd700fd1130f54c8e1915f21b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.

Transparency log

Release files / bosing-2.8.0-cp310-abi3-win_arm64.whl

Download URL bosing-2.8.0-cp310-abi3-win_arm64.whl
Size 520.8 kB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
7525c1f8a7a2b7485534574eea81760a8252c388691c9f355ddbb065eb81d36f
BLAKE2b-256 checksum
How to use checksums
d5e71bd9b941651d85655b67ceb4332997bcc7814c55704994dec28ed264075b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.

Transparency log

Release files / bosing-2.8.0-cp310-abi3-win_amd64.whl

Download URL bosing-2.8.0-cp310-abi3-win_amd64.whl
Size 550.8 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
167684b9c07b464e7fc9211a4fcd197e889ecb0c0315a4d9debb541dac9f1364
BLAKE2b-256 checksum
How to use checksums
7d6b4106ad836ce09eb133cf2014765a0e648595db2565ce13c1863e7602e71b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.

Transparency log

Release files / bosing-2.8.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL bosing-2.8.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 768.1 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
4ff45efec5fb0b4f753d3f78a3234f62c8225efd629cdf018ad207186b797b87
BLAKE2b-256 checksum
How to use checksums
935e4a6482f4e8d3a02206b9e290858e02039eccece7fd4eb34a68693a51c0fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.

Transparency log

Release files / bosing-2.8.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL bosing-2.8.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 766.1 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
a706618654bceaac1578fc186757b7b1c03acfc4b09da0528adc960258b62cd5
BLAKE2b-256 checksum
How to use checksums
4d9c8a59dcae9a35dd8dd334249549ed96c53815fc17b830494291dfa1017f84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.

Transparency log

Release files / bosing-2.8.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL bosing-2.8.0-cp310-abi3-macosx_11_0_arm64.whl
Size 696.2 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
459befebe4204a751c1e5455a008e1879d0aca9df20644e9709aaf35249aad4d
BLAKE2b-256 checksum
How to use checksums
e9279212f3a42ab96d76925d138cd4c00146291c2b726090ff353965983bbd5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.

Transparency log

Release files / bosing-2.8.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL bosing-2.8.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 706.9 kB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
037d2ddff0ba440b005257c1642cbb31427981dc9bfd640fe397454d3d485557
BLAKE2b-256 checksum
How to use checksums
2065d460eed4d6e16b753d1102b152ffd291f3408f838c927704f0b265380287
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.8.0 This release

13 release files

2.7.0

19 release files

2.6.1

19 release files

2.5.0

7 release files

2.4.2

7 release files

2.4.1

7 release files

2.4.0

5 release files

2.3.0

19 release files

2.2.2

19 release files

2.2.1

23 release files

2.2.0

26 release files

2.0.5

27 release files

2.0.4

27 release files

2.0.3

27 release files

2.0.2

27 release files

2.0.0

23 release files

1.0.1

6 release files

1.0.0

6 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page