Skip to content

Expectation

Pauli expectation values on stabilizer states

8/8 passed in 0ms

TestWhat it doesResult
test_bell_observablesBell state: <ZZ>=<XX>=+1, <YY>=-1, <ZI>=0.✅ pass
test_pauli_string_argpeek accepts a PauliString.✅ pass
test_signed_observableA '-' 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