cirq.ControlledOperation

class cirq.ControlledOperation(controls: Sequence[cirq.ops.raw_types.Qid], sub_operation: cirq.Operation, control_values: Optional[Sequence[Union[int, Collection[int]]]] = None)[source]

Augments existing operations to have one or more control qubits.

This object is typically created via operation.controlled_by(*qubits).

__init__(controls: Sequence[cirq.ops.raw_types.Qid], sub_operation: cirq.Operation, control_values: Optional[Sequence[Union[int, Collection[int]]]] = None)[source]

Initialize self. See help(type(self)) for accurate signature.