Files
marqdo/tests/ext/quantum-bell-smoke.mq.md
T
cflmyandCursor 91d51f3f0a Treat bare ids as variables in italic/bold, and land table/quantum follow-ups.
Prefer-var parsing in *…* / **…* (quoted strings for text), table cell expressions, digit map footnotes, and quantum steps/draw with updated golds and LLM sources.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-12 11:21:23 +08:00

730 B


title: quantum bell smoke description: H+CX Bell state probabilities ≈ 1/2 each.

ext/quantum/quantum.mq.md lib/math.mq.md


main

*qc = > quantum.circuit qubits=2 * *qc = > qc.h qubit=0 * *qc = > qc.cx control=0 target=1 * *p = > qc.probabilities *

*p00 = p[^00] * *p11 = p[^11] * *lo = > math.div a=2 b=5 * *hi = > math.div a=3 b=5 *

  1. p00 > lo
  2. p00 < hi > print text=p00-ok
> print text=p00-fail

print text=p00-fail

  1. p11 > lo
  2. p11 < hi > print text=p11-ok
> print text=p11-fail

print text=p11-fail

*ping = > quantum_ping * *ok = ping[^ok] *

  1. ok

print text=ping-ok

print text=ping-fail