技能详情(站内镜像,无评论)
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v1.0.0
统计:⭐ 0 · 110 · 0 current installs · 0 all-time installs
⭐ 0
安装量(当前) 0
🛡 VirusTotal :良性 · OpenClaw :可疑
Package:adjusternwachukwu-bot/quantum-bridge
安全扫描(ClawHub)
- VirusTotal :良性
- OpenClaw :可疑
OpenClaw 评估
The skill's described functionality matches the included code and API endpoints, but there are metadata and manifest inconsistencies and provenance gaps you should resolve before installing.
目的
The skill claims to call a Quantum Bridge API and submit circuits to hardware — which matches the SKILL.md and the included qbridge.sh. However the registry metadata lists no required environment variables while the runtime instructions and the script clearly require QUANTUM_BRIDGE_KEY (and optionally QUANTUM_BRIDGE_URL). This mismatch between declared requirements and actual runtime needs is an incoherence that should be clarified. The overal…
说明范围
SKILL.md provides concrete curl examples against a single external service (https://quantum-api.gpupulse.dev) and describes expected inputs (QASM, OriginIR, agents JSON). The instructions do not ask the agent to read unrelated system files or exfiltrate data beyond the API. The included shell wrapper reads user-supplied files and posts them to the API as expected. Minor scope problems: SKILL.md tells you to store the key in env/TOOLS.md but th…
安装机制
There is no install spec; this is instruction-only with a small helper script. That is low-risk from an installation perspective — nothing is automatically downloaded. The only included code is a simple Bash wrapper around curl/jq to call the documented API endpoints.
证书
The skill requires a single API credential (QUANTUM_BRIDGE_KEY) to function, which is reasonable for a cloud API. But the registry metadata did not declare this required env var (or declare required binaries like jq/curl). That omission reduces transparency and is a red flag: the skill will fail or prompt for secrets that the metadata didn't advertise. No other unrelated credentials or system paths are requested.
持久
The skill does not request permanent 'always' presence and does not modify other skills or system configuration. Autonomous invocation is allowed by default (normal), but there is no additional privileged persistent behavior.
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Quantum Bridge」。简介:Transpile quantum circuits between Qiskit (OpenQASM) and OriginIR, run IBC mult…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/adjusternwachukwu-bot/quantum-bridge/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: quantum-bridge
description: 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.
---
# Quantum 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:
```bash
# 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)
```bash
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 2nCREG 2nH q[0]nCNOT q[0], q[1]n...", "stats": {...}, "credits_charged": 1}`
### Reverse: OriginIR → QASM (1 credit)
```bash
curl -X POST "$BASE/reverse"
-H "Authorization: Bearer $KEY"
-H "Content-Type: application/json"
-d '{"originir": "QINIT 2nCREG 2nH q[0]nCNOT q[0], q[1]"}'
```
### Validate OriginIR (free)
```bash
curl -X POST "$BASE/validate"
-H "Authorization: Bearer $KEY"
-H "Content-Type: application/json"
-d '{"originir": "QINIT 2nH q[0]nCNOT q[0], q[1]"}'
```
### IBC Consensus (2 credits)
Multi-agent quantum consensus. Each agent has a name and feature vector.
```bash
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).
```bash
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:
```bash
curl "$BASE/submit/task_..." -H "Authorization: Bearer $KEY"
```
### Check Balance (free)
```bash
curl "$BASE/balance" -H "Authorization: Bearer $KEY"
```
### List Backends (free with auth)
```bash
curl "$BASE/backends" -H "Authorization: Bearer $KEY"
```
### Supported Gates (no auth)
```bash
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:**
1. Take their QASM input
2. POST to `/transpile`
3. Return the OriginIR and stats
**Run on real quantum hardware:**
1. POST to `/submit` with `"backend": "wukong"`
2. Get `task_id`
3. Poll `/submit/<task_id>` until `status` is `completed`
4. Return the measurement counts
**Multi-agent consensus:**
1. Collect agent names + feature vectors
2. POST to `/consensus`
3. 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)