Skip to content

Tableau

CHP tableau gate correctness

13/13 passed in 1ms

TestWhat it doesResult
test_bellBell state stabilizers +XX, +ZZ.✅ pass
test_cx_varargs_pairsCX accepts flattened (control, target) pairs.✅ pass
test_cz_on_plusCZ|++> stabilized by XZ, ZX.✅ pass
test_ghzGHZ_3 group generated by XXX, ZZI, IZZ.✅ pass
test_h_plusH|0> = |+>, stabilized by +X.✅ pass
test_random_clifford_inverseA random Clifford followed by its inverse returns to |0...0>.✅ pass
test_s_dag_inverts_sS_DAG . S = identity.✅ pass
test_s_maps_x_to_yS maps X -> Y.✅ pass
test_swapSWAP exchanges |+>|0> -> |0>|+>.✅ pass
test_y_gateY|0> = i|1>, stabilized by -Z.✅ pass
test_z_makes_minusZ|+> = |->, stabilized by -X.✅ pass
test_zero_1q|0> is stabilized by +Z.✅ pass
test_zero_3q|000> is stabilized by +ZII, +IZI, +IIZ.✅ pass