Files
marqdo/tests/ext/quantum-zh-smoke.mq.md
T
cflmyandCursor abcb141737 refactor: prefer link-index get across examples and tests
Migrate remaining footnote-style collection access in examples,
public/structure, and ext/lib smokes to [key](base); teach link-index in
structure pages and use bracket calls in the cafe journal example.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 12:54:38 +08:00

478 B


title: quantum zh API smoke description: Chinese 量子.电路 泡利Z sandwich. 导入 量子:ext/quantum/量子.mq.md import math:lib/math.mq.md

main

电路 = > 量子.电路 比特数=1 电路 = > 电路.哈达玛 比特=0 电路 = > 电路.泡利Z 比特=0 电路 = > 电路.哈达玛 比特=0 概率 = > 电路.概率 p1 = 1 lo = > math.div a=9 b=10

  1. p1 > lo

print text=zh-ok

print text=zh-fail