Files
marqdo/tests/ext/quantum-gate-matrix-smoke.mq.md
T
cflmyandCursor f275d1e030 Drop redundant backticks in *…* / **…** code segments
Value-expression variables inside *…* / **…** segments no longer need
backticks (the segment markers already mark code). Drop trailing spaces
and de-tick value-expression variable names in tests and skill docs;
keep backticks for string interpolation, call args, and method receivers.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-17 17:22:45 +08:00

588 B


title: quantum gate matches_matrix smoke description: Named H matches an explicit 2x2 nested list. import quantum:ext/quantum/quantum.mq.md import json: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

  1. ok

print text=match-ok

print text=match-fail

bad = > json.parse text=1,0],[0,1 no = > H.matches_matrix matrix=bad

  1. not no

print text=reject-ok

print text=reject-fail