Completes the Q4 matrix-draw follow-up and mirrors author/noise APIs in Chinese smokes. Co-authored-by: Cursor <cursoragent@cursor.com>
17 lines
341 B
Markdown
17 lines
341 B
Markdown
---
|
|
title: quantum gate matrix heatmap smoke
|
|
description: gate.draw kind=matrix writes SVG heatmap.
|
|
> ext/quantum/quantum.mq.md
|
|
---
|
|
|
|
# main
|
|
|
|
*`H` = > quantum.gate name=H *
|
|
*`img` = > `H`.draw kind=matrix path=quantum-gate-heatmap.svg *
|
|
*`kind` = `img`[^kind] *
|
|
|
|
1. `kind` == matrix
|
|
> print text=heatmap-ok
|
|
2. *
|
|
> print text=heatmap-fail
|