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

Development

Prerequisites

  • .NET 8 SDK. Install the latest .NET SDK from here or install with Visual Studio.
  • hatch for python project management.

Development install

Ensure dotnet cli is in PATH.

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

Build docs

hatch run docs:build

Run tests

dotnet test
hatch run test:run

Usage

Examples can be found in python/examples.

from bosing import Play, Barrier, Hann, Channel, Stack, generate_waveforms
import matplotlib.pyplot as plt

channels = [Channel("xy", 200e6, 2e9, 100000)]
shapes = [Hann()]
schedule = Stack(duration=50e-6).with_children(
    Play(
        channel_id = 0,
        amplitude = 0.3,
        shape_id = 0,
        width = 100e-9,
    ),
    Barrier(duration=10e-9),
)
result = generate_waveforms(channels, shapes, schedule)
i, q = result["xy"]
plt.plot(i)
plt.plot(q)
plt.show()

Tooling

Use Visual Studio or Visual Studio Code with the C# extension.

Manage python project with hatch.

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

Uploaded Source

Built Distributions

bosing-1.0.1-py3-none-win_arm64.whl (1.7 MB view hashes)

Uploaded Python 3 Windows ARM64

bosing-1.0.1-py3-none-win_amd64.whl (1.7 MB view hashes)

Uploaded Python 3 Windows x86-64

bosing-1.0.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl (1.9 MB view hashes)

Uploaded Python 3 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.28+ x86-64

bosing-1.0.1-py3-none-macosx_12_0_x86_64.whl (2.0 MB view hashes)

Uploaded Python 3 macOS 12.0+ x86-64

bosing-1.0.1-py3-none-macosx_12_0_arm64.whl (1.9 MB view hashes)

Uploaded Python 3 macOS 12.0+ ARM64

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