Skip to content
Back to skills

Quantum

ASecurity

Build, explain and verify small quantum circuits in Quantum Studio's editable statevector simulator.

  • 1,124 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 23, 2026
ai-agentsnodeaws

Works with

  • terminal

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned September 23, 2026

npx -y skills add autonomous-ai/openharness --skill quantum --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Quantum?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Quantum
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/autonomous-ai-quantum/badge)](https://www.skillsdirectory.com/skills/autonomous-ai-quantum)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: quantum
description: Build, explain and verify small quantum circuits in Quantum Studio's editable statevector simulator.
---

# Quantum Studio

The saved source is `circuit.json`:

```json
{"name":"Bell state","qubits":["q0","q1"],"gates":[{"gate":"H","target":0},{"gate":"CX","control":0,"target":1}],"shots":1024}
```

Limits: 1–8 uniquely named qubits, 256 gates, 1–100,000 shots. Gates apply in array order.
Targets and controls are zero-based. The basis is `|q(n−1)…q1q0⟩`: qubit 0 is the rightmost bit.

Supported gates: H, X, Y, Z, S, T, SDG, TDG, RX, RY, RZ, CX (alias CNOT), CZ, SWAP.
Rotations use `theta` in radians in JSON; the UI slider displays degrees. Two-qubit gates require
distinct `control` and `target`. Arbitrary matrices and mid-circuit measurements are not supported.
Terminal `measure` markers may be present, but the displayed state is premeasurement. The shot
sampler draws computational-basis outcomes from the joint Born probabilities, without collapse,
noise, hardware jobs or persistent quantum state.

Bloch vectors are reduced single-qubit expectations. A Bell pair has individually maximally mixed
qubits (purity 0.5), not unit vectors. Preserve their lengths; do not normalize them for display.

## Build and prove

```sh
sh "$QUANTUM_SKILLS/quantum/scripts/build-quantum.sh"
node "$QUANTUM_SKILLS/quantum/scripts/proof.mjs" circuit.json
node "$QUANTUM_SKILLS/quantum/scripts/screenshot.mjs" "$HARNESS_WORKSPACE/index.html"
node "$QUANTUM_SKILLS/quantum/scripts/perf.mjs" "$HARNESS_WORKSPACE/index.html"
```

Build validates the schema and finite normalized state, safely embeds JSON, and updates the verdict.
Failures clear readiness even if an older HTML export remains. Add assertions for the expected state,
not just its norm. `engine.mjs` exports `simulate`, `probabilities`, `bloch` and `sampleShots` for tests.

The browser proof also needs Playwright + Chromium (shared viewer installation or `PLAYWRIGHT_MODULE`)
and a current `proof.json` interaction recipe. It checks actual results, records errors/hashes and
captures `.harness/last.png`. Inspect the image, stepping, edits, undo/redo and narrow layout.

The user can edit gates, scrub the timeline, change rotation phase and sample shots directly.
Those edits stay in browser memory. Download the circuit and save it to the workspace to preserve it;
never imply the viewer wrote back to disk.

Files in this skill

  • SKILL.md2.4 KB
  • scripts/build-quantum.sh174 B
  • scripts/build.mjs2.2 KB
  • scripts/engine.mjs6.5 KB
  • scripts/perf.mjs713 B
  • scripts/proof.mjs753 B
  • scripts/screenshot.mjs714 B
  • scripts/studio.html13.1 KB
  • scripts/studio.js15.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…