Skills quantum-bridge
Transpile quantum circuits between Qiskit (OpenQASM) and OriginIR, run IBC multi-agent consensus, validate OriginIR, and submit circuits to real quantum hardware (Wukong 72Q chip) via the Quantum Bridge API. Use when a user asks to convert quantum circuits, run quantum consensus, submit to quantum hardware, check quantum backends, or work with OriginIR/OpenQASM formats.
git clone https://github.com/openclaw/skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/adjusternwachukwu-bot/quantum-bridge" ~/.claude/skills/openclaw-skills-quantum-bridge && rm -rf "$T"
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/adjusternwachukwu-bot/quantum-bridge" ~/.openclaw/skills/openclaw-skills-quantum-bridge && rm -rf "$T"
skills/adjusternwachukwu-bot/quantum-bridge/SKILL.mdQuantum Bridge
Translates quantum circuits between frameworks and runs them on real hardware via the Quantum Bridge API at
quantum-api.gpupulse.dev.
Setup
Requires an API key. Get one free (50 credits) at https://quantum-api.gpupulse.dev
Store the key:
# In your TOOLS.md or env QUANTUM_BRIDGE_KEY=qb_...
API Reference
Base URL:
https://quantum-api.gpupulse.dev/api/v1
Auth: Authorization: Bearer qb_... or X-API-Key: qb_...
Transpile QASM → OriginIR (1 credit)
curl -X POST "$BASE/transpile" \ -H "Authorization: Bearer $KEY" \ -H "Content-Type: application/json" \ -d '{"qasm": "OPENQASM 2.0;\ninclude \"qelib1.inc\";\nqreg q[2];\ncreg c[2];\nh q[0];\ncx q[0],q[1];\nmeasure q[0] -> c[0];\nmeasure q[1] -> c[1];"}'
Response:
{"originir": "QINIT 2\nCREG 2\nH q[0]\nCNOT q[0], q[1]\n...", "stats": {...}, "credits_charged": 1}
Reverse: OriginIR → QASM (1 credit)
curl -X POST "$BASE/reverse" \ -H "Authorization: Bearer $KEY" \ -H "Content-Type: application/json" \ -d '{"originir": "QINIT 2\nCREG 2\nH q[0]\nCNOT q[0], q[1]"}'
Validate OriginIR (free)
curl -X POST "$BASE/validate" \ -H "Authorization: Bearer $KEY" \ -H "Content-Type: application/json" \ -d '{"originir": "QINIT 2\nH q[0]\nCNOT q[0], q[1]"}'
IBC Consensus (2 credits)
Multi-agent quantum consensus. Each agent has a name and feature vector.
curl -X POST "$BASE/consensus" \ -H "Authorization: Bearer $KEY" \ -H "Content-Type: application/json" \ -d '{"agents": [ {"name": "Scheduler", "features": [0.9, 0.1, 0.3]}, {"name": "Optimizer", "features": [0.1, 0.9, 0.2]}, {"name": "Monitor", "features": [0.7, 0.3, 0.5]} ], "threshold": 0.3}'
Response includes consensus groups, conflicts, similarity matrix, and quantum timing.
Submit Circuit to Hardware (5-10 credits)
Submit to cloud simulator (5 credits) or real Wukong 72-qubit chip (10 credits).
curl -X POST "$BASE/submit" \ -H "Authorization: Bearer $KEY" \ -H "Content-Type: application/json" \ -d '{"qasm": "OPENQASM 2.0;...", "backend": "wukong", "shots": 1000}'
Response:
{"task_id": "task_...", "status": "queued", "poll_url": "/api/v1/submit/task_..."}
Poll for results:
curl "$BASE/submit/task_..." -H "Authorization: Bearer $KEY"
Check Balance (free)
curl "$BASE/balance" -H "Authorization: Bearer $KEY"
List Backends (free with auth)
curl "$BASE/backends" -H "Authorization: Bearer $KEY"
Supported Gates (no auth)
curl "$BASE/gates"
Supported Gates
20+ mappings: H, X, Y, Z, S, T, I, RX, RY, RZ, U2, U3, CNOT, CZ, SWAP, CR, Toffoli, CSWAP, DAGGER blocks, BARRIER, MEASURE.
Usage Patterns
Transpile for a user:
- Take their QASM input
- POST to
/transpile - Return the OriginIR and stats
Run on real quantum hardware:
- POST to
with/submit"backend": "wukong" - Get
task_id - Poll
until/submit/<task_id>
isstatuscompleted - Return the measurement counts
Multi-agent consensus:
- Collect agent names + feature vectors
- POST to
/consensus - Report groups, conflicts, and overlap scores
Credit Costs
| Endpoint | Credits |
|---|---|
| transpile | 1 |
| reverse | 1 |
| validate | 0 |
| consensus | 2 |
| submit (simulator) | 5 |
| submit (wukong) | 10 |
Pricing
- Free: 50 credits
- Starter: 500 credits — $5 USDC
- Pro: 5,000 credits — $25 USDC
- Enterprise: 50,000 credits — $100 USDC
Payment: USDC on Solana (contact for details)