Files
marqdo/examples/quantum-entanglement
cflmyandCursor 687c168014 feat(parse): use nested YAML import: maps instead of one-liner binds
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>
2026-10-23 19:33:58 +08:00
..

quantum-entanglement

Bell |Φ⁺⟩ entanglement lab via ext/quantum Q7/Q8: density matrix, partial trace, Schmidt entropy, and SVG plots (circuit themed dark by default; hinton / qsphere / multibloch / city).

cargo build --release -p marqdo_plugin_quantum
marqdo ext add quantum   # once (re-run after rebuilding the plugin)
marqdo run examples/quantum-entanglement/index.mq.md
# optional: marqdo view examples/quantum-entanglement/

Prints probabilities, full/reduced purity, ⟨ZZ⟩, and Schmidt entropy; writes SVGs next to the program (sandbox cwd). Circuit/probs/bloch accept theme="dark"|"light"|"bw".

Design: ext-quantum-q7.md · ext-quantum-viz-style.md · sibling: quantum-bell.