This repository cantains Task 2 of screening tasks for QOSF Mentorship Program. In case there is some issues with rendering while opening the notebook, visit here
- Build the following simple circuit to prepare the Bell state:
- Now add, right before the CNOT gate and for each of the two qubits, an arbitrary “error gate”. By error gate we mean that with a certain probability (that you can decide but must be non-zero for all the choices) you have a 1 qubit unitary which can be either the identity, or the X gate (bit-flip error) or the Z gate (sign-flip error).
- Encode each of the two qubits with a sign-flip or a bit-flip code, in such a way that all the possible choices for the error gates described in 2., occurring on the logical qubits, can be detected and fixed. Motivate your choice. This is the most non-trivial part of the problem, so do it with a lot of care!
- Test your solution by making many measurements over the final state and testing that the results are in line with the expectations.