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 example.

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

Development

Prerequisites

  • Latest stable Rust toolchain.
  • maturin 1.5+.
  • hatch for python project management.

Development install

git clone https://github.com/kahojyun/Bosing.git
cd Bosing
pip install -e .

Build docs

hatch run docs:build

Run tests

cargo test
hatch run test:run

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.0.6.tar.gz (55.5 kB view hashes)

Uploaded Source

Built Distributions

bosing-2.0.6-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

bosing-2.0.6-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

bosing-2.0.6-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

bosing-2.0.6-cp312-none-win_amd64.whl (415.9 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

bosing-2.0.6-cp312-none-win32.whl (401.3 kB view hashes)

Uploaded CPython 3.12 Windows x86

bosing-2.0.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

bosing-2.0.6-cp312-cp312-macosx_11_0_arm64.whl (549.4 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

bosing-2.0.6-cp312-cp312-macosx_10_12_x86_64.whl (562.8 kB view hashes)

Uploaded CPython 3.12 macOS 10.12+ x86-64

bosing-2.0.6-cp311-none-win_amd64.whl (417.9 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

bosing-2.0.6-cp311-none-win32.whl (401.8 kB view hashes)

Uploaded CPython 3.11 Windows x86

bosing-2.0.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

bosing-2.0.6-cp311-cp311-macosx_11_0_arm64.whl (550.6 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

bosing-2.0.6-cp311-cp311-macosx_10_12_x86_64.whl (569.2 kB view hashes)

Uploaded CPython 3.11 macOS 10.12+ x86-64

bosing-2.0.6-cp310-none-win_amd64.whl (418.9 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

bosing-2.0.6-cp310-none-win32.whl (401.8 kB view hashes)

Uploaded CPython 3.10 Windows x86

bosing-2.0.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

bosing-2.0.6-cp310-cp310-macosx_11_0_arm64.whl (550.6 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

bosing-2.0.6-cp310-cp310-macosx_10_12_x86_64.whl (568.8 kB view hashes)

Uploaded CPython 3.10 macOS 10.12+ x86-64

bosing-2.0.6-cp39-none-win_amd64.whl (419.0 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

bosing-2.0.6-cp39-none-win32.whl (402.0 kB view hashes)

Uploaded CPython 3.9 Windows x86

bosing-2.0.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

bosing-2.0.6-cp39-cp39-macosx_11_0_arm64.whl (551.2 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

bosing-2.0.6-cp39-cp39-macosx_10_12_x86_64.whl (569.7 kB view hashes)

Uploaded CPython 3.9 macOS 10.12+ x86-64

bosing-2.0.6-cp38-none-win_amd64.whl (418.7 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

bosing-2.0.6-cp38-none-win32.whl (402.8 kB view hashes)

Uploaded CPython 3.8 Windows x86

bosing-2.0.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

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