Hard Mode: Correction Table
Mission 6: Quantum Teleportation. Part of the Quantum Courier Service, a free course from the Oxford University Quantum Information Society.
Remember the Teleportation Console. The two classical bits that come out of the Bell measurement tell Bob exactly which correction gate to apply: 00 -> I, 01 -> X, 10 -> Z, 11 -> XZ.
The job: write solve(pairs) that takes a list of [bit, bit] pairs and returns the list of correction-gate labels, in order.