quantum-music
Quantum computer music composition and performance using quantum circuits, ZX-calculus notation, and quantum instruments
Best use case
quantum-music is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Quantum computer music composition and performance using quantum circuits, ZX-calculus notation, and quantum instruments
Teams using quantum-music should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/quantum-music/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How quantum-music Compares
| Feature / Agent | quantum-music | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Quantum computer music composition and performance using quantum circuits, ZX-calculus notation, and quantum instruments
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Quantum Music
**Trit**: 0 (ERGODIC - bridging classical and quantum)
**Field**: Quantum Computer Music
**Reference**: Miranda (2022) "Quantum Computer Music" Springer
---
## Overview
Quantum Music encompasses:
1. **Composition**: Using quantum algorithms/circuits
2. **Notation**: ZX-calculus augmented scores
3. **Instruments**: Quantum Guitar, Q1Synth, Actias
4. **Performance**: Live quantum state manipulation
## History
| Year | Milestone |
|------|-----------|
| 2022 | First quantum-composed music (Ludovico Quanthoven) |
| 2022 | Miranda's "Quantum Computer Music" book |
| 2023 | Q1Synth (Miranda, Thomas, Itaboraí) |
| 2024 | Quantum Guitar debuts (Edinburgh) |
| 2024 | Black Tish at Wacken with quantum |
| 2025 | "Bell" composition (ZX notation) |
## Compositional Approaches
### 1. Quantum Random (QRandom)
```python
from qiskit import QuantumCircuit, execute, Aer
def quantum_melody(n_notes, n_pitches=12):
"""Generate melody via quantum measurement."""
qc = QuantumCircuit(4, 4)
qc.h(range(4)) # Superposition
qc.measure(range(4), range(4))
backend = Aer.get_backend('qasm_simulator')
result = execute(qc, backend, shots=n_notes).result()
melody = []
for bitstring, count in result.get_counts().items():
pitch = int(bitstring, 2) % n_pitches
melody.extend([pitch] * count)
return melody
```
### 2. Quantum Walk Composition
```python
def quantum_walk_melody(graph, steps):
"""Melody from quantum walk on graph."""
from discopy.quantum import qubit, H, CNOT
# Initialize walker in superposition
walker = uniform_superposition(len(graph.nodes))
for _ in range(steps):
# Coin flip
walker = apply_coin(walker)
# Shift
walker = apply_shift(walker, graph)
# Measure to get note sequence
return measure_melody(walker)
```
### 3. Grover Search for Harmony
```python
def find_chord(target_quality='major'):
"""Use Grover to find chord voicing."""
# Oracle marks good voicings
oracle = chord_quality_oracle(target_quality)
# Grover iterations
circuit = grover_circuit(oracle, n_qubits=12)
# Measure result
return measure_chord(circuit)
```
## ZX-Calculus Notation
"Bell" by Abdyssagin & Coecke uses ZX as score:
```
Quantum Guitar Grand Piano
│ │
┌──┴──┐ ┌──┴──┐
│ X │ │ Z │
└──┬──┘ └──┬──┘
│ │
└──────────────────────┘
Bell pair
Measurement collapses entanglement
→ Correlated musical phrases
```
## Instruments
| Instrument | Creator | Mechanism |
|------------|---------|-----------|
| Q1Synth | Miranda et al. | Software qubit synth |
| Actias | Moth | Web-based, MIDI control |
| Quantum Guitar | Coecke | Physical + Actias |
| Quantum Piano | Abdyssagin | Mental model + notation |
## Genre Applications
### Industrial/Metal
- Black Tish: Full album with Quantum Guitar
- NIN-style experimentation
- Wacken performances
### Classical/Contemporary
- Cathedral Organ + Quantum Guitar
- "Quantum Universe" Symphony
- Chamber music with ZX notation
### Electronic
- EDM descendants of industrial
- Quantum random for generative
## DisCoPy for Composition
```python
from discopy import Ty, Box, Diagram
from discopy.quantum import qubit, Ket, Bra, H, CX
# Musical types
note = Ty('note')
chord = Ty('chord')
# Quantum composition as diagram
def compose_phrase():
# Prepare Bell state
bell = Ket(0, 0) >> (H @ Id(1)) >> CX
# Map to musical space
to_music = Box('sonify', qubit @ qubit, note @ note)
return bell >> to_music
```
## Live Performance Protocol
```yaml
quantum_music_performance:
setup:
- Actias on dedicated laptop
- MIDI routing configured
- Bloch sphere projection
soundcheck:
- Test foot controllers
- Verify measurement response
- Classical/quantum blend levels
performance:
- Smooth classical→quantum transitions
- Real-time qubit manipulation
- Measured moments for phrase endings
```
## GF(3) Conservation in Music
| Section | Trit | Character |
|---------|------|-----------|
| Intro (classical) | -1 | Grounded |
| Development (quantum) | 0 | Superposed |
| Resolution (measured) | +1 | Collapsed |
**Σ = 0**: Complete musical arc conserves
## References
1. Miranda, E.R. (2022). Quantum Computer Music. Springer
2. Coecke, B. (2025). A Quantum Guitar. arXiv:2509.04526
3. Abdyssagin & Coecke (2025). Bell composition
4. Miranda et al. (2023). Q1Synth. Applied Sciences
---
**Skill Name**: quantum-music
**Type**: Composition / Performance
**Trit**: 0 (ERGODIC)
## Non-Backtracking Geodesic Qualification
**Condition**: μ(n) ≠ 0 (Möbius squarefree)
This skill is qualified for non-backtracking geodesic traversal.Related Skills
topos-of-music
Guerino Mazzola's mathematical music theory - Forms, Denotators, Morphisms, and Neo-Riemannian PLR operations with Gay.jl color integration
quantum-guitar
Coecke's Quantum Guitar: quantising guitar strings via qubit association, ZX-calculus notation, Moth Actias synth integration
performing-post-quantum-cryptography-migration
Assesses organizational readiness for post-quantum cryptography migration per NIST FIPS 203/204/205 standards. Performs cryptographic inventory scanning to identify quantum-vulnerable algorithms (RSA, ECDH, ECDSA), evaluates hybrid TLS configurations with X25519MLKEM768, and validates CRYSTALS-Kyber (ML-KEM) and CRYSTALS-Dilithium (ML-DSA) readiness. Implements crypto-agility assessment using oqs-provider for OpenSSL. Use when planning or executing the transition from classical to post-quantum cryptographic algorithms across enterprise infrastructure.
zx-calculus
Coecke's ZX-calculus for quantum circuit reasoning via string diagrams with Z-spiders (green) and X-spiders (red)
zulip-cogen
Zulip Cogen Skill 🐸⚡
zls-integration
zls-integration skill
zig
zig skill
zig-syrup-bci
Multimodal BCI pipeline in Zig: DSI-24 EEG, fNIRS mBLL, eye tracking IVT, LSL sync, EDF read/write, GF(3) conservation
zig-programming
zig-programming skill
zeroth-bot
Zeroth Bot - 3D-printed open-source humanoid robot platform for sim-to-real and RL research. Affordable entry point for humanoid robotics.
xlsx
Comprehensive spreadsheet creation, editing, and analysis with support
wycheproof
Google's Wycheproof test vectors for cryptographic implementation testing.