
Quantum Computing with Silq Programming
By :

In this section, we are going to introduce three error-correcting codes for quantum computation and their implementation in Silq: bit-flip code, phase-flip code, and Shor code. These codes are essential because qubits are particularly prone to errors as they are inherently fragile. Whether the qubits suffer from unexpected decoherence or go through faulty quantum gates, quantum computation is not reliable, and one goal of quantum error correction is to achieve fault-tolerance.
At first glance, it seems that mirroring classical error correction by adding redundancy to our system is doomed to fail because the no-cloning theorem prevents us from copying a given quantum state. However, we will see that with entanglement, it is possible to encode the information in one qubit into a state of several qubits in order to detect and correct errors.
We will start by introducing bit-flip code. This is a quantum error-correcting...