Add amplitude_damping teaching noise for quantum run trajectories.
Extends Q5 with a dissipative jump channel and EN/ZH golds so docs can show energy loss, not only Pauli flips. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
b842644686
commit
505d478724
10 files changed
+153
-25
No files matched your search
@@ -0,0 +1,18 @@
|
||||
---
|
||||
title: quantum amplitude damping smoke
|
||||
description: X then amplitude_damping p=1 returns all shots to |0>.
|
||||
> 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
|
||||
@@ -0,0 +1,18 @@
|
||||
---
|
||||
title: quantum amplitude damping zh smoke
|
||||
description: 泡利X 后 振幅阻尼 p=1 全部落回 |0⟩.
|
||||
> ext/quantum/量子.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
*`qc` = > 量子.电路 比特数=1 *
|
||||
*`qc` = > `qc`.泡利X 比特=0 *
|
||||
*`qc` = > `qc`.噪声 种类=振幅阻尼 概率=1 *
|
||||
*`r` = > `qc`.运行 次数=32 种子=7 *
|
||||
*`c0` = `r`[^counts][^0] *
|
||||
|
||||
1. `c0` == 32
|
||||
> print text=amp-ok
|
||||
2. *
|
||||
> print text=amp-fail
|
||||
Reference in new issue
Block a user