cirq.ControlledGate¶
-
class
cirq.ControlledGate(sub_gate: cirq.ops.raw_types.Gate)[source]¶ Augments existing gates with a control qubit.
-
__init__(sub_gate: cirq.ops.raw_types.Gate) → None[source]¶ Initializes the controlled gate.
Parameters: sub_gate – The gate to add a control qubit to.
Methods
on(*qubits)Returns an application of this gate to the given qubits. validate_args(qubits)Checks if this gate can be applied to the given qubits. -