Amplitude
Amplitude-damping channel vs exact
5/5 passed in 1198ms
| Test | What it does | Result |
|---|---|---|
test_branch_ops | Branches are identity, Z, and reset-to-|0>, identity first. | ✅ pass |
test_branch_weights | Branch weights equal the analytic q_I, q_Z (negative), q_R = p. | ✅ pass |
test_coherence_on_plus | Off-diagonal coherence on |+> decays by sqrt(1-p): <X> ~ sqrt(1-p). | ✅ pass |
test_decay_on_one | Damping |1> gives <Z> ~ 2p-1, matching exact density-matrix evolution. | ✅ pass |
test_overhead_and_negativity | Fault weight q_Z + q_R is ~3p/4, full overhead ~1, negativity -> 1/3. | ✅ pass |