Next Article in Journal
Federated Learning over MU-MIMO Vehicular Networks
Previous Article in Journal
Multivariate Time Series Anomaly Detection Based on Inverted Transformer with Multivariate Memory Gate
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Determining the Upper-Bound on the Code Distance of Quantum Stabilizer Codes Through the Monte Carlo Method Based on Fully Decoupled Belief Propagation

1
School of Computer Science and Technology, Harbin Institute of Technology (Shenzhen), Shenzhen 518055, China
2
Hefei National Laboratory, University of Science and Technology of China, Hefei 230088, China
3
Hefei National Research Center for Physical Sciences at the Microscale and School of Physical Sciences, University of Science and Technology of China, Hefei 230026, China
4
Shanghai Research Center for Quantum Science and CAS Center for Excellence in Quantum Information and Quantum Physics, University of Science and Technology of China, Shanghai 201315, China
*
Authors to whom correspondence should be addressed.
Entropy 2025, 27(9), 940; https://doi.org/10.3390/e27090940
Submission received: 18 July 2025 / Revised: 4 September 2025 / Accepted: 5 September 2025 / Published: 9 September 2025
(This article belongs to the Special Issue Quantum Error Correction and Fault-Tolerance)

Abstract

The code distance is a critical parameter of quantum stabilizer codes (QSCs), and determining it—whether exactly or approximately—is known to be an NP-complete problem. However, its upper bound can be determined efficiently by some methods such as the Monte Carlo method. Leveraging the Monte Carlo method, we propose an algorithm to compute the upper bound on the code distance of a given QSC using fully decoupled belief propagation combined with ordered statistics decoding (FDBP-OSD). Our algorithm demonstrates high precision: for various QSCs with known distances, the computed upper bounds match the actual values. Additionally, we explore upper bounds for the minimum weight of logical X operators in the Z-type Tanner-graph-recursive-expansion (Z-TGRE) code and the Chamon code—an XYZ product code constructed from three repetition codes. The results on Z-TGRE codes align with theoretical analysis, while the results on Chamon codes suggest that XYZ product codes may achieve a code distance of O ( N 2 / 3 ) , which supports the conjecture of Leverrier et al.

1. Introduction

Quantum computing can solve certain problems that are intractable for classical computers under limited resources and time [1]. However, qubits—the basic units of quantum computing—are susceptible to environmental noise. This susceptibility compromises computation results and impedes the realization of quantum computing’s potential. Fortunately, Shor [2] and Steane [3] proposed quantum error-correcting codes (QECCs) in 1995, enabling reliable quantum computing.
QSCs [4] are an important class of quantum error-correcting codes. When designing a new QSC, it is necessary to precisely determine its code distance, since the code distance determines the number of physical qubits that can be reliably corrected. Generally, there are three methods to precisely determine the code distance of a QSC: the theoretical proof method, the linear programming method, and brute-force search. For some QSCs, such as the planar surface code [5,6], the XZZX surface code [7], and D-dimensional ( D 2 ) toric codes [8,9,10,11], their code distance can be determined by the properties of their topological structure. For QSCs with a systematic construction method, such as the hypergraph product code [12], we can also theoretically prove their code distance by using the construction method. For some QSCs whose code distance cannot be theoretically determined by the above two methods, it can be computed using linear programming [13] or brute-force search. However, both approaches are computationally intensive, exhibiting exponential time complexity. It has been theoretically proven that computing the code distance of a QSC, either exactly or approximately, is NP-complete [14]. However, the upper bound on the code distance can still be efficiently determined using methods such as Monte Carlo.
The Monte Carlo method [15] is widely used to efficiently approximate solutions to complex problems through stochastic simulations. In quantum error correction, it enables rapid determination of upper bounds on the code distance for certain QSCs [16,17]. The core procedure is as follows: First, perform multiple error-correction simulations on the target code. Second, record the weights of recovered errors that correspond to nontrivial logical operators. Third, take the minimum weight as the upper bound on the code distance. This method imposes no strict constraints on the type of decoder, provided the chosen decoder is applicable and effective for the QSC under test. However, when designing novel QSCs—where decoder compatibility is often unknown—a highly general, performant, and efficient decoder becomes essential for practical Monte Carlo-based distance estimation.
Belief propagation (BP) is a low-complexity decoder applicable to all QSCs. However, its error-correction performance is typically poor due to short cycles [18]. As shown in Ref. [16], ordered statistics decoding (OSD) [19] can enhance BP performance when BP fails to converge. Studies further demonstrate that BP-OSD, the combination of conventional BP with OSD, achieves strong error-correction performance on many Calderbank–Shor–Steane (CSS) quantum low-density parity-check (QLDPC) codes [20,21]. Thus, BP-OSD is highly general, high-performance, and efficient. Nevertheless, for non-CSS codes, conventional binary BP (even with OSD) delivers unsatisfactory performance, particularly under Y-biased noise.
The decoding algorithm employed here is the fully decoupled BP combined with OSD (FDBP-OSD), which was proposed in our previous work [22]. There are two major advantages of this decoding algorithm: (1) it achieves satisfactory accuracy for both CSS and non-CSS codes, and (2) compared with conventional binary BP [23,24], FDBP exhibits higher convergence rates and decoding accuracy.
In this paper, we leverage the Monte Carlo method to propose an algorithm for determining upper bounds on the code distance of QSCs using FDBP-OSD. Our analysis proceeds in three stages: First, we validate the algorithm by computing upper bounds for QSCs with known code distances (e.g., the planar surface code, the XZZX surface code, and the toric code), confirming its effectiveness. The results demonstrate high precision—the computed upper bounds match the actual distances. Second, for Z-TGRE codes [25], the algorithm-determined minimum weight of logical X operators aligns with theoretical analysis. Third, we explore Chamon codes—the XYZ product [26] of three repetition codes with block lengths n 1 , n 2 , and n 3 , whose code distance remains poorly understood. Our results show that when n 1 = n 2 = n 3 = L , its upper bound of the code distance is 2 L , and when n 1 = L 1 , n 2 = L , n 3 = L + 1 , its upper bound of the code distance is L ( L 1 ) . This results implies that the code distance of XYZ product codes can very likely achieve O ( N 2 / 3 ) [26]. We emphasize that, since FDBP-OSD is a highly general, high-performance, and fast decoding algorithm for both CSS and non-CSS codes, when designing new QSCs and their code distance is hard to compute, the algorithm is a useful method to quickly determine the upper bound of their code distance.
The rest of the paper is organized as follows: In Section 2, we introduce some preliminaries, including the quantum stabilizer code, the Z-TGRE code, and the XYZ product code. Section 3 introduces methods to determine the upper bound of the code distance of QSCs through the Monte Carlo method based on FDBP-OSD. The simulation results are presented in Section 4. In Section 5, we conclude our work.

2. Preliminaries

2.1. Quantum Stabilizer Code

This section briefly introduces the basic concept of QSCs. QSCs constitute an important class of QECCs and can be viewed as the quantum counterpart of classical linear error-correcting codes.
Given an [ n , k , d ] QSC C, its code space Q C is a 2 k -dimensional subspace of the Hilbert space H 2 n , which is stabilized by a set of Pauli operators, S G n , where G n = G 1 n and G 1 = ± I , ± i I , ± X , ± i X , ± Y , ± i Y , ± Z , ± i Z is the single-qubit Pauli group. Formally,
Q C = { | φ ( H 2 ) n : S | φ = | φ , S S }
The set S is referred to as the stabilizer group, which is Abelian and can be generated by n k -independent n-qubit Pauli operators S 1 , , S n k G n , namely, S = S 1 , , S n k . The code space is the common eigenspace corresponding to the +1 eigenvalue of all stabilizer generators. Therefore, providing a set of stabilizer generators S 1 , , S n k of code C is equivalent to explicitly providing the code space Q C .
Let s = s 1 , , s n k be a binary vector corresponding to an n-qubit Pauli error E G n ; if E anti-commutes with the stabilizer generator S i , s i = 1 ; otherwise, s i = 0 .
In quantum information theory, the single-qubit Pauli operators X, Y, Z and the identity operator I can be represented by two bits as follows:
I ( 0 , 0 ) , X ( 1 , 0 ) , Z ( 0 , 1 ) , Y ( 1 , 1 )
Thus, any error E G n can be represented by a binary vector e = e x e z of length 2 n , which is referred to as the symplectic representation of E. Based on the symplectic representation, the binary parity-check matrix H of an [ [ n , k , d ] ] QSC is a block matrix with dimension n k × 2 n , which consists of two n k × n binary matrices H x and H z , where
H = ( H x H z ) .
And the syndrome s of E is computed as follows:
s = ( H x · e z + H z · e x ) m o d 2
For a QSC, if its stabilizer generators can be divided into two parts, each of which only contains either X-type or Z-type Pauli operators, it is a CSS code; otherwise, it is a non-CSS code. In this way, the parity check matrix of a CSS code can be written as
H = H x 0 0 H z
where H x and H z both have n columns and the commutation condition satisfies H x H z T = 0 .
The weight of an operator P G n is defined as the number of single-qubit Pauli operators that it contains, and it is denoted as w t P . For instance, w t I 1 X 2 Y 3 Z 4 = 3 .
The logical operators of a QSC are the set of operators in G n which commute with all elements in S but are not in S . More precisely, the logical operators are the elements of C ( S ) S , where C ( S ) is the centralizer of S and is defined as C ( S ) = { P G n : S P = P S , S S } . For an [ [ n , k , d ] ] QSC, we can find k pairs of logical operators ( X ¯ j , Z ¯ j ) j = 1 , , k such that X ¯ i Z ¯ j = ( 1 ) δ i j Z ¯ j X ¯ i , where δ is the Kronecker delta, which means that for the same pair of logical operators X ¯ j , Z ¯ j , they are anti-commute, but they commute with other pairs of logical operators. We can see that C ( S ) = { S 1 , , S n k , X 1 , Z 1 , , X k , Z k } . The code distance d is defined as the minimum weight of the logical operators, where
d = min L C ( S ) S w t ( L )
which determines the number of qubits, t, which the code C can reliably correct, namely t = d 1 2 . In general, there are three methods to precisely compute the code distance of a QSC—the theoretical proof method, the linear programming method [13], and brute-force search. However, only a part of QSCs’ code distance can be theoretically proved. For some QSCs whose code distance cannot be theoretically determined, it can be computed using linear programming [13] or brute-force search. However, both approaches are computationally intensive, exhibiting exponential time complexity. Although theoretically proven to be NP-complete [14] (whether computed exactly or approximately), the code distance of QSCs can still be efficiently bounded from more efficient methods such as the Monte Carlo method.

2.2. Z-Type Tanner-Graph-Recursive-Expansion Code

In our previous work [25], we propose a new class of quantum stabilizer codes named the Z-TGRE code, which is obtained by recursively expanding a Tanner graph, and it has a constant coding rate of 0.5 but can only correct Pauli-X and -Y errors. The way to expand the Tanner graph of the Z-TGRE code is shown in Figure 1.
The code length of the Z-TGRE code is N = 2 L , and our theoretical analysis shows that, if L is an even number, the minimum weight of its logical X operators is d x = log N ; if L is an odd number, d x = log N + 1 . Readers can see [25] for more detail.

2.3. XYZ Product Code

The XYZ product [26] is a three-fold variant of the hypergraph product code construction, which yields non-CSS QSCs. To better understand the XYZ product code, we should first introduce how to describe a CSS code in terms of chain complexes and the hypergraph product code.
A chain complex C of length L is a collection of L + 1 vector spaces C 0 C L and L linear maps i : C i C i + 1 ( 0 i L 1 ), where
C = C 0 0 C 1 1 i 1 C i i C i + 1 i + 1 L 1 C L
which satisfies i + 1 i = 0 .
A chain complex C with length 2 naturally defines a CSS code C ( C ) , namely
C = F 2 m z H z T F 2 n H x F 2 m x
where the commutation condition H x H z T = 0 is naturally satisfied.
It is easy to see that a classical code C = k e r H similarly corresponds to a chain complex with length 1, namely
F 2 n H F 2 m
The hypergraph product is using two classical codes C 1 = k e r H 1 and C 2 = k e r H 2 to construct a CSS code C (where H i , i { 1 , 2 } , represents the parity check matrices of size m i × n i of codes C i ), which corresponds to the following length-2 chain complex:
F 2 m 1 × n 2 H z T F 2 n 1 × n 2 F 2 m 1 × m 2 H x F 2 n 1 × m 2
where H x = 1 n 1 H 2 H 1 T 1 m 2 and H z = ( H 1 T 1 n 2 1 m 1 H 2 ) T .
The XYZ product code construction is a variant of the hypergraph product code construction, which uses three classical codes to construct a non-CSS code. Specifically, given three parity check matrices H i of size m i × n i i = 1 , 2 , 3 , the stabilizer generator matrix S of the corresponding XYZ product code is
S = X H 1 1 n 2 1 n 3 , Y 1 m 1 H 2 T 1 n 3 , Z 1 m 1 1 n 2 H 3 T , I m 1 n 2 n 3 × n 1 m 2 m 3 Y 1 n 1 H 2 1 n 3 , X H 1 T 1 m 2 1 n 3 , I n 1 m 2 n 3 × m 1 n 2 m 3 , Z 1 n 1 1 m 2 H 3 T Z 1 n 1 1 n 2 H 3 , I n 1 n 2 m 3 × m 1 m 2 n 3 , X H 1 T 1 n 2 1 m 3 , Y 1 n 1 H 2 T 1 m 3 I m 1 m 2 m 3 × n 1 n 2 n 3 , Z 1 m 1 1 m 2 H 3 , Y 1 m 1 H 2 1 m 3 , X H 1 1 m 2 1 m 3
Each row of S corresponds to a stabilizer generator. Here the notation P = P H ( P { X , Y , Z } ) denotes a Pauli tensor, which means that for any entry of matrix H, if it is 1, P has a Pauli operator P at the corresponding position and an identity operator I otherwise. Figure 2 shows the “chain complex” representation of the corresponding XYZ product code.
A , B , C , and D are vector spaces which index the qubits, and S , T , U and V are vector spaces which index the stabilizer generators, namely
A F 2 n 1 × n 2 × n 3 , B F 2 m 1 × m 2 × n 3 , C F 2 m 1 × n 2 × m 3 , D F 2 n 1 × m 2 × m 3
and
S F 2 m 1 × n 2 × n 3 , T F 2 n 1 × m 2 × n 3 , U F 2 n 1 × n 2 × m 3 , V F 2 m 1 × m 2 × m 3
It can be seen that the code length is N = n 1 n 2 n 3 + m 1 m 2 n 3 + m 1 n 2 m 3 + n 1 m 2 m 3 . As for the dimension of an XYZ product code, we need to find the number of independent stabilizer generators, and readers can see Ref. [26] for more detail.
In Ref. [26], Leverrier et al. found that this code family includes codes whose minimum distance is O ( N 2 / 3 ) . However, no one has proved it. The simplest instance of the XYZ product code is the Chamon code [27], which is the XYZ product of three repetition codes with block lengths n 1 , n 2 , and n 3 , whose code distance has not been understood well. In Section 4, employing the Monte Carlo method based on FDBP-OSD, we show that when n 1 = n 2 = n 3 = L , its upper bound of the code distance is 2 L , and when n 1 = L 1 , n 2 = L , and n 3 = L + 1 , its upper bound of the code distance is L ( L 1 ) . The results implies that the code distance of the XYZ product code can very likely achieve O ( N 2 / 3 ) .

3. Determining the Upper Bound of Code Distance

It has been theoretically proven that computing the code distance of a QSC, either exactly or approximately, is NP-complete [14]. However, the upper bound on the code distance can still be efficiently determined using methods such as Monte Carlo.
This section first introduces the general idea of determining the upper bound of code distance using the Monte Carlo method. It then briefly reviews the FDBP decoding algorithm proposed in Ref. [22], which exhibits a higher convergence rate and improved decoding accuracy than conventional binary BP. Finally, it introduces how the combination of FDBP with OSD (FDBP-OSD) is employed to determine the upper bound of code distance based on the Monte Carlo method.

3.1. Monte Carlo Method

To understand the general idea of determining the upper bound of code distance through the Monte Carlo method, it is necessary to comprehend the procedure of quantum error-correction simulations shown in Figure 3. As shown in Figure 3, the first step is to randomly generate a Pauli error E and compute the corresponding error syndrome s. Then s is input into a decoder, and subsequently, the decoder outputs an estimated Pauli error E ^ whose corresponding syndrome is also s. The last step is to compute E E ^ ; if it is a logical operator, decoding is failed. Otherwise it is a stabilizer, and the decoding procedure succeeds.
An optimal decoder should follow the principle of maximum likelihood decoding. This means it outputs an estimated Pauli error E ^ that maximizes the probability of being correct. Under an independent error model, this E ^ is likely to have low weight. Furthermore, in the low physical qubit error rate regime, the actual error E itself is also likely to be low weight. Consequently, if the combined operator L = E E ^ is a non-trivial logical operator (indicating a logical error), it is more probable that L has the minimum weight among all equivalent logical operators. This probabilistic tendency forms the basis for determining the upper bound of the code distance using the Monte Carlo method.
This method imposes no strict restrictions on the type of decoder, provided it is applicable to the QSC under test. However, particularly when designing a new QSC, it may not be clear which decoders are applicable. Thus, a decoder offering both high generality and performance is crucial. The combination of FDBP [22] with OSD (FDBP-OSD) provides a highly general and high-performance decoder, making it suitable for determining the upper bound of the code distance for QSCs.

3.2. Fully Decoupled Belief Propagation

FDBP, which was proposed in our previous work [22], is an improved BP decoder for QSCs. It achieves higher convergence rates and decoding accuracy than conventional binary BP [23,24].
In conventional binary BP for QSCs, the symplectic representation of Pauli operators causes Pauli-Y errors to introduce correlations between vectors e x and e z , degrading decoding performance. To address this, prior work proposed a binary BP method leveraging X / Z correlations [28]. However, this approach is limited to CSS codes. For non-CSS codes—especially those under Y-biased noise—conventional symplectic binary BP (even with OSD) delivers unsatisfactory results.
To resolve this limitation, we propose FDBP in our previous work [22]. This decoder eliminates Y-error-induced correlations between e x and e z in the symplectic representation, making it applicable to both CSS and non-CSS codes. FDBP incorporates three key modifications:
(1)
Decoupling Pauli representation: We encode single-qubit Pauli operators using three bits (Definition 1), decoupling Y-error correlations.
(2)
Decoupled parity-check matrix: Based on (1), we construct a decoupled parity-check matrix (Definition 2)
(3)
Constraint message passing: The representation e = ( e x e z e y ) enforces e i + e i + n + e i + 2 n 1 for any qubit i n . We modify message-update and hard-decision rules to incorporate this constraint.
Simulations in [22] confirm FDBP’s superior convergence rate and accuracy over conventional binary BP. Further implementation details are available therein.
Definition 1.
(Decoupling representation of Pauli operators [22]).The representation which represents Pauli operators by the following mapping is called decoupling representation.
I ( 0 , 0 , 0 ) , X ( 1 , 0 , 0 ) , Z ( 0 , 1 , 0 ) , Y ( 0 , 0 , 1 )
For a Pauli error E acting on n qubits, according to the above mapping, its decoupling representation is a binary vector e with size of 3 n , namely
e = ( e x e z e y )
where e x , e z , and e y are all binary vectors with a size of n. Taking X 1 Y 2 Z 3 as an example, the corresponding decoupling representation is e = ( e x e z e y ) = ( 1 0 0 0 0 1 0 1 0 ) .
Definition 2.
(Decoupled parity-check matrix [22]). Given an [ [ n , k ] ] QLDPC code C and the symplectic representation of its stabilizer generators H = ( H x H z ) , the decoupled parity-check matrix of C is
H d = ( H z H x ( H x H z ) )
whose dimension is ( n k ) × 3 n and wheredenotes addition modulo 2. We can see that given the decoupling representation e = ( e x e z e y ) of a Pauli error E and the decoupled parity-check matrix H d = ( H z H x ( H x H z ) ) of a QSC, the error syndrome s is
s = ( H d · e ) m o d 2

3.3. Algorithm

Algorithm 1 presents the use of FDBP-OSD to determine the upper bound on the code distance. The core idea involves exploiting FDBP-OSD to perform error-correction simulations repeatedly under varying physical qubit error rates, which increases the likelihood that the estimated upper bound converges to the true code distance. The noise model used in most of our simulations is the depolarizing noise model; namely, for a given error rate p, one of the Pauli error, X, Y, and Z, acts independently on a qubit with probability p 3 . This is because we aim to determine the upper bound on the code distance of QECs rather than the upper bound on the effective code distance. Thus, the depolarizing noise model is the most appropriate choice.
Algorithm 1: Determining the upper bound of code distance based on FDBP-OSD.
Entropy 27 00940 i001

4. Simulation Results

In this section, we employ Algorithm 1 to first compute upper bounds on the code distance for three well-characterized codes: the planar surface code [5,6], the XZZX surface code [7], and the toric code [8]. This verifies the algorithm’s effectiveness. Second, we simulate Z-TGRE codes proposed in our prior work [25]. Third, we explore the upper bound for Chamon codes—constructed as the XYZ product of three repetition codes (block lengths n 1 , n 2 and n 3 )—whose true code distance remains unknown.
Figure 4a–c show the upper bounds determined by Algorithm 1 at varying physical qubit error rates for the planar surface, XZZX surface, and toric codes, respectively. Notably,
(1)
The computed upper bounds match the known code distances, demonstrating high algorithm precision.
(2)
At low error rates, the upper bound equals the code length (used as the initial value in simulations). This occurs because the high performance of FDBP-OSD ensures all decoding trials succeed.
(3)
Simulations indicate that near p = 0.1 , the algorithm more reliably converges to upper bounds close to the true code distance.
In addition, to demonstrate that FDBP-OSD possesses better performance under Pauli-Y-biased noise compared to conventional BP-OSD, Figure 5a,b show the upper bound of the effective code distance under pure Pauli Y noise obtained by FDBP-OSD and BP-OSD, respectively. One can see that the effective code distance of the XZZX surface code under pure Pauli-Y noise obtained by FDBP-OSD equals to the code length, which is fully consistent with the fact that the XZZX surface code under pure Pauli-Y noise is equivalent to a repetition code. In contrast, the effective distance obtained by conventional BP-OSD is much smaller than the code length. This is because conventional BP-OSD cannot handle the correlations induced by Pauli Y errors, leading to results inconsistent with theoretical expectations. This outcome further demonstrates the advantage of FDBP-OSD in determining the upper bound on the code distance.
In Ref. [25], we propose a new class of QSCs, Z-TGRE codes, with a coding rate of 1 2 , which can only correct pure Pauli-X or -Y errors. Table 1 shows the minimum weight of logical X operators determined by Algorithm 1 (right column) of Z-TGRE codes with different code lengths, which is consistent with the theoretical analysis (middle column).
Table 2 shows that, for the Chamon code, which is the XYZ product of three repetition codes with lengths n 1 , n 2 , and n 3 when n 1 = n 2 = n 3 = L , its upper bound of code distance is 2 L , and when n 1 = L 1 , n 2 = L , and n 3 = L + 1 , its upper bound of code distance is L ( L 1 ) . The results imply that the code distance of XYZ product codes can very likely achieve O ( N 2 / 3 ) , which supports the conjecture by Leverrier et al. [26].

5. Conclusions

The code distance is a critical parameter of QSCs, determining the number of errors that can be reliablly corrected. However, exact computation of the code distance is NP-complete. Consequently, we can compute its upper bound using more efficient methods. This work leverages the Monte Carlo method—an approach for efficient stochastic approximation of complex problems—to propose an algorithm for determining upper bounds on the code distance of QSCs via FDBP-OSD. Our results demonstrate the algorithm’s effectiveness: (1) For the planar surface code, the XZZX surface code, and the toric code, the computed upper bounds match their known code distances, confirming high precision. (2) For the Z-TGRE code, the algorithm-determined upper bound on the minimum weight of logical X operators aligns with theoretical analysis. (3) For the Chamon code, the XYZ product of three repetition codes with block lengths n 1 , n 2 , and n 3 is found. When n 1 = n 2 = n 3 = L , its upper bound of code distance is 2 L , and when n 1 = L 1 , n 2 = L , and n 3 = L + 1 , its upper bound on code distance is L ( L 1 ) . These results suggest that the code distance scales as O ( N 2 / 3 ) , which supports the conjecture by Leverrier et al. [26]. Crucially, FDBP-OSD’s high generality, performance, and speed for both CSS and non-CSS codes make this algorithm a practical tool for rapidly estimating the upper bound on code distance in novel QSC designs where exact computation is infeasible.

Author Contributions

Conceptualization, Z.L.; methodology, Z.L. and Z.W.; software, Z.L. and Z.W.; validation, Z.L. and Z.W.; formal analysis, Z.L. and Z.W.; investigation, Z.L., Z.W., Z.Y., F.Y. and X.W.; resources, Z.L., Z.W., Z.Y., F.Y. and X.W.; data curation, Z.L. and Z.W.; writing—original draft preparation, Z.L., Z.W., Z.Y., F.Y. and X.W.; writing—review and editing, Z.Y., F.Y. and X.W.; visualization, Z.L. and Z.W.; supervision, Z.Y. and X.W.; project administration, Z.L., Z.Y. and X.W.; funding acquisition, X.W. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by the Colleges and Universities of the Stable Support Project of Shenzhen, China (Grant No. GXWD20220817164856008); the Shenzhen Science and Technology Program, China (Grant No. JCYJ20241202123906009); and the Guangdong Provincial Key Laboratory of Novel Security Intelligence Technologies (Grant No. 2022B1212010005), as well as by the Colleges and Universities of the Stable Support Project of Shenzhen, China (Grant No. GXWD20220811170225001), and Harbin Institute of Technology, Shenzhen—SpinQ quantum information Joint Research Center Project (Grant No. HITSZ20230111).

Data Availability Statement

All the data generated or analyzed throughout this study are included in this article.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
QSCquantum stabilizer code
Z-TGREZ-type Tanner-graph-recursive-expansion
CSSCalderbank–Shor–Steane
QLDPCquantum low-density parity check
BPbelief propagation
FDBPfully decoupled belief propagation
OSDordered statistics decoding

References

  1. Shor, P.W. Algorithms for quantum computation: Discrete logarithms and factoring. In Proceedings of the 35th Annual Symposium on Foundations of Computer Science, Santa Fe, NM, USA, 20–22 November 1994; pp. 124–134. [Google Scholar]
  2. Shor, P.W. Scheme for reducing decoherence in quantum computer memory. Phys. Rev. A 1995, 52, R2493–R2496. [Google Scholar] [CrossRef] [PubMed]
  3. Steane, A.M. Error Correcting Codes in Quantum Theory. Phys. Rev. Lett. 1996, 77, 793–797. [Google Scholar] [CrossRef] [PubMed]
  4. Gottesman, D. Stabilizer Codes and Quantum Error Correction; California Institute of Technology: Pasadena, CA, USA, 1997. [Google Scholar]
  5. Bravyi, S.B.; Kitaev, A.Y. Quantum codes on a lattice with boundary. arXiv 1998, arXiv:quant-ph/9811052. [Google Scholar] [CrossRef]
  6. Fowler, A.G.; Mariantoni, M.; Martinis, J.M.; Cleland, A.N. Surface codes: Towards practical large-scale quantum computation. Phys. Rev. A 2012, 86, 032324. [Google Scholar] [CrossRef]
  7. Bonilla Ataides, J.P.; Tuckett, D.K.; Bartlett, S.D.; Flammia, S.T.; Brown, B.J. The XZZX surface code. Nat. Commun. 2021, 12, 2172. [Google Scholar] [CrossRef]
  8. Kitaev, A.Y. Fault-tolerant quantum computation by anyons. Ann. Phys. 2003, 303, 2–30. [Google Scholar] [CrossRef]
  9. Hamma, A.; Zanardi, P.; Wen, X.G. String and membrane condensation on three-dimensional lattices. Phys. Rev. B 2005, 72, 035307. [Google Scholar] [CrossRef]
  10. Castelnovo, C.; Chamon, C. Topological order in a three-dimensional toric code at finite temperature. Phys. Rev. B 2008, 78, 155120. [Google Scholar] [CrossRef]
  11. Breuckmann, N.P.; Duivenvoorden, K.; Michels, D.; Terhal, B.M. Local decoders for the 2D and 4D toric code. arXiv 2016, arXiv:1609.00510. [Google Scholar] [CrossRef]
  12. Tillich, J.P.; Zémor, G. Quantum LDPC codes with positive rate and minimum distance proportional to the square root of the blocklength. IEEE Trans. Inf. Theory 2013, 60, 1193–1202. [Google Scholar] [CrossRef]
  13. Landahl, A.J.; Anderson, J.T.; Rice, P.R. Fault-tolerant quantum computing with color codes. arXiv 2011, arXiv:1108.5738. [Google Scholar] [CrossRef]
  14. Kapshikar, U.; Kundu, S. On the hardness of the minimum distance problem of quantum codes. IEEE Trans. Inf. Theory 2023, 69, 6293–6302. [Google Scholar] [CrossRef]
  15. Rubinstein, R.Y.; Kroese, D.P. Simulation and the Monte Carlo Method; John Wiley & Sons: Hoboken, NJ, USA, 2016. [Google Scholar]
  16. Panteleev, P.; Kalachev, G. Degenerate Quantum LDPC Codes with Good Finite Length Performance. Quantum 2021, 5, 585. [Google Scholar] [CrossRef]
  17. Bravyi, S.; Cross, A.W.; Gambetta, J.M.; Maslov, D.; Rall, P.; Yoder, T.J. High-threshold and low-overhead fault-tolerant quantum memory. Nature 2024, 627, 778–782. [Google Scholar] [CrossRef] [PubMed]
  18. MacKay, D.J.; Mitchison, G.; McFadden, P.L. Sparse-graph codes for quantum error correction. IEEE Trans. Inf. Theory 2004, 50, 2315–2330. [Google Scholar] [CrossRef]
  19. Fossorier, M.P.; Lin, S. Soft-decision decoding of linear block codes based on ordered statistics. IEEE Trans. Inf. Theory 1995, 41, 1379–1396. [Google Scholar] [CrossRef]
  20. Calderbank, A.R.; Rains, E.M.; Shor, P.M.; Sloane, N.J. Quantum error correction via codes over GF (4). IEEE Trans. Inf. Theory 1998, 44, 1369–1387. [Google Scholar] [CrossRef]
  21. Roffe, J.; White, D.R.; Burton, S.; Campbell, E. Decoding across the quantum low-density parity-check code landscape. Phys. Rev. Res. 2020, 2, 043423. [Google Scholar] [CrossRef]
  22. Yi, Z.; Liang, Z.; Chen, J.; Zhong, K.; Wu, Y.; Fang, Z.; Wang, X. Improved belief propagation decoding algorithm based on decoupling representation of Pauli operators for quantum stabilizer codes. Quantum Inf. Process. 2025, 24, 100. [Google Scholar] [CrossRef]
  23. Babar, Z.; Botsinis, P.; Alanis, D.; Ng, S.X.; Hanzo, L. Fifteen years of quantum LDPC coding and improved decoding strategies. IEEE Access 2015, 3, 2492–2519. [Google Scholar] [CrossRef]
  24. Poulin, D.; Chung, Y. On the iterative decoding of sparse quantum codes. arXiv 2008, arXiv:0801.1241. [Google Scholar] [CrossRef]
  25. Yi, Z.; Liang, Z.; Wu, Y.; Wang, X. On the Exploration of Quantum Polar Stabilizer Codes and Quantum Stabilizer Codes with High Coding Rate. Entropy 2024, 26, 818. [Google Scholar] [CrossRef]
  26. Leverrier, A.; Apers, S.; Vuillot, C. Quantum XYZ product codes. Quantum 2022, 6, 766. [Google Scholar] [CrossRef]
  27. Chamon, C. Quantum glassiness in strongly correlated clean systems: An example of topological overprotection. Phys. Rev. Lett. 2005, 94, 040402. [Google Scholar] [CrossRef]
  28. Delfosse, N.; Tillich, J.P. A decoding algorithm for CSS codes using the X/Z correlations. In Proceedings of the 2014 IEEE International Symposium on Information Theory, Honolulu, HI, USA, 29 June–4 July 2014; pp. 1071–1075. [Google Scholar] [CrossRef]
Figure 1. The Tanner graph recursive expansion of Z-TGRE codes. The arrow means that the corresponding variable node (the qubit) starts from 1 in the corresponding check node (the stabilizer) and ends with 8. The variable is numbered from 1 to N = 2 L . G 1 is the primal Tanner graph used for recursive expansion. G 2 is the expanded Tanner graph according to the recursive expansion of two primal Tanner graphs of G 1 . G 3 is the expanded Tanner graph according to the recursive expansion of two G 2 graphs. G L is the expanded Tanner graph according to recursive expansion of two G L 1 graphs.
Figure 1. The Tanner graph recursive expansion of Z-TGRE codes. The arrow means that the corresponding variable node (the qubit) starts from 1 in the corresponding check node (the stabilizer) and ends with 8. The variable is numbered from 1 to N = 2 L . G 1 is the primal Tanner graph used for recursive expansion. G 2 is the expanded Tanner graph according to the recursive expansion of two primal Tanner graphs of G 1 . G 3 is the expanded Tanner graph according to the recursive expansion of two G 2 graphs. G L is the expanded Tanner graph according to recursive expansion of two G L 1 graphs.
Entropy 27 00940 g001
Figure 2. “Chain complex” representation of the XYZ product code.
Figure 2. “Chain complex” representation of the XYZ product code.
Entropy 27 00940 g002
Figure 3. The procedure of quantum error-correction simulations.
Figure 3. The procedure of quantum error-correction simulations.
Entropy 27 00940 g003
Figure 4. The upper bound on the code distance of (a) the planar surface code, (b) the XZZX surface code, and (c) the toric code, respectively, which are determined by Algorithm 1 using different physical qubit error rates.
Figure 4. The upper bound on the code distance of (a) the planar surface code, (b) the XZZX surface code, and (c) the toric code, respectively, which are determined by Algorithm 1 using different physical qubit error rates.
Entropy 27 00940 g004
Figure 5. The upper bound on the effective code distance under pure Pauli-Y noise obtained by (a) FDBP-OSD and (b) BP-OSD.
Figure 5. The upper bound on the effective code distance under pure Pauli-Y noise obtained by (a) FDBP-OSD and (b) BP-OSD.
Entropy 27 00940 g005
Table 1. The minimum weight of logical X operators w t m i n ( X ¯ ) (theoretical and found by Algorithm 1) of Z-TGRE codes with code length N from 4 to 512.
Table 1. The minimum weight of logical X operators w t m i n ( X ¯ ) (theoretical and found by Algorithm 1) of Z-TGRE codes with code length N from 4 to 512.
Code Length
N
wt min ( X ¯ )
Theoretical
wt min ( X ¯ )
Determined by Algorithm 1
422
844
1644
3266
6466
12888
25688
5121010
Table 2. The upper bound of code distance of Chamon codes, which is the XYZ product of 3 repetition codes with lengths n 1 , n 2 , and n 3 .
Table 2. The upper bound of code distance of Chamon codes, which is the XYZ product of 3 repetition codes with lengths n 1 , n 2 , and n 3 .
n 1 n 2 n 3 Code Length NThe Upper Bound of Code Distance
222324
3331086
4442568
55550010
234966
34524012
45648020
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Liang, Z.; Wang, Z.; Yi, Z.; Yang, F.; Wang, X. Determining the Upper-Bound on the Code Distance of Quantum Stabilizer Codes Through the Monte Carlo Method Based on Fully Decoupled Belief Propagation. Entropy 2025, 27, 940. https://doi.org/10.3390/e27090940

AMA Style

Liang Z, Wang Z, Yi Z, Yang F, Wang X. Determining the Upper-Bound on the Code Distance of Quantum Stabilizer Codes Through the Monte Carlo Method Based on Fully Decoupled Belief Propagation. Entropy. 2025; 27(9):940. https://doi.org/10.3390/e27090940

Chicago/Turabian Style

Liang, Zhipeng, Zicheng Wang, Zhengzhong Yi, Fusheng Yang, and Xuan Wang. 2025. "Determining the Upper-Bound on the Code Distance of Quantum Stabilizer Codes Through the Monte Carlo Method Based on Fully Decoupled Belief Propagation" Entropy 27, no. 9: 940. https://doi.org/10.3390/e27090940

APA Style

Liang, Z., Wang, Z., Yi, Z., Yang, F., & Wang, X. (2025). Determining the Upper-Bound on the Code Distance of Quantum Stabilizer Codes Through the Monte Carlo Method Based on Fully Decoupled Belief Propagation. Entropy, 27(9), 940. https://doi.org/10.3390/e27090940

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop