Description
A code defined using a cluster state and a set of \(Z\)-type Pauli strings defined by a binary classical code.
The CWS construction takes in \( \mathcal{Q} = (\mathcal{G},\mathcal{C}) \), where \(\mathcal{G}\) is a graph, and where \(\mathcal{C}\) is an \((n,K,d)\) binary code. From the graph, we form the unique cluster state \( |\mathcal{G} \rangle \). From the binary code, we form Pauli \(Z\)-type operators \( W_i = Z^{c_{i,1}} \otimes \cdots \otimes Z^{c_{i,n}} \), where \(c_{i,j} \) is the \(j\)-th coordinate of the \(i\)-th classical codeword. The CWS codewords are then \( | i \rangle = W_i | \mathcal{G} \rangle \).
The above definition corresponds to the standard form of CWS codes. Since any stabilizer state is equivalent to a cluster state under a single-qubit Clifford circuit [3][4; Appx. A], any code whose underlying state is a non-cluster stabilizer state can be rewritten in standard CWS form [2].
The term CWS was coined in Ref. [2], and their approach is equivalent to another approach [1] based on Boolean functions (see Ref. [5]). In an alternative convention (not used here), CWS codes are defined from an underlying stabilizer state that is not necessarily a cluster state.
Protection
In standard form, error detection reduces to detecting the induced binary error patterns \(C_{S}(E)\) with the underlying classical code, together with the requirement that any error satisfying \(C_{S}(E)=0\) commute with every word operator [2]. The code distance of \(\mathcal{Q} = ( \mathcal{G},\mathcal{C}) \) is upper bounded by the distance of the classical code \(\mathcal{C} \). A CWS code is degenerate if and only if it is impure [6]. The diagonal distance of a CWS code is the minimum weight of a non-identity Pauli string \(Q\) with \(\langle\mathcal{G}|Q|\mathcal{G}\rangle\neq 0\), i.e., the distance of the graph state \(|\mathcal{G}\rangle\) [7]. It depends only on the graph, and a CWS code whose distance exceeds it is degenerate [8,9]. The diagonal distance is at most \(\delta + 1\), where \(\delta\) is the minimum degree of \(\mathcal{G}\) [9]. For graphs without four-cycles, it equals \(\delta\) or \(\delta+1\) [9; Thm. A]. Each non-identity element of the stabilizer group of \(|\mathcal{G}\rangle\) commutes or anticommutes with every \(W_i\), so it maps each codeword \(W_i|\mathcal{G}\rangle\) to \(\pm W_i|\mathcal{G}\rangle\) and is an undetectable error. The pure distance, the minimum weight of an undetectable error [10,11], is therefore at most the diagonal distance, and so at most \(\delta+1\). For additive CWS codes realizable from a fixed graph \(\mathcal{G}\), Ref. [8] derives upper bounds on the distance and proves a Gilbert-Varshamov existence bound matching the standard pure-stabilizer bound up to the diagonal distance of \(\mathcal{G}\).Encoding
If the classical code \( \mathcal{C} \) has an encoder of complexity \(f(n)\), then the CWS code \( \mathcal{Q} = (\mathcal{G},\mathcal{C}) \) has an encoder of complexity \(\max( n^2, f(n) )\), obtained by preparing the graph state and applying the classical encoder [2].Sequential encoder related to MBQC [12].Decoding
There is no known efficient algorithm to decode an arbitrary non-stabilizer CWS code.Clustered bounded-distance decoder [13–15].Structured error recovery [6], which reduces to syndrome-based recovery for additive (i.e., stabilizer) CWS codes. It takes superpolynomial time when correcting errors on \(\omega(\log n)\) qubits [16].Keyed decoder for CWS codes whose secret key is a random Pauli and a random bipartite graph [16]. The graph is the XOR of \(O(\log^2 n)\) random perfect matchings between the two halves of the qubits. The classical code can be any efficiently encodable and decodable code, linear or not, that corrects a constant fraction of bit flips. The classical decoder coherently removes the induced bit error \(e=v\oplus Au\) of a Pauli error \(Z^vX^u\), with \(A\) the adjacency matrix of the graph, and \(e\) is then measured. A bit-flipping algorithm on the graph recovers \(u\) from \(e\), and the residual phase error \(Z^u\) is cancelled. The decoder runs in polynomial time and corrects all key-independent \(o(n\log\log n/\log n)\)-local noise on average over the key [16].Notes
See Ref. [17] for an overview of CWS codes.Cousins
- Movassagh-Ouyang Hamiltonian code— The Movassagh-Ouyang codes overlap the CWS codes but neither family is contained in the other [18].
- Spacetime code (STC)— CWS codes have been considered in the context of spacetime replication of quantum data [19,20], while STCs are designed to replicate classical data.
- Concatenated quantum code— CWS codes can be concatenated by applying generalized local complementation to their underlying graphs [21].
- EA qubit code— EA CWS codes have been formulated [22].
- Perfect-tensor code— CWS codes can be constructed from \((d-1)\)-uniform states [12].
- XP stabilizer code— The orbit representatives of XP codes play a similar role to the word operators of CWS codes, and non-XP-regular codes have a similar structure [23].
- Quantum pseudorandom error-correcting code (QPRC)— The PRIC encoder maps each basis state to a superposition of classical codewords with pseudorandom signs. It then applies the graph-state unitary of a random bipartite graph and a random Pauli, so the PRIC codespace lies in a keyed CWS code [16]. PRIC decoding uses the graph-based phase recovery of the keyed CWS decoder.
- Qubit stabilizer code— CWS codes whose underlying classical code is a linear binary code are qubit stabilizer codes containing a cluster-state codeword [2,24]. Conversely, stabilizer codes admit a CWS standard form [2]; at the state level, the underlying stabilizer state can be mapped to a cluster state by a single-qubit Clifford circuit [3][4; Appx. A].
Member of code lists
Primary Hierarchy
References
- [1]
V. Aggarwal and A. R. Calderbank, “Boolean Functions, Projection Operators, and Quantum Error Correcting Codes”, IEEE Transactions on Information Theory 54, 1700 (2008) arXiv:cs/0610159 DOI
- [2]
A. Cross, G. Smith, J. A. Smolin, and B. Zeng, “Codeword Stabilized Quantum Codes”, IEEE Transactions on Information Theory 55, 433 (2009) arXiv:0708.1021 DOI
- [3]
M. Van den Nest, J. Dehaene, and B. De Moor, “Graphical description of the action of local Clifford transformations on graph states”, Physical Review A 69, (2004) arXiv:quant-ph/0308151 DOI
- [4]
J. Bausch and F. Leditzky, “Error Thresholds for Arbitrary Pauli Noise”, SIAM Journal on Computing 50, 1410 (2021) arXiv:1910.00471 DOI
- [5]
B. Zeng, “Quantum operations and codes beyond the Stabilizer-Clifford framework”, PhD thesis, Massachusetts Institute of Technology, 2009
- [6]
Y. Li, I. Dumer, M. Grassl, and L. P. Pryadko, “Structured error recovery for code-word-stabilized quantum codes”, Physical Review A 81, (2010) arXiv:0912.3245 DOI
- [7]
S. Y. Looi, L. Yu, V. Gheorghiu, and R. B. Griffiths, “Quantum-error-correcting codes using qudit graph states”, Physical Review A 78, (2008) arXiv:0712.1979 DOI
- [8]
A. A. Kovalev, I. Dumer, and L. P. Pryadko, “Design of additive quantum codes via the code-word-stabilized framework”, Physical Review A 84, (2011) arXiv:1108.5490 DOI
- [9]
U. S. Kapshikar, “The Diagonal Distance of CWS Codes”, (2021) arXiv:2107.11286
- [10]
Y. Fujiwara, “Ability of stabilizer quantum error correction to protect itself from its own imperfection”, Physical Review A 90, (2014) arXiv:1409.2559 DOI
- [11]
T. Wagner, H. Kampermann, D. Bruß, and M. Kliesch, “Pauli channels can be estimated from syndrome measurements in quantum error correction”, Quantum 6, 809 (2022) arXiv:2107.14252 DOI
- [12]
S. Sudevan, S. Das, T. Aswanth, N. Patanker, and N. Kashyap, “Codeword Stabilized Codes From m -Uniform Graph States”, IEEE Journal on Selected Areas in Information Theory 6, 296 (2025) arXiv:2405.06142 DOI
- [13]
Y. Li, I. Dumer, and L. P. Pryadko, “Clustered Error Correction of Codeword-Stabilized Quantum Codes”, Physical Review Letters 104, (2010) arXiv:0907.2038 DOI
- [14]
Y. Li, I. Dumer, M. Grassl, and L. P. Pryadko, “Clustered bounded-distance decoding of codeword-stabilized quantum codes”, 2010 IEEE International Symposium on Information Theory 2662 (2010) DOI
- [15]
Y. Li, “Codeword Stabilized Quantum Codes and Their Error Correction”, PhD thesis, UC Riverside, 2010.
- [16]
M.-H. Hsieh and S. Yamada, “Quantum Pseudorandom Error-Correcting Codes”, (2026) arXiv:2609.38986
- [17]
M. Grassl and M. Rötteler, “Nonadditive quantum codes”, Quantum Error Correction 261 (2013) DOI
- [18]
R. Movassagh and Y. Ouyang, “Constructing quantum codes from any classical code and their embedding in ground space of local Hamiltonians”, Quantum 8, 1541 (2024) arXiv:2012.01453 DOI
- [19]
P. Hayden and A. May, “Summoning information in spacetime, or where and when can a qubit be?”, Journal of Physics A: Mathematical and Theoretical 49, 175304 (2016) arXiv:1210.0913 DOI
- [20]
P. Hayden, S. Nezami, G. Salton, and B. C. Sanders, “Spacetime replication of continuous variable quantum information”, New Journal of Physics 18, 083043 (2016) arXiv:1601.02544 DOI
- [21]
S. Beigi, I. Chuang, M. Grassl, P. Shor, and B. Zeng, “Graph concatenation for quantum codes”, Journal of Mathematical Physics 52, 022201 (2011) arXiv:0910.4129 DOI
- [22]
J. Shin, J. Heo, and T. A. Brun, “Entanglement-assisted codeword stabilized quantum codes”, Physical Review A 84, (2011) arXiv:1109.3358 DOI
- [23]
M. A. Webster, B. J. Brown, and S. D. Bartlett, “The XP Stabiliser Formalism: a Generalisation of the Pauli Stabiliser Formalism with Arbitrary Phases”, Quantum 6, 815 (2022) arXiv:2203.00103 DOI
- [24]
C. Cafaro, D. Markham, and P. van Loock, “Scheme for constructing graphs associated with stabilizer quantum codes”, (2014) arXiv:1407.2777
- [25]
A. W. Cross, “Fault-tolerant quantum computer architectures using hierarchies of quantum error-correcting codes”, PhD thesis, Massachusetts Institute of Technology, 2008.
- [26]
Z. Wu, S. Cheng, and B. Zeng, “A ZX-Calculus Approach for the Construction of Graph Codes”, (2024) arXiv:2304.08363
Page edit log
- Victor V. Albert (2026-11-12) — most recent
- Victor V. Albert (2026-10-25)
- Victor V. Albert (2026-06-08)
- Victor V. Albert (2026-04-22)
- Victor V. Albert (2024-03-28)
- Victor V. Albert (2022-04-21)
- Victor V. Albert (2021-12-16)
- Eric Kubischta (2021-12-15)
Cite as:
“Codeword stabilized (CWS) code”, The Error Correction Zoo (V. V. Albert & P. Faist, eds.), 2026. https://errorcorrectionzoo.org/c/cws, arXiv:2606.11484