moth-actias

Moth's Actias quantum synth for qubit sonification with Bloch sphere visualization and MIDI control

16 stars

Best use case

moth-actias is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Moth's Actias quantum synth for qubit sonification with Bloch sphere visualization and MIDI control

Teams using moth-actias 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

$curl -o ~/.claude/skills/moth-actias/SKILL.md --create-dirs "https://raw.githubusercontent.com/plurigrid/asi/main/plugins/asi/skills/moth-actias/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/moth-actias/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How moth-actias Compares

Feature / Agentmoth-actiasStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Moth's Actias quantum synth for qubit sonification with Bloch sphere visualization and MIDI control

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

# Moth Actias Quantum Synth

**Trit**: +1 (PLUS - generative/sonic output)
**Type**: Quantum Musical Instrument
**Principle**: Sonify qubit state via Bloch sphere mapping

---

## Overview

Actias is a quantum synthesizer that:
- Visualizes qubit state on Bloch sphere
- Maps quantum state to audio parameters
- Accepts MIDI for rotation control
- Supports measurement operations

## Bloch Sphere Sonification

```
        |0⟩ (North pole)
         │
         │  θ = polar angle
         │
    ─────┼───── φ = azimuthal angle
         │
         │
        |1⟩ (South pole)

|ψ⟩ = cos(θ/2)|0⟩ + e^{iφ}sin(θ/2)|1⟩
```

### Audio Mapping

| Parameter | Bloch Coordinate | Sound Effect |
|-----------|------------------|--------------|
| θ (theta) | Polar angle | Timbre blend |0⟩↔|1⟩ |
| φ (phi) | Azimuthal angle | Phase/detune |
| r | Radius (purity) | Amplitude/reverb |

## MIDI Control

### CC Mappings

| 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 |

### Note Input

```python
# 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)
```

## Integration with Quantum Guitar

```
┌─────────────┐     MIDI      ┌─────────────┐
│   Fishman   │──────────────▶│   Actias    │
│  MIDI Pickup│               │   Synth     │
└─────────────┘               └──────┬──────┘
                                     │
┌─────────────┐     MIDI             │ Audio
│ Boss EV-1-WL│──────────────────────┤
│ Foot Pedals │                      │
└─────────────┘                      ▼
                              ┌─────────────┐
┌─────────────┐               │    Mix      │
│  Boss FS-6  │───Measure────▶│   Output    │
│ Foot Switch │               └─────────────┘
└─────────────┘
```

## Web Interface

Actias runs as web application with:
- Real-time Bloch sphere visualization
- MIDI device selection
- Audio output configuration
- Preset management

**Note**: Web MIDI requires secure context (HTTPS/localhost)

## Known Issues & Workarounds

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 |

## SuperCollider Alternative

```supercollider
// 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;
```

## GF(3) Triad

| Component | Trit | Role |
|-----------|------|------|
| zx-calculus | -1 | Notation |
| quantum-guitar | 0 | Interface |
| **moth-actias** | **+1** | **Sonification** |

**Conservation**: (-1) + (0) + (+1) = 0 ✓

## References

1. Miranda, Thomas & Itaboraí (2023). Q1Synth. Applied Sciences
2. Coecke (2025). A Quantum Guitar. arXiv:2509.04526
3. Moth. Actias documentation (web)

---

**Skill Name**: moth-actias
**Type**: Quantum Synthesizer / MIDI
**Trit**: +1 (PLUS)

## Non-Backtracking Geodesic Qualification

**Condition**: μ(n) ≠ 0 (Möbius squarefree)

This skill is qualified for non-backtracking geodesic traversal.

Related Skills

jepsen-testing

16
from plurigrid/asi

Jepsen-style correctness testing for distributed systems under faults (partitions, crashes, clock skew) using concurrent operation histories and formal checkers (linearizability/serializability and Elle-style anomalies). Use when designing, implementing, or running Jepsen tests, or interpreting histories/violations.

Deterministic Color Generation via Metadata Hashing

16
from plurigrid/asi

**Status**: ✅ Production Ready

cyton-dongle

16
from plurigrid/asi

Connect and stream from OpenBCI Cyton/Daisy via USB dongle, including first-time radio channel pairing

asi-transient-agenda

16
from plurigrid/asi

Org-agenda-like transient views for ASI skill orchestration via nbb/squint + Emacs hydra

Topological Superintelligence (TSI)

16
from plurigrid/asi

Compositional AI framework using GF(3) triadic balance and category-theoretic foundations.

zx-calculus

16
from plurigrid/asi

Coecke's ZX-calculus for quantum circuit reasoning via string diagrams with Z-spiders (green) and X-spiders (red)

zulip-cogen

16
from plurigrid/asi

Zulip Cogen Skill 🐸⚡

zls-integration

16
from plurigrid/asi

zls-integration skill

zig

16
from plurigrid/asi

zig skill

zig-syrup-bci

16
from plurigrid/asi

Multimodal BCI pipeline in Zig: DSI-24 EEG, fNIRS mBLL, eye tracking IVT, LSL sync, EDF read/write, GF(3) conservation

zig-programming

16
from plurigrid/asi

zig-programming skill

zeroth-bot

16
from plurigrid/asi

Zeroth Bot - 3D-printed open-source humanoid robot platform for sim-to-real and RL research. Affordable entry point for humanoid robotics.