Skip to content

Coherent

Coherent-noise importance sampling vs exact

4/4 passed in 2073ms

TestWhat it doesResult
test_clifford_rotation_is_exactRZ(pi/2) is the Clifford S (gamma = 1), so <Y> on |+> is exactly 1.✅ pass
test_rx_on_zero_matches_exactImportance sampling of RX(theta) on |0> reproduces exact <Z> and <Y>.✅ pass
test_rz_on_plus_matches_exactImportance sampling of RZ(theta) on |+> reproduces exact <X> and <Y>.✅ pass
test_sample_rejects_coherentRecord sampling refuses a non-Pauli (coherent) channel.✅ pass