360 Secure SkillHub
360 安全技能中心

Tenqua OpticalQuantumSkill

该 Skill 通过一个 Python 脚本模拟以光纤存储、线性光学计算的光子量子计算机:把两个输入数据向量编码为光学相位,经带损耗的模拟光纤传输并干涉,输出二者的量子核(相似度)。脚本声明将模式数限制在 8 以内、校验输入向量维度,并加入衰减与相位噪声;对外仅提供 simulate 一种命令。

分类:数据
aadipapp
aadipapp
热度 46.53
最近更新 2026-05-11 17:25:52

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add aadipapp/optical-quantum-skill
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
optical-quantum-kernel
description
Simulates a quantum kernel using optical fiber storage and linear optics.
author
tempguest
version
0.1.0
license
MIT

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.