|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.
||A gate or operation that may be an input to protocols.act_on.|
||asserts that protocols.act_on() works with val and ActOnCliffordTableauArgs inputs.|
||asserts that protocols.act_on() works with val and ActOnStabilizerStateChFormArgs inputs.|