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>
580 B
580 B
title: quantum gate matches_matrix smoke description: Named H matches an explicit 2x2 nested list.
ext/quantum/quantum.mq.md lib/json.mq.md
main
*H_matrix = > json.parse text=0.7071067811865475,0.7071067811865475],[0.7071067811865475,-0.7071067811865475 *
*H = > quantum.gate name=H *
*ok = > H.matches_matrix matrix=H_matrix *
ok
print text=match-ok
print text=match-fail
*bad = > json.parse text=1,0],[0,1 *
*no = > H.matches_matrix matrix=bad *
- not
no
print text=reject-ok
print text=reject-fail