BUILD A PARITY CHECKER ✅
CNOT qubit 0 → qubit 2, then CNOT qubit 1 → qubit 2. Qubit 2 now answers one question: is the number of 1s odd?
Test it on all four inputs. Parity checks like this are the atoms of quantum error correction.
CNOT qubit 0 → qubit 2, then CNOT qubit 1 → qubit 2. Qubit 2 now answers one question: is the number of 1s odd?
Test it on all four inputs. Parity checks like this are the atoms of quantum error correction.
🤍 0
💬 0
💬 Comments (0)