Add probs/Bloch draw kinds and matches_matrix, plus feature docs; hide the view Stream panel unless llm/agent is imported, and stop rewriting method names like 绘图 through host_plot aliases. Co-authored-by: Cursor <cursoragent@cursor.com>
691 B
691 B
title: quantum draw probs/bloch smoke description: draw kind=probs and kind=bloch return matching kind tags.
ext/quantum/quantum.mq.md
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 = img[^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 = bloch[^kind] *
bk== bloch
print text=bloch-ok
print text=bloch-fail