Papers
Topics
Authors
Recent
Search
2000 character limit reached

Near-Perfect Code (NPC) Overview

Updated 14 July 2026
  • Near-Perfect Code (NPC) is a context-dependent concept defined relative to a domain-specific perfection benchmark, encompassing synchronization sequences, covering codes, and quantum fidelity measures.
  • In ambient backscatter systems, NPC enhances detection by achieving improved peak-to-sidelobe ratios (up to 21.93 dB) over traditional Barker sequences, thereby enabling reliable multi-tag detection.
  • In classical and quantum coding theory, NPC relates to structural embeddings and near-optimal recovery fidelity, with its definition varying based on perfect-code benchmarks and covering bounds.

Near-Perfect Code (NPC) is used in multiple non-equivalent senses across the arXiv literature. In a recent ambient-backscatter localization paper, it denotes a specific length-$25$ binary synchronization sequence used operationally inside a Neyman–Pearson detector for multiple Zero-Energy Devices (ZEDs) (Yang et al., 3 Oct 2025). In classical coding theory, “near-perfect” more often denotes codes that attain a refined covering bound, or objects studied through their structural relation to 1-perfect codes (Boruchovsky et al., 2024, 0804.0006). In quantum coding, exact perfection is tied to equality in the quantum Hamming bound, and the closest operational analogue of near-perfectness is approximate correction with near-unit optimal recovery fidelity (0907.0049, Zheng et al., 2024). This suggests that the term is best understood as a family of domain-specific notions defined relative to an exact benchmark of perfection.

1. Terminological scope

The literature uses “NPC” in at least four technically distinct ways. The term is therefore not a single canonical object, but a context-dependent label.

Sense of NPC Domain Representative source
Specific synchronization code Ambient backscatter detection (Yang et al., 3 Oct 2025)
Nearly perfect covering code Binary covering codes (Boruchovsky et al., 2024)
Near-perfectness relative to perfect-code structure Classical/quantum coding theory (0804.0006, 0907.0049)
Acronym collision DNN testing, cuboid theory (Xie et al., 2022, Meskhishvili, 2015)

In the ambient-backscatter setting, NPC is not presented as a general algebraic code family. The paper gives one exact sequence, motivates it by peak-to-sidelobe behavior, and uses it inside a detector architecture. In contrast, the covering-code literature defines nearly perfectness through attainment of the van Wee bound, while the perfect-code literature studies how nonperfect 1-codes can sit inside perfect-code geometry. In the quantum setting, exact perfection is rigidly classified, so “near-perfect” naturally means lying close to that exact boundary rather than satisfying a separate standard definition.

2. NPC as a synchronization sequence in ambient backscatter systems

In "Neyman Pearson Detector for Multiple Ambient Backscatter Zero-Energy-Devices Beacons using Near-Perfect Code" (Yang et al., 3 Oct 2025), NPC denotes a concrete synchronization sequence for ZED-based ambient backscatter localization. The paper studies multiple coexisting asynchronous tags under interference and synchronization uncertainty, and the code is introduced specifically to improve separability of concurrent tags. The ZED transmission has synchronization and identification parts, but the work focuses only on synchronization. Synchronization bits are conveyed through FSK modulation of two tag states, with transmitted waveform

x(t)=n=0Nb1bnx1(tnTb)+n=0Nb1(1bn)x0(tnTb).x(t)=\sum_{n=0}^{N_b-1}b_n x_1(t-nT^b)+\sum_{n=0}^{N_b-1}(1-b_n)x_0(t-nT^b).

The synchronization bits bnb_n are chosen as a length-Nb=25N_b=25 binary NPC rather than the 21-bit Barker sequence used earlier: NPC=[0 1 1 0 1 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 0 0].\text{NPC} = [0 \ 1 \ 1 \ 0 \ 1 \ 1 \ 0 \ 1 \ 0 \ 1 \ 0 \ 1 \ 1 \ 1 \ 1 \ 1 \ 1 \ 0 \ 0 \ 0 \ 1 \ 1 \ 0 \ 0 \ 0].

The code is adopted from radar-code literature and is justified operationally through its peak-to-sidelobe ratio rather than through a general synthesis method. The reported motivation is entirely practical. The earlier Barker-based system offered “a PSL gain of approximately 11 dB,” whereas “a 25-bit NPC achieves a PSL gain of 21.93 dB.” In the multi-tag setting, that improvement matters because the dominant tag’s correlation sidelobes can mask weaker tags. The paper states explicitly that “This significant improvement in autocorrelation characteristics enables more reliable detection in multi-tag scenarios.”

The receiver architecture replaces “dual band-pass filtering with dual correlators.” For each candidate bit interval, the correlator outputs are

$\begin{split} e_0(n)&=\sum_{\tiny\begin{matrix}l; t(l)\in \ [t_n,t_n+T^b]\end{matrix} \frac{y(l)}{a_{0}(n)}\cdot \mathds{1}_{x_0(t(l))} - \frac{y(l)}{b_{0}(n)}\cdot \mathds{1}_{\bar{x_0}(t(l))} \ e_1(n)&=\sum_{\tiny\begin{matrix}l; t(l)\in \ [t_n,t_n+T^b]\end{matrix} \frac{y(l)}{a_{1}(n)}\cdot \mathds{1}_{x_1(t(l))} - \frac{y(l)}{b_{1}(n)}\cdot \mathds{1}_{\bar{x_1}(t(l))}. \end{split}$

Under the idealized matched-bit case,

ei(n)=Puγ+αi(n),ej(n)=αj(n),e_i(n) = \sqrt{P_u} \gamma + \alpha_i(n), \quad e_j(n) = \alpha_j(n),

with

αi(n)N(0,σ22(1ai(n)+1bi(n))).\alpha_i(n) \sim \mathcal{N}\left(0, \frac{\sigma^2}{2} \left( \frac{1}{a_i(n)} + \frac{1}{b_i(n)} \right) \right).

From these, the reflected-path power estimate is

η~(n)=ei(n)2ej(n)2ϵ(n),\tilde{\eta}(n) = |e_i(n)|^2 - |e_j(n)|^2 - \epsilon(n),

where

ϵ(n)=σ2(1ai(n)+1bi(n)1aj(n)1bj(n)).\epsilon(n) = \sigma^2 \left( \frac{1}{a_i(n)} + \frac{1}{b_i(n)} - \frac{1}{a_j(n)} - \frac{1}{b_j(n)} \right).

The actual NPC-based synchronization statistic is the contrast metric

x(t)=n=0Nb1bnx1(tnTb)+n=0Nb1(1bn)x0(tnTb).x(t)=\sum_{n=0}^{N_b-1}b_n x_1(t-nT^b)+\sum_{n=0}^{N_b-1}(1-b_n)x_0(t-nT^b).0

with x(t)=n=0Nb1bnx1(tnTb)+n=0Nb1(1bn)x0(tnTb).x(t)=\sum_{n=0}^{N_b-1}b_n x_1(t-nT^b)+\sum_{n=0}^{N_b-1}(1-b_n)x_0(t-nT^b).1. Each bit of the NPC therefore weights a local noncoherent energy contrast with sign x(t)=n=0Nb1bnx1(tnTb)+n=0Nb1(1bn)x0(tnTb).x(t)=\sum_{n=0}^{N_b-1}b_n x_1(t-nT^b)+\sum_{n=0}^{N_b-1}(1-b_n)x_0(t-nT^b).2. For frequency diversity, the combined statistic is

x(t)=n=0Nb1bnx1(tnTb)+n=0Nb1(1bn)x0(tnTb).x(t)=\sum_{n=0}^{N_b-1}b_n x_1(t-nT^b)+\sum_{n=0}^{N_b-1}(1-b_n)x_0(t-nT^b).3

where

x(t)=n=0Nb1bnx1(tnTb)+n=0Nb1(1bn)x0(tnTb).x(t)=\sum_{n=0}^{N_b-1}b_n x_1(t-nT^b)+\sum_{n=0}^{N_b-1}(1-b_n)x_0(t-nT^b).4

The detector is of threshold form, and the paper gives a Gaussian-threshold false-alarm-control argument under x(t)=n=0Nb1bnx1(tnTb)+n=0Nb1(1bn)x0(tnTb).x(t)=\sum_{n=0}^{N_b-1}b_n x_1(t-nT^b)+\sum_{n=0}^{N_b-1}(1-b_n)x_0(t-nT^b).5.

For multiple asynchronous tags, the method is sequential rather than joint. The receiver first finds the strongest peak as the primary tag, then searches for a secondary peak. Once the strongest peak power x(t)=n=0Nb1bnx1(tnTb)+n=0Nb1(1bn)x0(tnTb).x(t)=\sum_{n=0}^{N_b-1}b_n x_1(t-nT^b)+\sum_{n=0}^{N_b-1}(1-b_n)x_0(t-nT^b).6 is identified, the sidelobe-aware secondary threshold is

x(t)=n=0Nb1bnx1(tnTb)+n=0Nb1(1bn)x0(tnTb).x(t)=\sum_{n=0}^{N_b-1}b_n x_1(t-nT^b)+\sum_{n=0}^{N_b-1}(1-b_n)x_0(t-nT^b).7

with x(t)=n=0Nb1bnx1(tnTb)+n=0Nb1(1bn)x0(tnTb).x(t)=\sum_{n=0}^{N_b-1}b_n x_1(t-nT^b)+\sum_{n=0}^{N_b-1}(1-b_n)x_0(t-nT^b).8 dB and empirical margin x(t)=n=0Nb1bnx1(tnTb)+n=0Nb1(1bn)x0(tnTb).x(t)=\sum_{n=0}^{N_b-1}b_n x_1(t-nT^b)+\sum_{n=0}^{N_b-1}(1-b_n)x_0(t-nT^b).9 dB. A secondary ZED is declared only if its peak exceeds both the Neyman–Pearson threshold bnb_n0 and the sidelobe suppression threshold bnb_n1. Experimentally, the paper reports that the Barker baseline was “not sufficient to permit the detection of a secondary peak,” while the NPC improved the peak-to-lobe ratio to about bnb_n2–bnb_n3 dB. In single-tag scenarios, “all tag occurrences are successfully detected, with no false alarms or missed detections.” In multi-tag scenarios, secondary detection depends on relative power: scenario 6 detects 4 out of 6 secondary peaks, scenario 7 detects 8 out of 9, and scenario 8 yields only 1 successful secondary detection because the second tag is much weaker. The authors also report the empirical observation that “we have a high probability to detect a secondary ZED if its power signal is between [-20dB , 0dB] from the signal of the first ZED.”

The limitations are explicit. The paper states that “a full derivation of the optimal likelihood ratio test for multiple coexisting, asynchronous ZEDs is non-trivial and left for future work.” The receiver is assumed to know tag periods in the multi-tag experiments, waiting times are configured to avoid overlap, and collision handling in denser deployments is left to future work. In this sense, the NPC functions as a practical synchronization primitive for asynchronous-but-structured coexistence rather than as a general solution to dense uncoordinated interference.

3. Structural relation to perfect binary codes

In classical binary coding theory, near-perfectness is often illuminated by its relation to 1-perfect codes rather than by an independently fixed definition. Avgustinovich and Krotov prove that every binary 1-error-correcting code can be embedded into a 1-perfect code of larger length (0804.0006). If bnb_n4 is a 1-code containing bnb_n5, then with bnb_n6 there exists a 1-perfect code bnb_n7 such that

bnb_n8

The construction is explicit and is based on switching disjoint linear components of the Hamming code

bnb_n9

This suggests that codes which are not themselves perfect can be studied as coordinate sections or switched descendants of perfect codes.

The embedding theorem is structural rather than length-optimal. The paper gives

Nb=25N_b=250

for the minimum universal embedding length Nb=25N_b=251. It also makes clear which parameters are preserved and which are not. The embedded section preserves the original code exactly, but the ambient code length changes to Nb=25N_b=252, the ambient minimum distance is always Nb=25N_b=253, and linearity is generally not preserved because the construction uses switching.

Perfect-code theory also shows that strong local regularity does not force the strongest global symmetry. For binary perfect codes, the strict chain

Nb=25N_b=254

holds, where Nb=25N_b=255 denotes linear codes, Nb=25N_b=256 propelinear codes, Nb=25N_b=257 transitive codes, and Nb=25N_b=258 homogeneous codes (Mogilnykh et al., 2014). The paper constructs homogeneous nontransitive perfect binary codes and proves that for every admissible length Nb=25N_b=259, there exist perfect binary homogeneous codes of length NPC=[0 1 1 0 1 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 0 0].\text{NPC} = [0 \ 1 \ 1 \ 0 \ 1 \ 1 \ 0 \ 1 \ 0 \ 1 \ 0 \ 1 \ 1 \ 1 \ 1 \ 1 \ 1 \ 0 \ 0 \ 0 \ 1 \ 1 \ 0 \ 0 \ 0].0 that are not transitive. A plausible implication is that “near-perfect” behavior, when defined through local packing or local neighborhood uniformity, need not imply maximal global automorphism structure.

Mixed-alphabet perfect-code theory gives a further rigidity result. For NPC=[0 1 1 0 1 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 0 0].\text{NPC} = [0 \ 1 \ 1 \ 0 \ 1 \ 1 \ 0 \ 1 \ 0 \ 1 \ 0 \ 1 \ 1 \ 1 \ 1 \ 1 \ 1 \ 0 \ 0 \ 0 \ 1 \ 1 \ 0 \ 0 \ 0].1-additive 1-perfect codes, there is exactly one nonlinear NPC=[0 1 1 0 1 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 0 0].\text{NPC} = [0 \ 1 \ 1 \ 0 \ 1 \ 1 \ 0 \ 1 \ 0 \ 1 \ 0 \ 1 \ 1 \ 1 \ 1 \ 1 \ 1 \ 0 \ 0 \ 0 \ 1 \ 1 \ 0 \ 0 \ 0].2-cyclic case, at binary length NPC=[0 1 1 0 1 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 0 0].\text{NPC} = [0 \ 1 \ 1 \ 0 \ 1 \ 1 \ 0 \ 1 \ 0 \ 1 \ 0 \ 1 \ 1 \ 1 \ 1 \ 1 \ 1 \ 0 \ 0 \ 0 \ 1 \ 1 \ 0 \ 0 \ 0].3, and no nontrivial extended NPC=[0 1 1 0 1 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 0 0].\text{NPC} = [0 \ 1 \ 1 \ 0 \ 1 \ 1 \ 0 \ 1 \ 0 \ 1 \ 0 \ 1 \ 1 \ 1 \ 1 \ 1 \ 1 \ 0 \ 0 \ 0 \ 1 \ 1 \ 0 \ 0 \ 0].4-additive 1-perfect code is cyclic (Borges et al., 2015). That result is about perfect rather than near-perfect codes, but it sharpens the structural boundary within which near-perfect relaxations might be studied.

4. Nearly perfect covering codes

A more standard coding-theoretic use of near-perfectness appears in the theory of binary covering codes. "On Nearly Perfect Covering Codes" defines a nearly perfect covering code as a binary covering code that meets the van Wee bound, the covering-side analogue of Johnson’s improvement of the sphere-packing bound (Boruchovsky et al., 2024). The paper concentrates on the only nontrivial parameter family currently known to attain this bound: NPC=[0 1 1 0 1 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 0 0].\text{NPC} = [0 \ 1 \ 1 \ 0 \ 1 \ 1 \ 0 \ 1 \ 0 \ 1 \ 0 \ 1 \ 1 \ 1 \ 1 \ 1 \ 1 \ 0 \ 0 \ 0 \ 1 \ 1 \ 0 \ 0 \ 0].5

For these radius-1 codes, the structure is unusually rigid. Every codeword has exactly one partner within distance NPC=[0 1 1 0 1 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 0 0].\text{NPC} = [0 \ 1 \ 1 \ 0 \ 1 \ 1 \ 0 \ 1 \ 0 \ 1 \ 0 \ 1 \ 1 \ 1 \ 1 \ 1 \ 1 \ 0 \ 0 \ 0 \ 1 \ 1 \ 0 \ 0 \ 0].6, and the codewords can be partitioned uniquely into

NPC=[0 1 1 0 1 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 0 0].\text{NPC} = [0 \ 1 \ 1 \ 0 \ 1 \ 1 \ 0 \ 1 \ 0 \ 1 \ 0 \ 1 \ 1 \ 1 \ 1 \ 1 \ 1 \ 0 \ 0 \ 0 \ 1 \ 1 \ 0 \ 0 \ 0].7

pairs NPC=[0 1 1 0 1 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 0 0].\text{NPC} = [0 \ 1 \ 1 \ 0 \ 1 \ 1 \ 0 \ 1 \ 0 \ 1 \ 0 \ 1 \ 1 \ 1 \ 1 \ 1 \ 1 \ 0 \ 0 \ 0 \ 1 \ 1 \ 0 \ 0 \ 0].8 such that NPC=[0 1 1 0 1 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 1 0 0 0].\text{NPC} = [0 \ 1 \ 1 \ 0 \ 1 \ 1 \ 0 \ 1 \ 0 \ 1 \ 0 \ 1 \ 1 \ 1 \ 1 \ 1 \ 1 \ 0 \ 0 \ 0 \ 1 \ 1 \ 0 \ 0 \ 0].9 or $\begin{split} e_0(n)&=\sum_{\tiny\begin{matrix}l; t(l)\in \ [t_n,t_n+T^b]\end{matrix} \frac{y(l)}{a_{0}(n)}\cdot \mathds{1}_{x_0(t(l))} - \frac{y(l)}{b_{0}(n)}\cdot \mathds{1}_{\bar{x_0}(t(l))} \ e_1(n)&=\sum_{\tiny\begin{matrix}l; t(l)\in \ [t_n,t_n+T^b]\end{matrix} \frac{y(l)}{a_{1}(n)}\cdot \mathds{1}_{x_1(t(l))} - \frac{y(l)}{b_{1}(n)}\cdot \mathds{1}_{\bar{x_1}(t(l))}. \end{split}$0, and all other codewords are at distance at least $\begin{split} e_0(n)&=\sum_{\tiny\begin{matrix}l; t(l)\in \ [t_n,t_n+T^b]\end{matrix} \frac{y(l)}{a_{0}(n)}\cdot \mathds{1}_{x_0(t(l))} - \frac{y(l)}{b_{0}(n)}\cdot \mathds{1}_{\bar{x_0}(t(l))} \ e_1(n)&=\sum_{\tiny\begin{matrix}l; t(l)\in \ [t_n,t_n+T^b]\end{matrix} \frac{y(l)}{a_{1}(n)}\cdot \mathds{1}_{x_1(t(l))} - \frac{y(l)}{b_{1}(n)}\cdot \mathds{1}_{\bar{x_1}(t(l))}. \end{split}$1 from both $\begin{split} e_0(n)&=\sum_{\tiny\begin{matrix}l; t(l)\in \ [t_n,t_n+T^b]\end{matrix} \frac{y(l)}{a_{0}(n)}\cdot \mathds{1}_{x_0(t(l))} - \frac{y(l)}{b_{0}(n)}\cdot \mathds{1}_{\bar{x_0}(t(l))} \ e_1(n)&=\sum_{\tiny\begin{matrix}l; t(l)\in \ [t_n,t_n+T^b]\end{matrix} \frac{y(l)}{a_{1}(n)}\cdot \mathds{1}_{x_1(t(l))} - \frac{y(l)}{b_{1}(n)}\cdot \mathds{1}_{\bar{x_1}(t(l))}. \end{split}$2 and $\begin{split} e_0(n)&=\sum_{\tiny\begin{matrix}l; t(l)\in \ [t_n,t_n+T^b]\end{matrix} \frac{y(l)}{a_{0}(n)}\cdot \mathds{1}_{x_0(t(l))} - \frac{y(l)}{b_{0}(n)}\cdot \mathds{1}_{\bar{x_0}(t(l))} \ e_1(n)&=\sum_{\tiny\begin{matrix}l; t(l)\in \ [t_n,t_n+T^b]\end{matrix} \frac{y(l)}{a_{1}(n)}\cdot \mathds{1}_{x_1(t(l))} - \frac{y(l)}{b_{1}(n)}\cdot \mathds{1}_{\bar{x_1}(t(l))}. \end{split}$3. This yields a trichotomy into three families.

Family Partner distance Status
Type A all pairs at distance $\begin{split} e_0(n)&=\sum_{\tiny\begin{matrix}l; t(l)\in \ [t_n,t_n+T^b]\end{matrix} \frac{y(l)}{a_{0}(n)}\cdot \mathds{1}_{x_0(t(l))} - \frac{y(l)}{b_{0}(n)}\cdot \mathds{1}_{\bar{x_0}(t(l))} \ e_1(n)&=\sum_{\tiny\begin{matrix}l; t(l)\in \ [t_n,t_n+T^b]\end{matrix} \frac{y(l)}{a_{1}(n)}\cdot \mathds{1}_{x_1(t(l))} - \frac{y(l)}{b_{1}(n)}\cdot \mathds{1}_{\bar{x_1}(t(l))}. \end{split}$4 completely characterized
Type B all pairs at distance $\begin{split} e_0(n)&=\sum_{\tiny\begin{matrix}l; t(l)\in \ [t_n,t_n+T^b]\end{matrix} \frac{y(l)}{a_{0}(n)}\cdot \mathds{1}_{x_0(t(l))} - \frac{y(l)}{b_{0}(n)}\cdot \mathds{1}_{\bar{x_0}(t(l))} \ e_1(n)&=\sum_{\tiny\begin{matrix}l; t(l)\in \ [t_n,t_n+T^b]\end{matrix} \frac{y(l)}{a_{1}(n)}\cdot \mathds{1}_{x_1(t(l))} - \frac{y(l)}{b_{1}(n)}\cdot \mathds{1}_{\bar{x_1}(t(l))}. \end{split}$5 partially characterized
Type C mixed distances $\begin{split} e_0(n)&=\sum_{\tiny\begin{matrix}l; t(l)\in \ [t_n,t_n+T^b]\end{matrix} \frac{y(l)}{a_{0}(n)}\cdot \mathds{1}_{x_0(t(l))} - \frac{y(l)}{b_{0}(n)}\cdot \mathds{1}_{\bar{x_0}(t(l))} \ e_1(n)&=\sum_{\tiny\begin{matrix}l; t(l)\in \ [t_n,t_n+T^b]\end{matrix} \frac{y(l)}{a_{1}(n)}\cdot \mathds{1}_{x_1(t(l))} - \frac{y(l)}{b_{1}(n)}\cdot \mathds{1}_{\bar{x_1}(t(l))}. \end{split}$6 and $\begin{split} e_0(n)&=\sum_{\tiny\begin{matrix}l; t(l)\in \ [t_n,t_n+T^b]\end{matrix} \frac{y(l)}{a_{0}(n)}\cdot \mathds{1}_{x_0(t(l))} - \frac{y(l)}{b_{0}(n)}\cdot \mathds{1}_{\bar{x_0}(t(l))} \ e_1(n)&=\sum_{\tiny\begin{matrix}l; t(l)\in \ [t_n,t_n+T^b]\end{matrix} \frac{y(l)}{a_{1}(n)}\cdot \mathds{1}_{x_1(t(l))} - \frac{y(l)}{b_{1}(n)}\cdot \mathds{1}_{\bar{x_1}(t(l))}. \end{split}$7 not fully classified

Type A is the cleanest case. Any $\begin{split} e_0(n)&=\sum_{\tiny\begin{matrix}l; t(l)\in \ [t_n,t_n+T^b]\end{matrix} \frac{y(l)}{a_{0}(n)}\cdot \mathds{1}_{x_0(t(l))} - \frac{y(l)}{b_{0}(n)}\cdot \mathds{1}_{\bar{x_0}(t(l))} \ e_1(n)&=\sum_{\tiny\begin{matrix}l; t(l)\in \ [t_n,t_n+T^b]\end{matrix} \frac{y(l)}{a_{1}(n)}\cdot \mathds{1}_{x_1(t(l))} - \frac{y(l)}{b_{1}(n)}\cdot \mathds{1}_{\bar{x_1}(t(l))}. \end{split}$8-nearly perfect code of Type A is exactly the union of an extended Hamming code of length $\begin{split} e_0(n)&=\sum_{\tiny\begin{matrix}l; t(l)\in \ [t_n,t_n+T^b]\end{matrix} \frac{y(l)}{a_{0}(n)}\cdot \mathds{1}_{x_0(t(l))} - \frac{y(l)}{b_{0}(n)}\cdot \mathds{1}_{\bar{x_0}(t(l))} \ e_1(n)&=\sum_{\tiny\begin{matrix}l; t(l)\in \ [t_n,t_n+T^b]\end{matrix} \frac{y(l)}{a_{1}(n)}\cdot \mathds{1}_{x_1(t(l))} - \frac{y(l)}{b_{1}(n)}\cdot \mathds{1}_{\bar{x_1}(t(l))}. \end{split}$9 and an odd translate of an extended Hamming code, and conversely every such union is a Type A nearly perfect covering code. Type B has no adjacent codewords, every partner pair lies at distance ei(n)=Puγ+αi(n),ej(n)=αj(n),e_i(n) = \sqrt{P_u} \gamma + \alpha_i(n), \quad e_j(n) = \alpha_j(n),0, and all Type B codes have the same weight distribution even though the family is not completely characterized. Type C contains both distance-1 and distance-2 partner pairs, and the paper explicitly leaves characterization of its weight distributions as an open problem.

Several global properties hold for every ei(n)=Puγ+αi(n),ej(n)=αj(n),e_i(n) = \sqrt{P_u} \gamma + \alpha_i(n), \quad e_j(n) = \alpha_j(n),1-NPC in this covering sense. The number of even-weight codewords equals the number of odd-weight codewords, and in each coordinate exactly half of the codewords contain ei(n)=Puγ+αi(n),ej(n)=αj(n),e_i(n) = \sqrt{P_u} \gamma + \alpha_i(n), \quad e_j(n) = \alpha_j(n),2 and half contain ei(n)=Puγ+αi(n),ej(n)=αj(n),e_i(n) = \sqrt{P_u} \gamma + \alpha_i(n), \quad e_j(n) = \alpha_j(n),3. The construction theory is also uniform: if ei(n)=Puγ+αi(n),ej(n)=αj(n),e_i(n) = \sqrt{P_u} \gamma + \alpha_i(n), \quad e_j(n) = \alpha_j(n),4 are perfect binary codes of length ei(n)=Puγ+αi(n),ej(n)=αj(n),e_i(n) = \sqrt{P_u} \gamma + \alpha_i(n), \quad e_j(n) = \alpha_j(n),5 and

ei(n)=Puγ+αi(n),ej(n)=αj(n),e_i(n) = \sqrt{P_u} \gamma + \alpha_i(n), \quad e_j(n) = \alpha_j(n),6

then ei(n)=Puγ+αi(n),ej(n)=αj(n),e_i(n) = \sqrt{P_u} \gamma + \alpha_i(n), \quad e_j(n) = \alpha_j(n),7 is a ei(n)=Puγ+αi(n),ej(n)=αj(n),e_i(n) = \sqrt{P_u} \gamma + \alpha_i(n), \quad e_j(n) = \alpha_j(n),8-nearly perfect covering code. Choosing ei(n)=Puγ+αi(n),ej(n)=αj(n),e_i(n) = \sqrt{P_u} \gamma + \alpha_i(n), \quad e_j(n) = \alpha_j(n),9 yields Type A, choosing αi(n)N(0,σ22(1ai(n)+1bi(n))).\alpha_i(n) \sim \mathcal{N}\left(0, \frac{\sigma^2}{2} \left( \frac{1}{a_i(n)} + \frac{1}{b_i(n)} \right) \right).0 as a translate of αi(n)N(0,σ22(1ai(n)+1bi(n))).\alpha_i(n) \sim \mathcal{N}\left(0, \frac{\sigma^2}{2} \left( \frac{1}{a_i(n)} + \frac{1}{b_i(n)} \right) \right).1 yields Type B, and allowing αi(n)N(0,σ22(1ai(n)+1bi(n))).\alpha_i(n) \sim \mathcal{N}\left(0, \frac{\sigma^2}{2} \left( \frac{1}{a_i(n)} + \frac{1}{b_i(n)} \right) \right).2 produces Type C. In this literature, near-perfectness is therefore not merely “close to perfect” in an informal sense; it is the exact attainment of a refined covering lower bound.

5. Quantum notions of perfection and near-perfectness

Quantum coding theory fixes exact perfection more rigidly than classical “near-perfect” terminology might suggest. "No More Perfect Codes: Classification of Perfect Quantum Codes" defines a pure quantum code as perfect when it satisfies the quantum Hamming bound with equality (0907.0049): αi(n)N(0,σ22(1ai(n)+1bi(n))).\alpha_i(n) \sim \mathcal{N}\left(0, \frac{\sigma^2}{2} \left( \frac{1}{a_i(n)} + \frac{1}{b_i(n)} \right) \right).3 The paper proves that the only nontrivial perfect quantum codes are those with parameters

αi(n)N(0,σ22(1ai(n)+1bi(n))).\alpha_i(n) \sim \mathcal{N}\left(0, \frac{\sigma^2}{2} \left( \frac{1}{a_i(n)} + \frac{1}{b_i(n)} \right) \right).4

Equivalently, every nontrivial perfect quantum code has distance αi(n)N(0,σ22(1ai(n)+1bi(n))).\alpha_i(n) \sim \mathcal{N}\left(0, \frac{\sigma^2}{2} \left( \frac{1}{a_i(n)} + \frac{1}{b_i(n)} \right) \right).5. This sharply restricts the exact benchmark. A plausible implication is that any quantum code with αi(n)N(0,σ22(1ai(n)+1bi(n))).\alpha_i(n) \sim \mathcal{N}\left(0, \frac{\sigma^2}{2} \left( \frac{1}{a_i(n)} + \frac{1}{b_i(n)} \right) \right).6 can only ever be near-perfect, never perfect, in this sense.

Approximate quantum error correction gives a more operational analogue. "The Near-optimal Performance of Quantum Error Correction Codes" does not use the phrase “Near-Perfect Code (NPC)” explicitly, but it introduces a closed-form near-optimal channel fidelity for arbitrary codes and noise (Zheng et al., 2024): αi(n)N(0,σ22(1ai(n)+1bi(n))).\alpha_i(n) \sim \mathcal{N}\left(0, \frac{\sigma^2}{2} \left( \frac{1}{a_i(n)} + \frac{1}{b_i(n)} \right) \right).7 where αi(n)N(0,σ22(1ai(n)+1bi(n))).\alpha_i(n) \sim \mathcal{N}\left(0, \frac{\sigma^2}{2} \left( \frac{1}{a_i(n)} + \frac{1}{b_i(n)} \right) \right).8 is the QEC matrix

αi(n)N(0,σ22(1ai(n)+1bi(n))).\alpha_i(n) \sim \mathcal{N}\left(0, \frac{\sigma^2}{2} \left( \frac{1}{a_i(n)} + \frac{1}{b_i(n)} \right) \right).9

This metric obeys the two-sided bound

η~(n)=ei(n)2ej(n)2ϵ(n),\tilde{\eta}(n) = |e_i(n)|^2 - |e_j(n)|^2 - \epsilon(n),0

The paper’s closest operational analogue of an NPC is therefore a code for which η~(n)=ei(n)2ej(n)2ϵ(n),\tilde{\eta}(n) = |e_i(n)|^2 - |e_j(n)|^2 - \epsilon(n),1 is close to η~(n)=ei(n)2ej(n)2ϵ(n),\tilde{\eta}(n) = |e_i(n)|^2 - |e_j(n)|^2 - \epsilon(n),2, since that certifies that the true optimal fidelity η~(n)=ei(n)2ej(n)2ϵ(n),\tilde{\eta}(n) = |e_i(n)|^2 - |e_j(n)|^2 - \epsilon(n),3 is also close to η~(n)=ei(n)2ej(n)2ϵ(n),\tilde{\eta}(n) = |e_i(n)|^2 - |e_j(n)|^2 - \epsilon(n),4.

The same paper also derives perturbative structure in terms of deviation from exact Knill–Laflamme form. Writing

η~(n)=ei(n)2ej(n)2ϵ(n),\tilde{\eta}(n) = |e_i(n)|^2 - |e_j(n)|^2 - \epsilon(n),5

the near-optimal infidelity satisfies

η~(n)=ei(n)2ej(n)2ϵ(n),\tilde{\eta}(n) = |e_i(n)|^2 - |e_j(n)|^2 - \epsilon(n),6

This makes near-perfectness quantitative rather than purely taxonomic. The paper further gives asymptotic examples: for the thermodynamic code under η~(n)=ei(n)2ej(n)2ϵ(n),\tilde{\eta}(n) = |e_i(n)|^2 - |e_j(n)|^2 - \epsilon(n),7 erasures,

η~(n)=ei(n)2ej(n)2ϵ(n),\tilde{\eta}(n) = |e_i(n)|^2 - |e_j(n)|^2 - \epsilon(n),8

and for the GKP code under excitation loss,

η~(n)=ei(n)2ej(n)2ϵ(n),\tilde{\eta}(n) = |e_i(n)|^2 - |e_j(n)|^2 - \epsilon(n),9

In this setting, near-perfectness is best read as near-unit recovery performance rather than as membership in a standard named family.

6. Other uses of the acronym and persistent ambiguity

The acronym NPC is also established outside coding theory proper. In deep neural network testing, "NPC: Neuron Path Coverage via Characterizing Decision Logic of Deep Neural Networks" defines NPC as Neuron Path Coverage, a path-based white-box coverage family derived from Layer-Wise Relevance Propagation and a decision graph of critical neurons (Xie et al., 2022). There, NPC has nothing to do with error-correcting codes; it refers to test adequacy criteria for DNN decision logic.

In Diophantine geometry, NPC denotes a nearly-perfect cuboid: a rectangular cuboid for which exactly one of the seven quantities ϵ(n)=σ2(1ai(n)+1bi(n)1aj(n)1bj(n)).\epsilon(n) = \sigma^2 \left( \frac{1}{a_i(n)} + \frac{1}{b_i(n)} - \frac{1}{a_j(n)} - \frac{1}{b_j(n)} \right).0 is irrational (Meskhishvili, 2015). A related paper gives five complete parametrizations of such NPCs via pairs of rational points on the congruent number curve

ϵ(n)=σ2(1ai(n)+1bi(n)1aj(n)1bj(n)).\epsilon(n) = \sigma^2 \left( \frac{1}{a_i(n)} + \frac{1}{b_i(n)} - \frac{1}{a_j(n)} - \frac{1}{b_j(n)} \right).1

and isolates perfect-cuboid existence as the rationality of one remaining face diagonal (Meskhishvili, 2012). These uses are acronym collisions rather than extensions of coding theory.

Because the term is overloaded, disambiguation is essential. In the ambient-backscatter paper, NPC means one exact 25-bit synchronization sequence and a detector design choice (Yang et al., 3 Oct 2025). In covering-code theory, it means attainment of the van Wee bound (Boruchovsky et al., 2024). In perfect-code structure theory, it is best treated as a near-perfectness relation to perfect ambient geometry (0804.0006). In quantum coding, it denotes proximity to exact perfect correction only by inference, not by settled nomenclature (Zheng et al., 2024). Across these literatures, the stable common denominator is not a single object but a methodological pattern: near-perfectness is defined by closeness to an exact perfection criterion, and the criterion itself changes with the domain.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Near-Perfect Code (NPC).