open-standards/wai/wai-quantum/course/lessons/bell/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

983 B
Raw Permalink Blame History

两个量子比特可以处于一种无法拆成“每个比特各一个状态”的状态:Bell 态

(|00⟩ + |11⟩)/√2。

测量它会得到 00 或 11,各占一半的次数,而永远不会得到 01 或 10。单看每个量子比特都像一枚公平的硬币,但两者总是一致。任何一对彼此独立的单比特状态都做不到这一点;这两个量子比特是纠缠的。

这里产生纠缠的门是受控非门 cx control, target。它恰好在控制比特为 |1⟩ 时翻转目标比特。当控制比特处于叠加时,它同时作用于两个部分。

由 h、cx 和其他 Clifford 门组成的线路,引擎用稳定子表(stabilizer tableau)来运行,它能精确跟踪成千上万个量子比特,而不必写出 2ⁿ 个振幅。在你的答案上试试 wai-quantum plan,看看引擎选中了它。