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

Uploaded Source

Built Distributions

bosing-2.3.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (669.7 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

bosing-2.3.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (670.3 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

bosing-2.3.0-cp312-none-win_amd64.whl (466.4 kB view details)

Uploaded CPython 3.12 Windows x86-64

bosing-2.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (672.2 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

bosing-2.3.0-cp312-cp312-macosx_11_0_arm64.whl (583.2 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

bosing-2.3.0-cp312-cp312-macosx_10_12_x86_64.whl (607.2 kB view details)

Uploaded CPython 3.12 macOS 10.12+ x86-64

bosing-2.3.0-cp311-none-win_amd64.whl (472.7 kB view details)

Uploaded CPython 3.11 Windows x86-64

bosing-2.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (666.5 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

bosing-2.3.0-cp311-cp311-macosx_11_0_arm64.whl (583.1 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

bosing-2.3.0-cp311-cp311-macosx_10_12_x86_64.whl (603.4 kB view details)

Uploaded CPython 3.11 macOS 10.12+ x86-64

bosing-2.3.0-cp310-none-win_amd64.whl (473.0 kB view details)

Uploaded CPython 3.10 Windows x86-64

bosing-2.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (668.3 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

bosing-2.3.0-cp310-cp310-macosx_11_0_arm64.whl (582.1 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

bosing-2.3.0-cp310-cp310-macosx_10_12_x86_64.whl (603.0 kB view details)

Uploaded CPython 3.10 macOS 10.12+ x86-64

bosing-2.3.0-cp39-none-win_amd64.whl (473.4 kB view details)

Uploaded CPython 3.9 Windows x86-64

bosing-2.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (669.5 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

bosing-2.3.0-cp39-cp39-macosx_11_0_arm64.whl (582.9 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

bosing-2.3.0-cp39-cp39-macosx_10_12_x86_64.whl (604.2 kB view details)

Uploaded CPython 3.9 macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for bosing-2.3.0.tar.gz
Algorithm Hash digest
SHA256 e3ee6707b2ae9f72ea04ef93c3a5d63b8dfd550cbe6e40aacf843a218d24958c
MD5 6c07ee89371ee9756b89ca68dd49cc65
BLAKE2b-256 3f0111170b01b1269d9fe35d98bfeb92c1638d2144229ca7d9f6ab1f7d11b10f

See more details on using hashes here.

File details

Details for the file bosing-2.3.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for bosing-2.3.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5f10eede612b1106042ed4d8017e56b8740c83291c439a6d0f7e0c58ada6b469
MD5 5271d7eec4358fd5b830bcc111555690
BLAKE2b-256 b25ab96dd3d8f09e9865e22109a9d4d88fb9cf7f1aa5ba9533397890d3d24594

See more details on using hashes here.

File details

Details for the file bosing-2.3.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for bosing-2.3.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 491f04c0a231c6f4a99a3df88a69c5d08bd42b9e62acf6b5987039fed30c667a
MD5 eb384e9415aa5e6db39f4c5653fb4699
BLAKE2b-256 a2ca9f9990a42a36b50bbb7fbe762972583d90255f2321b405fc1dabd5664c83

See more details on using hashes here.

File details

Details for the file bosing-2.3.0-cp312-none-win_amd64.whl.

File metadata

  • Download URL: bosing-2.3.0-cp312-none-win_amd64.whl
  • Upload date:
  • Size: 466.4 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.7.4

File hashes

Hashes for bosing-2.3.0-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 0b28a52ea9a40f897bb16d567a337f192e755731805aa8b8ead2fdeb674b891f
MD5 dfbf73e8e736dfe4348c1bfe8993c153
BLAKE2b-256 b8eae3a06f69bc16ecfbe01f2f22523f476351d873613c1561035c9528e63f6f

See more details on using hashes here.

File details

Details for the file bosing-2.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for bosing-2.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 be38b11976ccdb4012f9e0a21f59fc38058c463b142341499c78d52e6b38e793
MD5 c1823e8bca227b85593998ee5405ea90
BLAKE2b-256 1aec5970236c009c69430b4462f3efe96ab716ba492aeeedbb7ddb56f04b19ad

See more details on using hashes here.

File details

Details for the file bosing-2.3.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for bosing-2.3.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9fe856cf559b0e2b020d0e5811f8632e95f1e67548cc5733fc72a9c116753d44
MD5 4bcda89c9d3e08df6689df46ff87ecee
BLAKE2b-256 aefa4a15e0e3e5cca97746b8a5df87e7944aa2e60062ffe6d740a69afa5ebc60

See more details on using hashes here.

File details

Details for the file bosing-2.3.0-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for bosing-2.3.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 54ded328e53bc5320416ee36c2ea17becdabdc689f63666e250414889b1591b9
MD5 d3206504037d6235ff9099281f2349bd
BLAKE2b-256 e7b1ce04f4f2859ec3517fbe3658b003574ca5eab1ba094af1617c2e35daa54a

See more details on using hashes here.

File details

Details for the file bosing-2.3.0-cp311-none-win_amd64.whl.

File metadata

  • Download URL: bosing-2.3.0-cp311-none-win_amd64.whl
  • Upload date:
  • Size: 472.7 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.7.4

File hashes

Hashes for bosing-2.3.0-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 3bfe39a8814a0d5e02ca2e9200110157c2d07d7678d9f20ca39b813619e94667
MD5 0fb35042b4e9b42b70fc0f4c24da2696
BLAKE2b-256 0b90230b806859f5f44719f0a2527977962a08102e73adb75c7c54ab9101c986

See more details on using hashes here.

File details

Details for the file bosing-2.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for bosing-2.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f58d892fb2e781e3b24825ad07e96af333862e6be0061b906a6d4016cf1d36f0
MD5 96569da52e154a86f5896dc680383d4c
BLAKE2b-256 8ac3cd8ca9d38c930c2f2dc745a3d4ff9b99c2754077b0e5b26a06fcf31f8286

See more details on using hashes here.

File details

Details for the file bosing-2.3.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for bosing-2.3.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 daa6e3e0578dcbfe1d1d6c4a2e64bf21560deef2f634efa2c4599a0e9991827e
MD5 ccc9e22fb677c762e04e386fc9d9b0a5
BLAKE2b-256 d7422ce94248282c236e97deff059ffc629f068482d1fd073d168e175a72160c

See more details on using hashes here.

File details

Details for the file bosing-2.3.0-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for bosing-2.3.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d2b51fb3ba42c399f39568ef51bf239ee4d1aa0862489e1a05d2a2ab9ef4586f
MD5 a64a976542a26fdb477f936593067b63
BLAKE2b-256 5c44f35253ec89769e51030f8fce05b21a61315d9dd43a653ba9ac79914410d5

See more details on using hashes here.

File details

Details for the file bosing-2.3.0-cp310-none-win_amd64.whl.

File metadata

  • Download URL: bosing-2.3.0-cp310-none-win_amd64.whl
  • Upload date:
  • Size: 473.0 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.7.4

File hashes

Hashes for bosing-2.3.0-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 bb4aba1d442d75f85b7daa362be491e6c13fa8c00d1a8c0747b490ac1b26b3dd
MD5 b7173ddd2e28c2b3502dac37944969b4
BLAKE2b-256 b946dbb53c97ade2c523f531b1a629a88bfe3e4f9722d864399caa460689a1cd

See more details on using hashes here.

File details

Details for the file bosing-2.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for bosing-2.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 61d8baf9f47ce76431f8bcdac19d19019a68d0b38435a767141ef67e7e81e5c2
MD5 a662298fa41cc893abea89bb32423f9b
BLAKE2b-256 6dd7af441e792c8279f8a8d4721c5700d3ece5e4c4d8a8df6eec51dac1072ded

See more details on using hashes here.

File details

Details for the file bosing-2.3.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for bosing-2.3.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0de8ae99186a5298257fda23cb59faaf46817bcc2764324a2784dff8e715ecd4
MD5 348598249ef0f52d5cb5df623ecba9b7
BLAKE2b-256 95c158466850de033fc8c6eda7d2c8fe7e1b67c91cc07be6425d20a33d576c6d

See more details on using hashes here.

File details

Details for the file bosing-2.3.0-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for bosing-2.3.0-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7d9df697736fc04e4934435a70dffd009e134daa5862dc607caad066f8c09ebd
MD5 5c8266aaf16973f69c33bbbb1e132852
BLAKE2b-256 6e4e8307a13d5a6ae36baf381462e922c8ea9fc4754400dfd32de553a92b030d

See more details on using hashes here.

File details

Details for the file bosing-2.3.0-cp39-none-win_amd64.whl.

File metadata

  • Download URL: bosing-2.3.0-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 473.4 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.3.0-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 ee903e695f542d04f89c7ff25b08dd2ddf430d6d3b534d7221bf18e619dce2a5
MD5 e2605553020e8b95d8790acd0b4a3219
BLAKE2b-256 837cb3cd10c35a6b4449e4ed3e46742ce1256fd1d4e4e7cd784600897fa3c074

See more details on using hashes here.

File details

Details for the file bosing-2.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for bosing-2.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ea8186611af33cc3f5f1c0d87408a66e2aadd2d31a17c63a48a26041a6bc6729
MD5 dfb9564a296575f87c3a689ef10feea4
BLAKE2b-256 a3f59970edd5e205562930501f2c00f3df05e32ad5a65873bab06ba5f1103cda

See more details on using hashes here.

File details

Details for the file bosing-2.3.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for bosing-2.3.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ddb726ccb07c685d09a69e942cf6fec4d097bba9be98ce8786aa077087a0e01
MD5 a21d5dabc7ffd719200376113acaface
BLAKE2b-256 b0c7b42893c3be887d0e27783e37f861d79cbbc4dd976115e8763fc55d7a3aa9

See more details on using hashes here.

File details

Details for the file bosing-2.3.0-cp39-cp39-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for bosing-2.3.0-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 36243fbc49390ea941fdd75d6b86a2f787be877010db3501e804241f0ace345d
MD5 1436ffa2692e6b29d2e381f33bbe3602
BLAKE2b-256 a8643e85841cafe68953a12284936b8cf771d6cd853f2e07637bd3c8ab2557cb

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