Quantum Lab
Overview
Run quantum_lab repo commands inside the preexisting qiskit venv. Prefer the helper scripts in
scripts/ so the venv and repo root are always set.
Command List (full)
Use
<SKILL_DIR> as the folder where this skill is installed (e.g.,
~/clawd/skills/quantum-lab).
- - INLINECODE3
- INLINECODE4
- INLINECODE5
- INLINECODE6
- INLINECODE7
- INLINECODE8
- INLINECODE9
Command List (short)
Use these for quick Telegram/OpenClaw commands. Both
gl and
ql are supported and equivalent.
- - INLINECODE12
- INLINECODE13
- INLINECODE14
- INLINECODE15
- INLINECODE16
- INLINECODE17
- INLINECODE18
Shorthand Handling
If the user types
gl ... or
ql ... without a full path, always expand it to the full command:
- -
gl <args> → INLINECODE22 - INLINECODE23 → INLINECODE24
Notes
- - Repo root default:
$HOME/work/quantum_lab (override with QUANTUM_LAB_ROOT). - Venv default:
~/.venvs/qiskit (override with VENV_PATH). - If dependencies are missing:
bash <SKILL_DIR>/scripts/qexec.sh pip install -r requirements.txt.
Quantum Lab
概述
在已有的qiskit虚拟环境中运行quantum_lab仓库命令。优先使用scripts/目录下的辅助脚本,以确保始终正确设置虚拟环境和仓库根目录。
命令列表(完整版)
使用
表示该技能安装的文件夹(例如:~/clawd/skills/quantum-lab)。
- - bash DIR>/scripts/qexec.sh python quantmathlab.py
- bash DIR>/scripts/qexec.sh python qcqipuremathplayground.py
- bash DIR>/scripts/qexec.sh python quantumapp.py
- bash DIR>/scripts/qexec.sh python quantumapp.py self-tests
- bash DIR>/scripts/qexec.sh python quantumapp.py playground
- bash DIR>/scripts/qexec.sh python quantumapp.py notebook notebooks/SomeNotebook.ipynb
- bash DIR>/scripts/qexec.sh python -m quantumapp.server --host 127.0.0.1 --port 8000
命令列表(简写版)
用于快速Telegram/OpenClaw命令。gl和ql均支持且功能相同。
- - bash DIR>/scripts/gl self-tests
- bash DIR>/scripts/gl playground
- bash DIR>/scripts/gl app
- bash DIR>/scripts/gl lab-tests
- bash DIR>/scripts/gl playground-direct
- bash DIR>/scripts/gl notebook notebooks/SomeNotebook.ipynb
- bash /scripts/gl web 8000
简写处理
如果用户输入gl ...或ql ...而不带完整路径,始终将其扩展为完整命令:
- - gl <参数> → bash DIR>/scripts/gl <参数>
- ql <参数> → bash DIR>/scripts/ql <参数>
注意事项
- - 仓库根目录默认值:$HOME/work/quantumlab(可通过QUANTUMLABROOT覆盖)。
- 虚拟环境默认值:~/.venvs/qiskit(可通过VENVPATH覆盖)。
- 如果缺少依赖项:bash /scripts/qexec.sh pip install -r requirements.txt。