名称: 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.pybash <SKILL_DIR>/scripts/qexec.sh python qcqi_pure_math_playground.pybash <SKILL_DIR>/scripts/qexec.sh python quantum_app.pybash <SKILL_DIR>/scripts/qexec.sh python quantum_app.py self-testsbash <SKILL_DIR>/scripts/qexec.sh python quantum_app.py playgroundbash <SKILL_DIR>/scripts/qexec.sh python quantum_app.py notebook notebooks/SomeNotebook.ipynbbash <SKILL_DIR>/scripts/qexec.sh python -m quantumapp.server --host 127.0.0.1 --port 8000适用于 Telegram/OpenClaw 快速命令。gl 和 ql 均受支持且功能相同。
bash <SKILL_DIR>/scripts/gl self-testsbash <SKILL_DIR>/scripts/gl playgroundbash <SKILL_DIR>/scripts/gl appbash <SKILL_DIR>/scripts/gl lab-testsbash <SKILL_DIR>/scripts/gl playground-directbash <SKILL_DIR>/scripts/gl notebook notebooks/SomeNotebook.ipynbbash <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。