Moth's Actias quantum synth for qubit sonification with Bloch sphere visualization and MIDI control
Trit: +1 (PLUS - generative/sonic output) Type: Quantum Musical Instrument Principle: Sonify qubit state via Bloch sphere mapping
Actias is a quantum synthesizer that:
|0β© (North pole)
β
β ΞΈ = polar angle
β
ββββββΌβββββ Ο = azimuthal angle
β
β
|1β© (South pole)
|Οβ© = cos(ΞΈ/2)|0β© + e^{iΟ}sin(ΞΈ/2)|1β©
| Parameter | Bloch Coordinate | Sound Effect |
|---|---|---|
| ΞΈ (theta) | Polar angle | Timbre blend |
| Ο (phi) | Azimuthal angle | Phase/detune |
| r | Radius (purity) | Amplitude/reverb |
| CC | Controller | Rotation |
|---|---|---|
| 1 | Expression 1 | X-axis (orange) |
| 2 | Expression 2 | Z-axis (blue) |
| 3 | Expression 3 | Y-axis (green) |
| 64 | Sustain/Switch | Measurement |
# MIDI note β qubit initialization
def note_to_qubit(note, velocity):
"""
Map MIDI note to initial qubit state.
note: 0-127 β ΞΈ = note * Ο / 127
velocity: 0-127 β Ο = velocity * 2Ο / 127
"""
theta = note * np.pi / 127
phi = velocity * 2 * np.pi / 127
return cos(theta/2), exp(1j * phi) * sin(theta/2)
βββββββββββββββ MIDI βββββββββββββββ
β Fishman ββββββββββββββββΆβ Actias β
β MIDI Pickupβ β Synth β
βββββββββββββββ ββββββββ¬βββββββ
β
βββββββββββββββ MIDI β Audio
β Boss EV-1-WLββββββββββββββββββββββββ€
β Foot Pedals β β
βββββββββββββββ βΌ
βββββββββββββββ
βββββββββββββββ β Mix β
β Boss FS-6 ββββMeasureβββββΆβ Output β
β Foot Switch β βββββββββββββββ
βββββββββββββββ
Actias runs as web application with:
Note: Web MIDI requires secure context (HTTPS/localhost)
From Coecke's tech notes:
| Issue | Workaround |
|---|---|
| Preset loss on MIDI reconnect | Re-add device in settings |
| Tablet web MIDI | Use desktop only |
| Two laptops needed | Separate Actias + DAW hosts |
| Only Z-measurement | Rotate before measure for X |
// Actias-like qubit sonification
SynthDef(\actias, { |theta=0, phi=0, gate=1|
var sig, prob0, prob1, env;
prob0 = cos(theta/2).squared;
prob1 = sin(theta/2).squared;
// Blend two timbres based on |0β©/|1β© probability
sig = (SinOsc.ar(440) * prob0) +
(Saw.ar(440 * 1.5) * prob1);
// Phase modulation from Ο
sig = sig * (1 + (0.5 * cos(phi)));
env = EnvGen.kr(Env.asr(0.01, 1, 0.1), gate);
Out.ar(0, sig * env ! 2);
}).add;
| Component | Trit | Role |
|---|---|---|
| zx-calculus | -1 | Notation |
| quantum-guitar | 0 | Interface |
| moth-actias | +1 | Sonification |
Conservation: (-1) + (0) + (+1) = 0 β
Skill Name: moth-actias Type: Quantum Synthesizer / MIDI Trit: +1 (PLUS)
Condition: ΞΌ(n) β 0 (MΓΆbius squarefree)
This skill is qualified for non-backtracking geodesic traversal.