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>
707 B
707 B
title, description, import
| title | description | import | ||
|---|---|---|---|---|
| quantum draw probs/bloch smoke | draw kind=probs and kind=bloch return matching kind tags. |
|
main
steps =
| step | gate | qubits |
|---|---|---|
| 1 | H | 0 |
| 2 | CX | 0,1 |
qc = > quantum.circuit qubits=2 steps=steps
img = > qc.draw kind="probs" path="quantum-draw-probs.svg"
kind = kind
kind== probs
print text=probs-ok
print text=probs-fail
qc1 = > quantum.circuit qubits=1
qc1 = > qc1.h qubit=0
bloch = > qc1.draw kind="bloch" path="quantum-draw-bloch.svg"
bk = kind
bk== bloch
print text=bloch-ok
print text=bloch-fail