Waveform generator for pulse sequences in quantum computing
Project description
Bosing
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
Release history Release notifications | RSS feed
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)
Built Distributions
Close
Hashes for bosing-1.0.1-py3-none-win_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31e1f4010a34ae1685cbe1af2b6d56a5438771e95ca041c49ecdeaa6573837f8 |
|
MD5 | 772a3af1c9dbb9c5721c8b323612a113 |
|
BLAKE2b-256 | 730212970822af2558eeb7a385504ed7716ed86c1176654cf443ddc4f573f8db |
Close
Hashes for bosing-1.0.1-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f12651ac8e3677e74c81799ebc2a2dcab1f0aa81df6607c4eea8d0e7de4ac321 |
|
MD5 | 812e6c94cca0e334942fc163c01177e4 |
|
BLAKE2b-256 | 6164f22c2560f402888bcc98b8ebf462983539845e6e95d954fd008446556c60 |
Close
Hashes for bosing-1.0.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6405175fcd48519ade8e26934478f6eee2b88ba8f40da5e6f0551980e5101c2 |
|
MD5 | db12840c76b164665be6d63b0aca66ab |
|
BLAKE2b-256 | 816835d0cbf5af2160cd9754c838b979cd9b1dbc7974736dba5773b62c11006e |
Close
Hashes for bosing-1.0.1-py3-none-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b93ede285bc151ab0d5278be6c00d589158be929dcddcc1dc455d0ea9821f1e2 |
|
MD5 | e443e6a199c252affdede1de17487a61 |
|
BLAKE2b-256 | 5cbc3e82b973e7648c5917b8b7c4d7eb8f47f6d7e2986e850a74f825c7194987 |
Close
Hashes for bosing-1.0.1-py3-none-macosx_12_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2aa8de53ba4c981712197c68119420cb58ca2c295b348c5e78fd7c4bce2de53d |
|
MD5 | 2e09a493a7d431bb682a1c48fdf66dab |
|
BLAKE2b-256 | a1422cd286a68dd68e73e8431113c787a369ca4829ec7a8bd47155c0136cbf0b |