Files
marqdo/tests/ext/quantum-amp-damp-smoke.mq.md
T
cflmyandCursor abcb141737 refactor: prefer link-index get across examples and tests
Migrate remaining footnote-style collection access in examples,
public/structure, and ext/lib smokes to [key](base); teach link-index in
structure pages and use bracket calls in the cafe journal example.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 12:54:38 +08:00

19 lines
405 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 = [0]([counts](r))**
1. `c0` == 32
> print text=amp-ok
2. *
> print text=amp-fail