This repository contains code and resources for simulating quantum error-correcting codes.
-
3qubit_code/Basic 3 qubit code.ipynb
: Jupyter notebook containing the simulation code for the 3-qubit bit flip code for simple bit flip errors. The simulation is carried out using linear algebra with numpy, and the results are visualized to understand the performance of the error correction code against random bit flip errors. -
3qubit_code/3 Qubit Code with Relaxation Errors.ipynb
: Jupyter notebook building upon the functions defined in3qubit_code/Basic 3 qubit code.ipynb
. This notebook focuses on simulating relaxation errors (T_1 errors) and plots the lifetime of physical qubits vs. logical qubits. Accompanied by3qubit_code/relaxation3qubitcode.py
, which includes functions used in the notebook. -
3qubit_code/3 Qubit Code with Depolarization Errors.ipynb
: Jupyter notebook building upon the functions defined in3qubit_code/Basic 3 qubit code.ipynb
. This notebook focuses on simulating depolarization errors and simulates the average fidelity of the logical qubit over cycles. Accompanied by3qubit_code/depolarization3qubitcode.py
, which includes functions used in the notebook. -
Surface_Code/Surface Code Introduction.ipynb
: Utilizing qiskit, a Jupyter notebook containing an introduction to the Surface Code. Starting with the basic concepts of X and Z stabilizer measurements, and then introducing the 7-qubit error detection Surface Code (distance = 2). -
Surface_Code/Distance 3 Surface Code.ipynb
: Juypter notebook building upon the concepts introduced in the previous notebook by introducing the 17 qubit Surface code (distance = 3). -
Bosonic_Modes/GKP code.ipynb
: A Jupyter notebook that provides a brief introduction to Gottesman-Kitaev-Preskill (GKP) codes and their application in quantum error correction. This notebook demonstrates how GKP codes can be used for error correction in bosonic modes.