Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Log inSign up
Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Blog
Job Board
Q3AS

© 2026 Aqora Quantum S.A.S.

TermsPrivacyLegal Notice

arXiv:2309.11793 · IEEE Circuits and Systems Magazine

Quantum Circuits for Stabilizer Error Correcting Codes: A Tutorial

Arijit Mondal, Keshab K. Parhi

Published Jan 1, 2024• 12 citations
arXivHTMLPDF

Abstract

Quantum computers have the potential to provide exponential speedups over their classical counterparts. Quantum principles are being applied to fields such as communications, information processing, and artificial intelligence to achieve quantum advantage. However, quantum bits are extremely noisy and prone to decoherence. Thus, keeping the qubits error free is extremely important toward reliable quantum computing. Quantum error correcting codes have been studied for several decades and methods have been proposed to import classical error correcting codes to the quantum domain. Along with the exploration into novel and more efficient quantum error correction codes, it is also essential to design circuits for practical realization of these codes. This article serves as a tutorial on designing and simulating quantum encoder and decoder circuits for stabilizer codes. We first describe Shor’s 9-qubit code which was the first quantum error correcting code. We discuss the stabilizer formalism along with the design of encoding and decoding circuits for stabilizer codes such as the five-qubit code and Steane code. We also design nearest neighbor compliant circuits for the above codes. The circuits were simulated and verified using IBM Qiskit.

DOI
10.1109/mcas.2024.3349668

Related papers

Optimization of Quantum Circuits for Stabilizer Codes

Arijit Mondal, Keshab K. Parhi

Quantum computing is an emerging technology that has the potential to achieve exponential speedups over their classical counterparts. To achieve quantum advantage, quantum principles are being applied to fields such as communications, information processing, and artificial intelligence. However, quantum computers face a fundamental issue since quantum bits are extremely noisy and prone to decoherence. Keeping qubits error free is one of the most important steps towards reliable quantum computing. Different stabilizer codes for quantum error correction have been proposed in past decades and several methods have been proposed to import classical error correcting codes to the quantum domain. Design of encoding and decoding circuits for the stabilizer codes have also been proposed. Optimization of these circuits in terms of the number of gates is critical for reliability of these circuits. In this paper, we propose a procedure for optimization of encoder circuits for stabilizer codes. Using the proposed method, we optimize the encoder circuit in terms of the number of 2-qubit gates used. The proposed optimized eight-qubit encoder uses 18 CNOT gates and 4 Hadamard gates, as compared to 14 single qubit gates, 33 2-qubit gates, and 6 CCNOT gates in a prior work. The encoder and decoder circuits are verified using IBM Qiskit. We also present encoder circuits for the Steane code and a 13-qubit code, that are optimized with respect to the number of gates used, leading to a reduction in number of CNOT gates by 1 and 8, respectively.

arXiv:2309.12373•IEEE Transactions on Circuits and Systems I Regular Papers•Apr 17, 2024•13 citations

An Optimized Nearest Neighbor Compliant Quantum Circuit for 5-Qubit Code

Arijit Mondal, Keshab K. Parhi

The five-qubit quantum error correcting code encodes one logical qubit to five physical qubits, and protects the code from a single error. It was one of the first quantum codes to be invented, and various encoding circuits have been proposed for it. In this paper, we propose a systematic procedure for optimization of encoder circuits for stabilizer codes. We start with the systematic construction of an encoder for a five-qubit code, and optimize the circuit in terms of the number of quantum gates. Our method is also applicable to larger stabilizer codes. We further propose nearest neighbor compliant (NNC) circuits for the proposed encoder using a single swap gate, as compared to three swap gates in a prior design.

arXiv:2410.06375•Asilomar Conference on Signals, Systems and Computers (ACSSC)•Oct 27, 2024•2 citations

Implementation of Fault-Tolerant Encoding Circuit Based on Stabilizer Implementation and “Flag” Bits in Steane Code

Dongxiao Quan, Chensong Liu, Xiaojie Lv +1 more

Quantum error correction (QEC) is an effective way to overcome quantum noise and de-coherence, meanwhile the fault tolerance of the encoding circuit, syndrome measurement circuit, and logical gate realization circuit must be ensured so as to achieve reliable quantum computing. Steane code is one of the most famous codes, proposed in 1996, however, the classical encoding circuit based on stabilizer implementation is not fault-tolerant. In this paper, we propose a method to design a fault-tolerant encoding circuit for Calderbank-Shor-Steane (CSS) code based on stabilizer implementation and “flag” bits. We use the Steane code as an example to depict in detail the fault-tolerant encoding circuit design process including the logical operation implementation, the stabilizer implementation, and the “flag” qubits design. The simulation results show that assuming only one quantum gate will be wrong with a certain probability p, the classical encoding circuit will have logic errors proportional to p; our proposed circuit is fault-tolerant as with the help of the “flag” bits, all types of errors in the encoding process can be accurately and uniquely determined, the errors can be fixed. If all the gates will be wrong with a certain probability p, which is the actual situation, the proposed encoding circuit will also be wrong with a certain probability, but its error rate has been reduced greatly from p to p2 compared with the original circuit. This encoding circuit design process can be extended to other CSS codes to improve the correctness of the encoding circuit.

Entropy•Aug 11, 2022•8 citations

Implementation of standard quantum error-correction codes for solid-state qubits

Tetsufumi Tanamoto

In quantum error-correcting code (QECC), many quantum operations and measurements are necessary to correct errors in logical qubits. In the stabilizer formalism, which is widely used in QECC, generators ${G}_{i}\phantom{\rule{0.28em}{0ex}}(i=1,2,...)$ consist of multiples of Pauli matrices and perform encoding, decoding, and measurement. In order to maintain encoding states, the stabilizer Hamiltonian ${H}_{\mathrm{stab}}=\ensuremath{-}{\ensuremath{\sum}}_{i}{G}_{i}$ is suitable because its ground state corresponds to the code space. On the other hand, Hamiltonians of most solid-state qubits have two-body interactions and show their own dynamics. In addition solid-state qubits are fixed on substrate and qubit-qubit operation is restricted in their neighborhood. The main purpose of this paper is to show how to directly generate the stabilizer Hamiltonian ${H}_{\mathrm{stab}}$ from conventional two-body Hamiltonians with Ising interaction and $XY$ interaction by applying a pulse control method such as an NMR technique. We show that generation times of ${H}_{\mathrm{stab}}$ for nine-qubit code, five-qubit code, and Steane code are estimated to be less than 300 ns when typical experimental data of superconducting qubits are used, and sufficient pulse control is assumed. We also show how to prepare encoded states from an initial state $|0,...,0\ensuremath{\rangle}$. In addition, we discuss an appropriate arrangement of two- or three-dimensional arrayed qubits.

arXiv:1307.6970•Physical Review A•Dec 26, 2013•7 citations

Advances in Quantum Error Correction: From Theory to Experimental Realization

Shilpi Verma, Markandey Singh

Quantum error correction (QEC) has emerged as a cornerstone in the quest for scalable and fault-tolerant quantum technologies. While quantum systems promise exponential advantages over classical computation, their extreme susceptibility to noise and decoherence presents a formidable challenge. This review critically examines the trajectory of QEC from its theoretical foundations to recent experimental realizations. Foundational codes, including Shor’s and Steane’s constructions, laid the groundwork for the stabilizer formalism and the development of topological and bosonic codes. Over the past decade, experimental demonstrations have validated these concepts, with logical qubits surpassing the lifetimes of physical qubits on platforms such as superconducting circuits, trapped ions, and photonics. Emerging approaches, including low-density parity-check codes, hybrid mitigation–correction strategies, and artificial intelligence–driven decoders, further illustrate the field’s dynamism. By synthesizing theoretical progress, empirical validation, and cross-platform innovations, this review highlights both achievements and persistent challenges particularly the overhead of physical qubits, the speed of real-time decoding, and integration into full-stack architectures. The analysis concludes that while scalable fault-tolerant quantum computing remains a work in progress, recent breakthroughs mark a decisive transition from abstraction to practicality, establishing QEC as a central pillar in the development of quantum computation, communication, and sensing.

•Sep 29, 2025•0 citations

Implementing Shor's 9-Qubit Code: Encoding, Decoding, and Correction on IBM and IONQ

Federico Fuidio, Mateo Stipanicic, Marco Zunino +2 more

Quantum Error Correction (QEC) is an essential field for the development of Fault-Tolerant Quantum Computation. A foundational approach for QEC is Shor's 9-Qubit Code, which remains a solid starting point for studying quantum circuits' error behavior. In this article we evaluate Shor code's detection and correction procedures applied to encoded logical states, given that this code incorporates a decoding circuit component with self-error-correcting properties. We tested the encoded, decoding, and error-correcting procedures for the Shor's 9-Qubit Code on IBM and IONQ quantum devices. The experiments were carried out in two instances: with and without an intentionally added unitary error. We present an analysis of the resulting error syndromes and decoded states. Results show a better performance by IONQ, probably due to larger decoherence times than IBM.

IEEE CHILEAN Conference on Electrical, Electronics Engineering, Information and Communication Technologies (CHILECON)•Oct 28, 2025•0 citations
Quantum computers have the potential to provide exponential speedups over their classical counterparts. Quantum principles are being applied to fields such as communications, information processing, and artificial intelligence to achieve quantum advantage. However, quantum bits are extremely noisy and prone to decoherence. Thus, keeping the qubits error free is extremely important toward reliable quantum computing. Quantum error correcting codes have been studied for several decades and methods have been proposed to import classical error correcting codes to the quantum domain. Along with the exploration into novel and more efficient quantum error correction codes, it is also essential to design circuits for practical realization of these codes. This article serves as a tutorial on designing and simulating quantum encoder and decoder circuits for stabilizer codes. We first describe Shor’s 9-qubit code which was the first quantum error correcting code. We discuss the stabilizer formalism along with the design of encoding and decoding circuits for stabilizer codes such as the five-qubit code and Steane code. We also design nearest neighbor compliant circuits for the above codes. The circuits were simulated and verified using IBM Qiskit.
Quantum computing is an emerging technology that has the potential to achieve exponential speedups over their classical counterparts. To achieve quantum advantage, quantum principles are being applied to fields such as communications, information processing, and artificial intelligence. However, quantum computers face a fundamental issue since quantum bits are extremely noisy and prone to decoherence. Keeping qubits error free is one of the most important steps towards reliable quantum computing. Different stabilizer codes for quantum error correction have been proposed in past decades and several methods have been proposed to import classical error correcting codes to the quantum domain. Design of encoding and decoding circuits for the stabilizer codes have also been proposed. Optimization of these circuits in terms of the number of gates is critical for reliability of these circuits. In this paper, we propose a procedure for optimization of encoder circuits for stabilizer codes. Using the proposed method, we optimize the encoder circuit in terms of the number of 2-qubit gates used. The proposed optimized eight-qubit encoder uses 18 CNOT gates and 4 Hadamard gates, as compared to 14 single qubit gates, 33 2-qubit gates, and 6 CCNOT gates in a prior work. The encoder and decoder circuits are verified using IBM Qiskit. We also present encoder circuits for the Steane code and a 13-qubit code, that are optimized with respect to the number of gates used, leading to a reduction in number of CNOT gates by 1 and 8, respectively.
The five-qubit quantum error correcting code encodes one logical qubit to five physical qubits, and protects the code from a single error. It was one of the first quantum codes to be invented, and various encoding circuits have been proposed for it. In this paper, we propose a systematic procedure for optimization of encoder circuits for stabilizer codes. We start with the systematic construction of an encoder for a five-qubit code, and optimize the circuit in terms of the number of quantum gates. Our method is also applicable to larger stabilizer codes. We further propose nearest neighbor compliant (NNC) circuits for the proposed encoder using a single swap gate, as compared to three swap gates in a prior design.
Quantum error correction (QEC) is an effective way to overcome quantum noise and de-coherence, meanwhile the fault tolerance of the encoding circuit, syndrome measurement circuit, and logical gate realization circuit must be ensured so as to achieve reliable quantum computing. Steane code is one of the most famous codes, proposed in 1996, however, the classical encoding circuit based on stabilizer implementation is not fault-tolerant. In this paper, we propose a method to design a fault-tolerant encoding circuit for Calderbank-Shor-Steane (CSS) code based on stabilizer implementation and “flag” bits. We use the Steane code as an example to depict in detail the fault-tolerant encoding circuit design process including the logical operation implementation, the stabilizer implementation, and the “flag” qubits design. The simulation results show that assuming only one quantum gate will be wrong with a certain probability p, the classical encoding circuit will have logic errors proportional to p; our proposed circuit is fault-tolerant as with the help of the “flag” bits, all types of errors in the encoding process can be accurately and uniquely determined, the errors can be fixed. If all the gates will be wrong with a certain probability p, which is the actual situation, the proposed encoding circuit will also be wrong with a certain probability, but its error rate has been reduced greatly from p to p2 compared with the original circuit. This encoding circuit design process can be extended to other CSS codes to improve the correctness of the encoding circuit.
In quantum error-correcting code (QECC), many quantum operations and measurements are necessary to correct errors in logical qubits. In the stabilizer formalism, which is widely used in QECC, generators Gi(i=1,2,...){G}_{i}\phantom{\rule{0.28em}{0ex}}(i=1,2,...)Gi​(i=1,2,...) consist of multiples of Pauli matrices and perform encoding, decoding, and measurement. In order to maintain encoding states, the stabilizer Hamiltonian ${H}_{\mathrm{stab}}=\ensuremath{-}{\ensuremath{\sum}}_{i}{G}_{i}$ is suitable because its ground state corresponds to the code space. On the other hand, Hamiltonians of most solid-state qubits have two-body interactions and show their own dynamics. In addition solid-state qubits are fixed on substrate and qubit-qubit operation is restricted in their neighborhood. The main purpose of this paper is to show how to directly generate the stabilizer Hamiltonian Hstab{H}_{\mathrm{stab}}Hstab​ from conventional two-body Hamiltonians with Ising interaction and XYXYXY interaction by applying a pulse control method such as an NMR technique. We show that generation times of Hstab{H}_{\mathrm{stab}}Hstab​ for nine-qubit code, five-qubit code, and Steane code are estimated to be less than 300 ns when typical experimental data of superconducting qubits are used, and sufficient pulse control is assumed. We also show how to prepare encoded states from an initial state $|0,...,0\ensuremath{\rangle}$. In addition, we discuss an appropriate arrangement of two- or three-dimensional arrayed qubits.
Quantum error correction (QEC) has emerged as a cornerstone in the quest for scalable and fault-tolerant quantum technologies. While quantum systems promise exponential advantages over classical computation, their extreme susceptibility to noise and decoherence presents a formidable challenge. This review critically examines the trajectory of QEC from its theoretical foundations to recent experimental realizations. Foundational codes, including Shor’s and Steane’s constructions, laid the groundwork for the stabilizer formalism and the development of topological and bosonic codes. Over the past decade, experimental demonstrations have validated these concepts, with logical qubits surpassing the lifetimes of physical qubits on platforms such as superconducting circuits, trapped ions, and photonics. Emerging approaches, including low-density parity-check codes, hybrid mitigation–correction strategies, and artificial intelligence–driven decoders, further illustrate the field’s dynamism. By synthesizing theoretical progress, empirical validation, and cross-platform innovations, this review highlights both achievements and persistent challenges particularly the overhead of physical qubits, the speed of real-time decoding, and integration into full-stack architectures. The analysis concludes that while scalable fault-tolerant quantum computing remains a work in progress, recent breakthroughs mark a decisive transition from abstraction to practicality, establishing QEC as a central pillar in the development of quantum computation, communication, and sensing.
Quantum Error Correction (QEC) is an essential field for the development of Fault-Tolerant Quantum Computation. A foundational approach for QEC is Shor's 9-Qubit Code, which remains a solid starting point for studying quantum circuits' error behavior. In this article we evaluate Shor code's detection and correction procedures applied to encoded logical states, given that this code incorporates a decoding circuit component with self-error-correcting properties. We tested the encoded, decoding, and error-correcting procedures for the Shor's 9-Qubit Code on IBM and IONQ quantum devices. The experiments were carried out in two instances: with and without an intentionally added unitary error. We present an analysis of the resulting error syndromes and decoded states. Results show a better performance by IONQ, probably due to larger decoherence times than IBM.