|q⟩
Bad Qubits
Play
Quest
Questions
Learn
Playground
☕
← Question Bank
Multiple choice
The SWAP gate can be built from exactly three CNOTs with alternating control and target. Which sequence of CNOTs (each written control->target) realizes SWAP on qubits 0 and 1?
🔬 try it before you answer
cx(0,1), cx(1,0)
cx(0,1), cx(0,1), cx(0,1)
cx(0,1), cx(1,0), cx(0,1)
cx(1,0), cx(1,0), cx(1,0)
Check answer