Waveform generator for pulse sequences in quantum computing


License
MIT
Install
pip install bosing==2.0.6

Documentation

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