View source on GitHub |
Checks that gate.on().controlled_by() == gate.controlled().on()
cirq.testing.assert_controlled_and_controlled_by_identical(
gate: cirq.Gate
,
*,
num_controls: Sequence[int] = (2, 1, 3, 10),
control_values: Optional[Sequence[Optional[Sequence[Union[int, Collection[int]]]]]] = None
) -> None