Standard
Textbook stabilizer circuits
19/19 passed in 154ms
| Test | What it does | Result |
|---|---|---|
test_bell_correlation | Measuring both Bell qubits yields equal outcomes across many seeds. | ✅ pass |
test_bell_stabilizers | The Bell state H(0).CX(0,1) has canonical stabilizers +XX, +ZZ. | ✅ pass |
test_coherent_estimate | For H(0).RZ(0, theta), estimate of <X> tracks cos(theta). | ✅ pass |
test_depolarize_flip_rate | DEPOLARIZE1(0.75) on |0> gives a measured-one frequency near 0.5. | ✅ pass |
test_fidelity_half | |0> and |+> overlap with fidelity 0.5. | ✅ pass |
test_fidelity_identical | Two identical Bell states have fidelity 1.0. | ✅ pass |
test_fidelity_orthogonal | Orthogonal |Phi+> and |Phi-> have fidelity 0.0. | ✅ pass |
test_ghz_correlation | GHZ all-Z measurements collapse to either all-zero or all-one. | ✅ pass |
test_ghz_stabilizers | GHZ on 4 qubits via H + CX chain has the expected canonical stabilizers. | ✅ pass |
test_measure_reset | MR measures the prior value then leaves the qubit in |0>. | ✅ pass |
test_measure_then_reuse | A qubit measured and reset can be re-prepared and remeasured. | ✅ pass |
test_noisy_flip_rate | X_ERROR(p) flips |0> with empirical frequency close to p. | ✅ pass |
test_reset_to_zero | R resets a qubit to |0>, so <Z> = +1 afterward. | ✅ pass |
test_stabilizer_deterministic | On a Bell state, measure of ZZ and XX is a deterministic +1. | ✅ pass |
test_stabilizer_random | On a product state |00>, measuring XX is a random coin flip. | ✅ pass |
test_teleport_minus | Teleporting |-> gives <X> = -1 on the output qubit q2. | ✅ pass |
test_teleport_one | Teleporting |1> gives <Z> = -1 on the output qubit q2. | ✅ pass |
test_teleport_plus | Teleporting |+> gives <X> = +1 on the output qubit q2. | ✅ pass |
test_teleport_zero | Teleporting |0> gives <Z> = +1 on the output qubit q2. | ✅ pass |