|View source on GitHub|
Uses val's effect on final_state_vector to check act_on(val)'s behavior.
cirq.testing.assert_all_implemented_act_on_effects_match_unitary( val: Any, assert_tableau_implemented: bool = False, assert_ch_form_implemented: bool = False ) -> None
Checks that act_on with CliffordTableau or StabilizerStateCHForm behaves consistently with acton through final state vector. Does not work with Operations or Gates expecting non-qubit Qids. If either of the assert*_implmented args is true, fails if the corresponding method is not implemented for the test circuit.