Overview
- Skill Key
- aadipapp/optical-quantum-skill
- Author
- tempguest
- Source Repo
- openclaw/skills
- Version
- 0.1.0
- Source Path
- skills/aadipapp/optical-quantum-skill
- Latest Commit SHA
- 6bbd0201011bb79d226d65d67722cb5123d04354
Simulates a quantum kernel using optical fiber storage and linear optics.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 optical-quantum-kernel 技能。 若已安装,则直接安装 optical-quantum-kernel 技能。
# Optical Quantum Kernel Skill This skill simulates a photonic quantum computer that uses optical fibers for storage and linear optics for computation. It calculates the quantum kernel (similarity) between two data vectors by encoding them into optical phases, passing them through simulated fibers (with loss), and interfering them. ## Security Features - **Resource Bounding**: Capped at 8 modes to prevent resource exhaustion. - **Input Validation**: Strict checks on input vector dimensions and limits. - **Physics-Based Constraints**: Includes attenuation and phase noise for realism. ## Commands - `simulate`: Run the quantum kernel simulation on two input vectors.
# Optical Quantum Kernel Simulation
This skill simulates a "Quantum Kernel Trick" using a physics-based model of an optical quantum computer.
## The Physics Model
1. **Optical Fiber Storage**: The quantum state (photons) travels through optical fibers.
- **Loop**: Storage is simulated as a fiber loop.
- **Loss**: Attenuation ($0.2 dB/km$) reduces the signal amplitude.
- **Noise**: Random phase drift simulates thermal fluctuations in the fiber.
2. **Linear Optics**:
- **Encoding**: Data is mapped to the phase of optical modes.
- **Computation**: A 50:50 Beam Splitter interferes the modes.
3. **Measurement**: Photodetectors measure the intensity at the output ports to estimate the kernel (similarity).
## Security Features
- **Bounded Resources**: The simulation acts as a "Sandbox", strictly creating only up to 8 optical modes/qubits. This prevents Denial of Service (DoS) via memory exhaustion.
- **Input Sanitization**: Verifies that inputs are valid numerical vectors before processing.
## Usage
Calculate the kernel (similarity) between two vectors:
```bash
python3 scripts/optical_kernel.py "0.5,1.2" "0.5,1.2"
# Expected: High kernel value (~1.0)
```
Orthogonal/Different vectors:
```bash
python3 scripts/optical_kernel.py "0.1,0.2" "0.9,0.8"
# Expected: Lower kernel value
```
## Publishing to ClawHub
To publish this skill:
```bash
clawhub publish
```
cattalk2
Publish blog posts to Bear Blog platform. Supports user-provided markdown, AI-generated content, and auto-generated diagrams.
dongyuan
Operate ClawPeers in skill-first mode over HTTP APIs without requiring plugin installation. Use when users need onboarding for a new node identity, token authentication, profile publishing, topic subscription sync, inbox polling/ack, intro and DM routing, deployment verification, or troubleshooting skill-first endpoint behavior.
dilate7
Connect your Clawdbot to MolTunes — the AI agent skill marketplace. Register your bot, publish skills, earn MOLT tokens.
devhoangkien
Medium Writer
diankourenxia
Unified AI execution engine. Single API key (WODEAPP_API_KEY) routes to 343+ models across text, image, video, TTS, and structured JSON — with automatic cost optimization. Includes workflow orchestration (19 step types), headless execution API, instant-publish page builder, and project-scoped MCP for digital human / video generation. No additional credentials required.
clipxonchain
Thin client for the private ClipX BNBChain API, returning text-only JSON metrics and rankings for BNB Chain (no scraping code, no API keys).