What is the controlled-swap gate?

Quantum Computing Questions



80 Short 80 Medium 76 Long Answer Questions Question Index

What is the controlled-swap gate?

The controlled-swap gate, also known as the Fredkin gate, is a three-qubit gate in quantum computing. It swaps the states of the second and third qubits if and only if the state of the first qubit is in the state |1⟩. If the first qubit is in the state |0⟩, then the second and third qubits remain unchanged. It is a reversible gate and is commonly used in quantum algorithms for various applications such as quantum teleportation and reversible computing.