PRESET SPOTLIGHT: SWAP DANCE 🕺
Open the presets menu in the simulator and load "swapdance".
Watch what happens: the SWAP operation moves a qubit's entire state onto another wire. Prepare qubit 0 in a 1, swap, and suddenly qubit 1 is the one reading 1.
Under the hood a SWAP is just three CNOTs back-to-back — try building it by hand and check that your version matches the preset's results.
Post your histogram if you try it — especially if you find a way to break it.
Open the presets menu in the simulator and load "swapdance".
Watch what happens: the SWAP operation moves a qubit's entire state onto another wire. Prepare qubit 0 in a 1, swap, and suddenly qubit 1 is the one reading 1.
Under the hood a SWAP is just three CNOTs back-to-back — try building it by hand and check that your version matches the preset's results.
Post your histogram if you try it — especially if you find a way to break it.
🤍 0
💬 0
💬 Comments (0)