Fix public docs run errors and optional gate matrix binding.

Markdown list dashes were parsed as loops; quantum.gate name=H failed because plugin bind required matrix. Repair user-site pages and redeploy-ready sources.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-12 15:36:58 +08:00
1 parent db27f5c8d3
commit 209dc4fc5d
24 files changed
+137 -52

No files matched your search

+2 -5
View File
@@ -174,13 +174,10 @@ Circuit rail / probability bars / Bloch sphere SVG (`kind=circuit|probs|bloch`).
+ `theta`=None
+ `matrix`=None
Named built-in gate (`name=H`) or custom unitary from `matrix=` (nested list / `$$` matrix fence). Optional `name=` label for custom gates (default `U`).
Named built-in gate (`name=H`) or custom unitary from `matrix=` (nested list or formula matrix fence). Optional `name=` label for custom gates (default `U`).
> ensure_plugin
1. `matrix`
**> quantum_gate_from_matrix matrix=`matrix` name=`name`**
2. *
**> quantum_gate_new name=`name` theta=`theta`**
**> quantum_gate_new name=`name` theta=`theta` matrix=`matrix`**
## matrix
+2 -5
View File
@@ -174,13 +174,10 @@ description: 官方量子电路模拟(中文)。门 + 电路;ABI 插件。
+ `参数`=None
+ `矩阵`=None
具名内置门(`名=H`)或由 `矩阵=`(嵌套 list / `$$` 矩阵围栏)定义的自定义酉门。自定义门可选 `名=`(默认 `U`)。
具名内置门(`名=H`)或由 `矩阵=`(嵌套 list 或公式矩阵围栏)定义的自定义酉门。自定义门可选 `名=`(默认 `U`)。
> 确保插件
1. `矩阵`
**> quantum_gate_from_matrix matrix=`矩阵` name=`名`**
2. *
**> quantum_gate_new name=`名` theta=`参数`**
**> quantum_gate_new name=`名` theta=`参数` matrix=`矩阵`**
## 矩阵