Skip to main content

QuantumSheets 🎵⚛️

QuantumSheets is a Python library that bridges the worlds of quantum computing and music. It takes a Qiskit quantum circuit and visually renders it as beautiful, highly-legible sheet music.

Instead of traditional blocky quantum circuit diagrams, QuantumSheets draws your gates as musical notes on a grand staff, with classical measurements, multi-qubit controls, and precise musical spacing. It's perfect for educational materials, presentations, and anyone who wants to see the harmony in their quantum algorithms.

Features

  • Native Qiskit Support: Pass in any standard qiskit.QuantumCircuit object.
  • Musical Aesthetics: Notes for single-qubit gates, chords for multi-qubit gates, proper stems, and clefs!
  • MathText Rendering: Supports full LaTeX/MathText inside gate labels (e.g., wrap your custom gate name in $ like "$7^{1} \\% 15$" and it beautifully renders superscripts).
  • Multi-System Wrapping: Automatically wraps long circuits across multiple "systems" (lines) like real sheet music.
  • Dynamic Spacing: Gracefully expands the columns backward and forward if a gate has a very long name, perfectly mirroring professional music engraving.

Shor's Algorithm Example

QuantumSheets can easily handle complex, multi-qubit custom logic—like this 8-qubit implementation of Shor's Algorithm (factoring $15$ with $a=7$):

Shor's Algorithm

This demonstrates the engine's ability to seamlessly draw multi-qubit control chords, handle long MathText labels underneath chords, and balance spacing without overcrowding the page.

Quickstart

from qiskit import QuantumCircuit
from QuantumSheets import draw_circuit

# 1. Build your Qiskit circuit
qc = QuantumCircuit(3)
qc.h(0)
qc.cx(0, 1)
qc.cx(1, 2)
qc.measure_all()

# 2. Render as sheet music!
draw_circuit(qc, filename="my_circuit_score.png", strip=True)

Supported Gates

Currently supported gates include:

  • X, Y, Z, H, S, T
  • Rx, Ry, Rz
  • CX (CNOT), CZ, CP, SWAP
  • CCX (Toffoli), CSWAP
  • Measure, Barrier

Customization

You can easily extend the aesthetic of the engine. The layout spacing, fonts, and colors are configured within the render.py and assets directories.

License

MIT License

Metadata

Release files for QuantumSheets 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for QuantumSheets 0.1.9
File Size Uploaded Provenance Actions
quantumsheets-0.1.9.tar.gz 477.4 kB With provenance Details for quantumsheets-0.1.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for QuantumSheets 0.1.9
File Interpreter ABI Platform Actions
quantumsheets-0.1.9-py3-none-any.whl Python 3 none any Details for quantumsheets-0.1.9-py3-none-any.whl

Total release size: 953.4 kB

Release files / quantumsheets-0.1.9.tar.gz

Download URL quantumsheets-0.1.9.tar.gz
Size 477.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f4b8f3cd1ed9ad98060898ef00234dc5fbe81e82b60ab7b48e64b83b603a7422
BLAKE2b-256 checksum
How to use checksums
442c05ac17693bcfddb4316f935c826e23a9e2d11c38c6810bfdaab7d471df4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

Release files / quantumsheets-0.1.9-py3-none-any.whl

Download URL quantumsheets-0.1.9-py3-none-any.whl
Size 476.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f70a5bb6ee2d3cbd7ddfcdd25c063ae8cb51fadba9e1507e48aaed69cbfb4545
BLAKE2b-256 checksum
How to use checksums
e1b6fb9a5a0699fb9143686b44fffd5b5e4ca3dcdf22e43301ca963a6165f052
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

Security for QuantumSheets 0.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for quantumsheets-0.1.9.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page