Frontmatter imports are now valid YAML (`import:` / `导入:` with bind→target entries), removing spaced keys. Add `marqdo migrate imports`, hard-error the old one-liner form, and migrate lib/ext/examples/tests/docs accordingly. Co-authored-by: Cursor <cursoragent@cursor.com>
805 B
805 B
title, description, 导入
| title | description | 导入 | ||
|---|---|---|---|---|
| quantum author API zh smoke | 屏障 / 测量 / 追加 / 态 / 绘图. |
|
main
qc = > 量子.电路 比特数=2
qc = > qc.哈达玛 比特=0
qc = > qc.屏障
qc = > qc.控非 控制=0 目标=1
qc = > qc.测量
st = > qc.态
dim = dim
dim== 4
print text=state-ok
print text=state-fail
img = > qc.绘图 路径="quantum-author-zh-draw.svg"
kind = kind
kind== circuit
print text=draw-ok
print text=draw-fail
other = > 量子.电路 比特数=2
other = > other.泡利X 比特=1
qc2 = > qc.追加 操作=other
ops = ops
n = > len ops
n== 5
print text=append-ok
print text=append-fail