open-standards/wai/wai-quantum/course/lessons/uniform/lesson.zh-CN.md
Transaction Science fb230d8a62 wai-quantum: the circuits course as data, each exercise checked by the engine, and wai-quantum learn in English and Chinese
engine::course reads the course from wai-quantum/course/: 21 lessons from a
first circuit through superposition, entanglement, interference, the standard
algorithms, noise and mitigation, error correction and fault tolerance to
resource estimates, each a Markdown text in English and Simplified Chinese and
an exercise.json with a schema. A check runs each case of an exercise (a
generator's inputs) with its intent and the verdict, measures its constraints
(the gates allowed, counts, the T count, the critique's smells, the resource
estimate's counts), and says what went wrong from the diagnostics, the verdict
and the critique, never from the solution. The tests hold every solution to
pass by proof, every known wrong answer to fail for its stated reason, and
every locale to every text and message.

wai-quantum learn shows, starts, checks, hints and explains a lesson, keeps
progress only on this machine, and speaks the language --lang or LANG names;
the command summaries and docs topics have Chinese translations held to the
English they came from. The verdict gains of_diagnostic for a generator's
refusal. llms.txt names the course.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-28 08:42:54 -04:00

836 B
Raw Permalink Blame History

分别制备的量子比特通过张量积组合在一起:两个各自处于 (|0⟩ + |1⟩)/√2 的量子比特组成

(|00⟩ + |01⟩ + |10⟩ + |11⟩)/2,

四个结果的振幅各为 1/2,概率各为 1/4。n 个量子比特有 2ⁿ 个振幅。正因为这个数目,经典计算机可以精确跟踪几十个量子比特,却跟踪不了几百个;也正因为如此,引擎按程序的形状来选择方法:有些线路远远用不着全部振幅。

作用在寄存器名上的门会作用于其中每个量子比特:h q; 就是对 q 的每个量子比特写 h q[0]; h q[1]; …。wai-quantum plan 会显示引擎将为某个程序选择的方法及其原因,而不运行程序。