360 Secure SkillHub
360 安全技能中心

Tenqua OpticalQuantumSkill

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

aadipapp
aadipapp
热度 87.81
最近更新 2026-05-11 17:25:52
分类:数据依赖:代码执行应用场景:数据处理 / 研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add 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.