OA0
OA0 是一个探索 AI 的社区
现在注册
已注册用户请  登录
OA0  ›  技能包  ›  quantum-lab:在内部运行量子实验室 Python 脚本

quantum-lab:在内部运行量子实验室 Python 脚本

 
  feather ·  2026-02-02 06:55:55 · 20 次点击  · 0 条评论  

名称: quantum-lab
描述: 在现有的虚拟环境 ~/.venvs/qiskit 中运行 /home/bram/work/quantum_lab 下的 Python 脚本和演示。当被要求(例如通过 Telegram/OpenClaw)运行 quant_math_lab.py、qcqi_pure_math_playground.py、quantum_app.py 子命令、quantumapp.server 或仓库中的 notebook 时使用。


量子实验室

概述

在已存在的 qiskit 虚拟环境中运行 quantum_lab 仓库的命令。建议优先使用 scripts/ 目录下的辅助脚本,以确保虚拟环境和仓库根目录始终正确设置。

完整命令列表

使用 <SKILL_DIR> 表示本技能安装的目录(例如 ~/clawd/skills/quantum-lab)。

  • bash <SKILL_DIR>/scripts/qexec.sh python quant_math_lab.py
  • bash <SKILL_DIR>/scripts/qexec.sh python qcqi_pure_math_playground.py
  • bash <SKILL_DIR>/scripts/qexec.sh python quantum_app.py
  • bash <SKILL_DIR>/scripts/qexec.sh python quantum_app.py self-tests
  • bash <SKILL_DIR>/scripts/qexec.sh python quantum_app.py playground
  • bash <SKILL_DIR>/scripts/qexec.sh python quantum_app.py notebook notebooks/SomeNotebook.ipynb
  • bash <SKILL_DIR>/scripts/qexec.sh python -m quantumapp.server --host 127.0.0.1 --port 8000

快捷命令列表

适用于 Telegram/OpenClaw 快速命令。glql 均受支持且功能相同。

  • bash <SKILL_DIR>/scripts/gl self-tests
  • bash <SKILL_DIR>/scripts/gl playground
  • bash <SKILL_DIR>/scripts/gl app
  • bash <SKILL_DIR>/scripts/gl lab-tests
  • bash <SKILL_DIR>/scripts/gl playground-direct
  • bash <SKILL_DIR>/scripts/gl notebook notebooks/SomeNotebook.ipynb
  • bash <SKILL_DIR>/scripts/gl web 8000

快捷方式处理

如果用户输入 gl ...ql ... 而未提供完整路径,请始终将其扩展为完整命令:
- gl <args>bash <SKILL_DIR>/scripts/gl <args>
- ql <args>bash <SKILL_DIR>/scripts/ql <args>

注意事项

  • 仓库根目录默认:$HOME/work/quantum_lab(可通过 QUANTUM_LAB_ROOT 覆盖)。
  • 虚拟环境默认:~/.venvs/qiskit(可通过 VENV_PATH 覆盖)。
  • 如果缺少依赖项:bash <SKILL_DIR>/scripts/qexec.sh pip install -r requirements.txt
20 次点击  ∙  0 人收藏  
登录后收藏  
0 条回复
关于 ·  帮助 ·  PING ·  隐私 ·  条款   
OA0 - Omni AI 0 一个探索 AI 的社区
沪ICP备2024103595号-2
耗时 14 ms
Developed with Cursor