Files
marqdo/tests/ext/quantum-amp-damp-smoke.mq.md
T
cflmyandCursor b5c07385e9 feat(markup): finish v0.3 stock migration and green gold
Migrate remaining .mq.md (tests/ext/public/examples), stop elevating local assigns to params, inject form_target in Go libweb, and skip live LLM gold without a real key.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-13 23:43:44 +08:00

19 lines
403 B
Markdown

---
title: quantum amplitude damping smoke
description: X then amplitude_damping p=1 returns all shots to |0>.
import quantum:ext/quantum/quantum.mq.md
---
# main
**qc = > quantum.circuit qubits=1**
**qc = > `qc`.x qubit=0**
**qc = > `qc`.noise kind="amplitude_damping" p=1**
**r = > `qc`.run shots=32 seed=7**
**c0 = r[^counts][^0]**
1. `c0` == 32
> print text=amp-ok
2. *
> print text=amp-fail