?
What does the SWAP gate do?
PostedMay 18, 2026
Question: What does a SWAP gate do?
A) Exchanges the states of two qubits
B) Measures two qubits at once
C) Deletes a qubit from the circuit
D) Creates a new qubit from nothing
Correct: A
Explanation: A SWAP gate exchanges the quantum states of two qubits. It is often useful during circuit compilation when two-qubit operations must be routed through connected hardware qubits.
Topic: quantum computing / SWAP gate / routing