Expectation
Pauli expectation values on stabilizer states
8/8 passed in 0ms
| Test | What it does | Result |
|---|---|---|
test_bell_observables | Bell state: <ZZ>=<XX>=+1, <YY>=-1, <ZI>=0. | ✅ pass |
test_pauli_string_arg | peek accepts a PauliString. | ✅ pass |
test_signed_observable | A '-' prefix flips the expectation. | ✅ pass |
test_x_on_minus | <X> = -1 on |->. | ✅ pass |
test_x_on_plus | <X> = +1 on |+>. | ✅ pass |
test_z_on_one | <Z> = -1 on |1>. | ✅ pass |
test_z_on_plus_is_zero | <Z> = 0 on |+> (anticommutes with the stabilizer). | ✅ pass |
test_z_on_zero | <Z> = +1 on |0>. | ✅ pass |