Module: cirq.testing.consistent_controlled_gate_op

Functions

assert_controlled_and_controlled_by_identical(...): Checks that gate.on().controlled_by() == gate.controlled().on()

assert_controlled_unitary_consistent(...): Checks that unitary of ControlledGate(gate) is consistent with gate.controlled().