GitHunt
BE

bernwo/five-qubit-code

Implementation of five qubit code using Qiskit.

Five qubit code

This repository contains my implementation of the (non-fault tolerant) Five-qubit error correcting code using Qiskit package for Python.

This python program is useful to check that the five-qubit code indeed produces non-degenerate outcomes from the syndrome measurements.

The quantum circuit

The quantum circuit of the five-qubit code is shown below.

5_qubit_code_qcircuit

Prerequisite

python3 -m pip install qiskit
python3 -m pip install qiskit-aer

How to run?

Go to the corresponding path then from your commandline, run:

    python3 main.py

References

Some references that I found useful while implementing the five-qubit code.

Languages

Python100.0%

Contributors

Created September 22, 2021
Updated October 7, 2025
bernwo/five-qubit-code | GitHunt