Skip to content

Noise

Pauli-noise Monte-Carlo sampling

5/5 passed in 71ms

TestWhat it doesResult
test_bitflip_rateBitFlip(p) flips |0> with empirical frequency about p.✅ pass
test_expect_decaysDephasing drives <X> from +1 toward 0 as p grows.✅ pass
test_full_depolarize_randomizesDepolarize(0.75) on |0> gives a Z outcome that is ~50:50. I and Z keep the 0 outcome, X and Y flip it, so P(1) = 0.5.✅ pass
test_x_error_certainX_ERROR(1.0) flips |0> to |1> on every shot.✅ pass
test_zero_probabilityp=0 noise leaves |0> measured as 0.✅ pass