# cirq.CSwapGate¶

class cirq.CSwapGate[source]

A controlled swap gate. The Fredkin gate.

__init__()

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

Methods

 controlled_by(*control_qubits) Returns a controlled version of this gate. num_qubits() The number of qubits this gate acts on. on(*qubits) Returns an application of this gate to the given qubits. qubit_index_to_equivalence_group_key(index) Returns a key that differs between non-interchangeable qubits. validate_args(qubits) Checks if this gate can be applied to the given qubits. wrap_in_linear_combination(coefficient, …)