openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > Quantinuumclaw

Enables building and deploying quantum computing applications with Quantinuum, Guppy, Selene, and Fly.io. Use for the OpenClaw Clinical Hackathon, clinical o...

开发与 DevOps

作者:Arun Nadarasa @arunnadarasa

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v0.1.0

统计:⭐ 0 · 203 · 0 current installs · 0 all-time installs

0

安装量(当前) 0

🛡 VirusTotal :可疑 · OpenClaw :良性

Package:arunnadarasa/quantinuumclaw

安全扫描(ClawHub)

  • VirusTotal :可疑
  • OpenClaw :良性

OpenClaw 评估

The skill and its files are coherent with its stated purpose (scaffolding, running, and deploying Guppy/Selene quantum apps to Fly.io); there are no obvious attempts to exfiltrate secrets or perform unrelated actions, but the package lacks provenance and has a few minor documentation/metadata inconsistencies you should review before use.

目的

The repository contents (scripts to scaffold backends/frontends, a Selene FastAPI template, Fly.io deploy helpers, and a Lovable React frontend) match the skill's declared purpose of building and deploying Quantinuum/Guppy/Selene apps. No unrelated binaries or credentials are requested in the metadata.

说明范围

SKILL.md instructs the agent and user to run local Python scripts, edit generated code, set Fly.io secrets for hardware access, and deploy to Fly.io. The instructions stay within the expected scope (scaffolding, running quantum circuits, deployment). They explicitly warn about PHI and recommend storing API keys in Fly.io secrets. No instructions ask the agent to read arbitrary host files or exfiltrate unrelated data.

安装机制

The skill is instruction-only (no registry install spec), so nothing is automatically downloaded by the platform. The docs recommend installing external tools (flyctl via curl install script) and Python/Node dependencies when you run the templates locally; those are normal but carry the usual risk of running install scripts obtained at the time of user execution. Review any remote install commands (e.g., curl | sh) and the scripts that invoke …

证书

Registry metadata lists no required environment variables, which is reasonable for a template skill. However the templates and docs reference optional secrets/env vars (QUANTUM_API_KEY, VITE_API_KEY, API_KEY, PORT, QUANTUM_HARDWARE) that are needed when targeting real hardware or enabling auth. This is not malicious but is a small inconsistency between metadata and file contents—users must still supply these secrets when using hardware or prod…

持久

The skill does not request always:true and does not appear to modify other skills or system-wide settings. It is user-invocable and can be run by the agent, which is the platform default and expected for a scaffolding/deployment skill.

综合结论

This bundle appears to do what it says — scaffold a FastAPI backend (Selene), example Guppy circuits, a React frontend, and helpers to deploy to Fly.io. Before you use it: 1) Verify provenance — the README points to a GitHub repo (arunnadarasa/quantinuumclaw); check that upstream source and commits. 2) Inspect scripts that run automatic actions (scripts/flyio_deploy.py, scripts/create_quantum_app.py, scripts/setup_selene_service.py) for any ne…

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Quantinuumclaw」。简介:Enables building and deploying quantum computing applications with Quantinuum, …。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/arunnadarasa/quantinuumclaw/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
name: quantinuumclaw
description: Enables building and deploying quantum computing applications with Quantinuum, Guppy, Selene, and Fly.io. Use for the OpenClaw Clinical Hackathon, clinical or healthcare projects (drug discovery, treatment optimization, patient stratification, trial randomization), quantum-powered web apps, deploying quantum algorithms to the cloud, or integrating quantum results into user-facing interfaces.
---

# QuantinuumClaw – Quantum Guppy/Selene Stack

This skill provides everything needed to build production-ready quantum applications using **Quantinuum** (hardware/emulator), **Guppy** (quantum language), **Selene** (FastAPI backend), and **Fly.io** (deployment), with optional **Lovable** frontend. It is tuned for the **OpenClaw Clinical Hackathon** and general quantum web apps.

## When to Use This Skill

**Use when:**
- Building for the OpenClaw Clinical Hackathon or any clinical/healthcare quantum project
- Building web applications that use quantum computing (optimization, chemistry, ML, random, crypto)
- Deploying quantum algorithms as REST APIs or creating dashboards for quantum results
- User mentions: clinical, healthcare, drug discovery, treatment optimization, patient stratification, molecular simulation, clinical trials, Guppy, Selene, Fly.io

**Example requests:** "Build a quantum portfolio optimizer with a web interface" · "Deploy my Guppy algorithm to the cloud" · "Create a clinical molecular simulation demo" · "Set up a quantum ML service on Fly.io"

## Stack at a Glance

| Component   | Role |
|------------|------|
| **Quantinuum** | Quantum hardware (H-series) or emulator |
| **Guppy**      | Quantum programming (circuits, gates, measurement) |
| **Selene**     | FastAPI backend that runs Guppy and exposes REST API |
| **Fly.io**     | Hosts the Selene backend in the cloud |
| **Lovable**    | React/TS frontend template; use `assets/lovable-template/` or any app that calls the Selene API |

## Quick Start (One Command)

From the repo root:

```bash
python3 scripts/create_quantum_app.py 
  --app-name "clinical-demo" 
  --use-case "chemistry" 
  --description "Clinical molecular simulation" 
  --deploy
```

Then set `VITE_API_URL` in the frontend to your Fly.io app URL (e.g. `https://clinical-demo.fly.dev`).

**Clinical use-case → `--use-case` mapping:**

| Clinical idea                     | `--use-case`   | Notes |
|-----------------------------------|----------------|--------|
| Drug discovery / molecular sim    | `chemistry`    | Molecules, energy, properties |
| Treatment / resource optimization | `optimization` | QAOA-style optimization |
| Patient stratification / ML       | `ml`           | Quantum ML models |
| Trial randomization               | `random`       | Quantum RNG |
| Secure keys / protocols           | `crypto`       | Quantum-safe crypto |

General use cases (portfolio, finance, etc.) also use `optimization`, `chemistry`, `ml`, `random`, `crypto`, or `finance`. See `references/clinical-use-cases.md` for detailed clinical mappings.

## Full Workflow: Creating a Quantum Application

### Step 1: Define the use case
Identify the problem (optimization, simulation, ML, cryptography, clinical, etc.).

### Step 2: Create Selene backend
```bash
python3 scripts/setup_selene_service.py 
  --app-name "my-quantum-app" 
  --use-case "chemistry" 
  --description "Quantum chemistry simulator"
```
This creates a backend dir with FastAPI, health check, Dockerfile, and `fly.toml`.

### Step 3: Implement your Guppy circuit
Edit `my-quantum-app/main.py` → `QuantumService._run_real_quantum()`. Use `references/guppy_guide.md` for syntax. For clinical: chemistry (molecule, shots, precision), optimization (objective, constraints), ML (features, epochs).

### Step 4: Deploy to Fly.io
```bash
python3 scripts/flyio_deploy.py --app-name "my-quantum-app" --service-dir "my-quantum-app" --region "lhr"
```
Set secrets with `fly secrets set`; use emulator for demos if preferred.

### Step 5: Frontend
Use `assets/lovable-template/` or run:
```bash
python3 scripts/lovable_integrate.py 
  --app-name "my-frontend" 
  --backend-url "https://my-quantum-app.fly.dev" 
  --quantum-use-case "chemistry"
```
Then `npm install` and `npm run dev` in the frontend dir.

### Step 6: Connect and test
Point frontend `VITE_API_URL` to the Fly.io backend; hit `/health` to verify.

## Clinical Use Case Cheat Sheet

- **Drug discovery / molecular simulation:** `chemistry` — VQE-style energy/property in Guppy; expose molecule type and params via API.
- **Treatment / resource optimization:** `optimization` — Define objective (cost, wait time); run QAOA in Selene; display results in UI.
- **Patient stratification / classification:** `ml` — Map patient features to model inputs; return risk/stratum or classification.
- **Randomization (e.g. trials):** `random` — Quantum RNG from Guppy; expose bits/shots in API.
- **Security / key material:** `crypto` — Key generation or quantum-safe primitives; keep keys on backend only.

## Data and Compliance (Clinical / Hackathon)

- **Demos:** Use synthetic or de-identified data only. Do not send real PHI to quantum backends or store in Fly.io without a compliance plan.
- **API keys:** Store in Fly.io secrets (`fly secrets set`), never in code or frontend.
- **Production:** Add auth, rate limiting, and consider HIPAA/DPA; restrict CORS in Selene.

## Resources

### scripts/
- `create_quantum_app.py` — All-in-one: backend + deploy + frontend
- `setup_selene_service.py` — Scaffold Selene backend
- `flyio_deploy.py` — Deploy to Fly.io
- `lovable_integrate.py` — Frontend wired to backend URL

### references/
- `guppy_guide.md` — Guppy syntax, gates, circuits, examples
- `selene_api.md` — Endpoints, request/response, errors, jobs
- `flyio_config.md` — Fly.io scaling, regions, secrets, monitoring
- `lovable_patterns.md` — Frontend patterns, dashboard, API client
- `clinical-use-cases.md` — Detailed clinical use-case mappings and compliance notes

### assets/
- `selene-template/` — Backend boilerplate (main.py, Dockerfile, fly.toml, .env.example)
- `lovable-template/` — React/TS frontend with QuantumDashboard and API client

## Advanced: Multi-Quantum Use Cases

- **Optimization dashboard:** Selene + QAOA/VQE; Lovable with sliders; Fly.io with scaling.
- **Chemistry explorer:** Guppy molecular simulations; 3D viewer; optional persistent storage.
- **Quantum ML API:** Selene exposing QNN/QSVM; Lovable for training/predictions; Fly.io (GPU if needed).

## Performance, Cost, and Security

- **Queuing:** Use job queues for long-running quantum jobs; WebSockets or polling in frontend.
- **Caching:** Cache identical computations to reduce quantum hardware cost.
- **Fly.io:** Scale to zero when idle (`min_machines_running = 0`); use `references/flyio_config.md` for VM sizing.
- **Security:** No API keys in frontend; rate limiting on Selene; HTTPS in production; see `references/selene_api.md` for auth patterns.

## Troubleshooting

- **Guppy import error:** `pip install guppy` in backend; or use mock mode for demos.
- **Selene not starting:** Check `fly.toml`, `fly logs`, and env vars.
- **Frontend can’t connect:** Verify `VITE_API_URL`, CORS in Selene, and `curl .../health`.
- **Fly.io deploy fails:** `fly deploy --clean`; `fly logs --phase build`; ensure `fly auth login`.
- **Quantum results wrong:** Validate circuit logic and measurement; test with emulator first.

## Next Steps

After initial setup: monitor quantum usage/costs; add auth to Selene if public; improve error handling and logging; consider persistence for job history.

---

For detailed clinical use-case specs and compliance reminders, see `references/clinical-use-cases.md`.