Split ext/quantum into index + modules, add marqdo call --effects/--session/--toget, narrative-ratio checks, and a same-package 量子/ tree so agents can follow a decision path for Bell demos without inventing a second API. Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
464 B
Markdown
21 lines
464 B
Markdown
---
|
|
markup: occlusion
|
|
title: quantum amplitude damping smoke
|
|
description: X then amplitude_damping p=1 returns all shots to |0>.
|
|
import:
|
|
quantum: ext/quantum/circuit/index.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](access([counts](access(r, "counts")), "0"))**
|
|
|
|
1. `c0` == 32
|
|
> print text=amp-ok
|
|
2. *
|
|
> print text=amp-fail
|