cirq.ControlledOperation

class cirq.ControlledOperation(controls: Sequence[cirq.ops.raw_types.Qid], sub_operation: cirq.ops.raw_types.Operation)[source]
__init__(controls: Sequence[cirq.ops.raw_types.Qid], sub_operation: cirq.ops.raw_types.Operation)[source]

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

Methods

controlled_by(*control_qubits) Returns a controlled version of this operation.
transform_qubits(func, cirq.ops.raw_types.Qid]) Returns the same operation, but with different qubits.
with_qubits(*new_qubits)

Attributes

qubits