Pre-requisites:
pip install qiskit
pip install pylatexenc
The five-qubit error correcting code is the smallest quantum error correcting code that can protect a logical qubit from any arbitrary single qubit error. In this code, 5 physical qubits are used to encode the logical qubit and checks for bit flip, phase flip and mixed (bit+phase) errors. The code involves:
- Encoding
- Error syndrome detection
- Error correction
- Decoding
References:
- Qiskit docs
- Quantum Computing - From Linear Algebra to Physical Realizations: Mikio Nakahara, Tetsuo Ohmi - Chapter 10 Error correcting codes
- Wiki article