Module: cirq.testing.consistent_protocols

Functions

assert_commutes_magic_method_consistent_with_unitaries(...)

assert_eigen_shifts_is_consistent_with_eigen_components(...)

assert_eigengate_implements_consistent_protocols(...): Checks that an EigenGate subclass is internally consistent and has a good repr.

assert_has_consistent_trace_distance_bound(...)

assert_implements_consistent_protocols(...): Checks that a value is internally consistent and has a good repr.