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>
19 lines
384 B
Markdown
19 lines
384 B
Markdown
---
|
|
title: quantum noise smoke
|
|
description: bitflip p=1 after I flips |0> to |1| for all shots.
|
|
import quantum:ext/quantum/quantum.mq.md
|
|
---
|
|
|
|
# main
|
|
|
|
**qc = > quantum.circuit qubits=1**
|
|
**qc = > `qc`.i qubit=0**
|
|
**qc = > `qc`.noise kind="bitflip" p=1**
|
|
**r = > `qc`.run shots=32 seed=3**
|
|
**c1 = [1]([counts](r))**
|
|
|
|
1. `c1` == 32
|
|
> print text=noise-ok
|
|
2. *
|
|
> print text=noise-fail
|