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>
395 B
395 B
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] *
c0== 32
print text=amp-ok
print text=amp-fail