HyperBlossom: Quantum LDPC Decoder
- HyperBlossom is a decoder that formulates quantum LDPC decoding as a minimum-weight parity factor problem on hypergraphs, converting physical errors to hyperedges and stabilizer checks to vertices.
- It unifies established decoders such as MWPM, Union-Find, and Hypergraph Union-Find via a primal-dual linear programming model that yields certifiable proximity bounds.
- Its Hyperion implementation efficiently manages cluster-based decoding in various noise regimes, achieving significantly lower logical error rates in practical quantum error correction tests.
HyperBlossom is a certifying, blossom-style decoder for quantum Low-Density Parity-Check codes that formulates Most-Likely-Error decoding as a Minimum-Weight Parity Factor problem on a decoding hypergraph. In this formulation, independent physical error sources become hyperedges, stabilizer checks become vertices, and decoding is cast as a parity-constrained weighted optimization problem. The framework generalizes Edmonds’ blossom algorithm from graphs to hypergraphs through a primal-dual linear-programming model with certifiable proximity bounds, unifies graph-based decoders such as Minimum-Weight Perfect Matching, Union-Find, and Hypergraph Union-Find, and is implemented in the Hyperion software (Wu et al., 7 Aug 2025). In the supplied literature, the same label also appears in a separate combinatorial setting as an overview of blossoming bijections for hypermaps via bipartite incidence maps on arbitrary compact surfaces (Dołęga et al., 2020).
1. Quantum decoding formulation
In the qLDPC setting of HyperBlossom, the decoding object is a hypergraph whose vertices are stabilizer checks and whose hyperedges are independent physical error sources. If an error source occurs alone, it induces a subset of defect vertices. A candidate error pattern is a subset of hyperedges , equivalently a binary vector with iff . The syndrome-defect map is
Given a measured syndrome , a parity factor is a subset such that (Wu et al., 7 Aug 2025).
Under independent errors, including code-capacity and circuit-level settings after Pauli twirling, the likelihood factorization reduces maximum-likelihood inference to a weighted minimization. If edge 0 occurs with probability 1, then
2
so maximizing likelihood is equivalent to minimizing
3
If some 4, the edge is flipped to a conjugate model with nonnegative weight 5 (Wu et al., 7 Aug 2025).
This yields the Minimum-Weight Parity Factor formulation:
6
subject to
7
8
9
The graph-theoretic significance is that MWPF generalizes matchings and perfect matchings to hypergraphs: rather than imposing degree-0 or degree-1 conditions as in graphs, it imposes parity constraints at each stabilizer node (Wu et al., 7 Aug 2025).
Degeneracy is intrinsic. Logical operators are parity factors 2 with 3; if 4 is a parity factor, then 5 is another valid parity factor. In parity-matrix terms, this is nonzero nullity of the incidence matrix, producing cosets of solutions rather than a unique decoder output.
2. Primal-dual hyperblossoms and certification
Rather than solving the parity-constrained ILP directly, HyperBlossom introduces an equivalent formulation based on invalid subgraphs. A subgraph 6 is invalid for the local syndrome 7 if every 8 fails 9. If 0 denotes the hair of 1, the equivalent ILP is
2
subject to
3
4
where 5 is the set of all invalid subgraphs. The interpretation is that every invalid subgraph must be repaired by at least one external incident edge. The paper proves 6 (Wu et al., 7 Aug 2025).
Relaxing integrality gives the LP, whose dual introduces variables 7 for invalid subgraphs:
8
subject to
9
An edge is tight when the inequality saturates,
0
and a hyperblossom is any invalid subgraph 1 with 2. This is the hypergraph analogue of a blossom in Edmonds’ algorithm (Wu et al., 7 Aug 2025).
The primal-dual gap provides the certification mechanism. For any feasible parity factor 3 and feasible dual 4,
5
Hence the gap
6
is a certifiable proximity bound. If the gap is zero, the candidate parity factor is optimal. HyperBlossom therefore differs from purely heuristic decoders by furnishing per-instance certificates whenever primal and dual coincide, and by supplying globally valid certification in regimes where 7 (Wu et al., 7 Aug 2025).
Dual growth proceeds through feasible directions 8 and relaxers. A relaxer strictly relaxes a non-empty subset of tight edges while not decreasing the dual objective. The framework proves that if the current dual is suboptimal, then either a relaxer exists or a trivial direction exists that grows an invalid subgraph disjoint from the current tight set. Batched composition of relaxers and a trivial direction then yields a useful dual step without introducing unnecessary hyperblossoms.
3. Unification of MWPM, UF, HUF, and optimality regimes
A central feature of HyperBlossom is that it subsumes several established decoders inside one formulation. When the decoding hypergraph is a simple graph with 9, MWPF reduces to MWPM on the syndrome graph. In that regime, HyperBlossom uses a Blossom relaxer finder built from a bijection 0 between blossom dual variables on the syndrome graph and dual variables on invalid subgraphs of the decoding graph, preserving both the dual objective and tightness along minimum paths. The resulting dual updates are step-by-step equivalent to MWPM, and the decoder inherits MWPM optimality on graphs (Wu et al., 7 Aug 2025).
The framework also contains Union-Find and Hypergraph Union-Find. If the UnionFind relaxer finder always returns Nil, HyperBlossom reduces to weighted UF: invalid clusters grow uniformly by a trivial direction until tight edges form and clusters merge. Setting the per-cluster hyperblossom cap to 1 yields 2, which is exactly HUF on hypergraphs (Wu et al., 7 Aug 2025).
The relaxer-finder layer determines how much of the primal-dual structure is exploited. The general-purpose SingleHair relaxer finder constructs parity and hair matrices over 3, detects Odd rows, and forms relaxers of the form 4. It is polynomial-time and often accurate, but it can be suboptimal on some graphs and hypergraphs. By contrast, the Nullity5 relaxer finder is specialized and optimal whenever the cluster incidence matrix has nullity 6 or 7; in that case it explicitly builds an optimal dual 8 and sets 9 (Wu et al., 7 Aug 2025).
The optimality landscape is therefore structured rather than universal. The paper identifies a hereditary condition, 0, under which HyperBlossom is certifying at the global optimum. Two classes are proved to satisfy it: simple graphs, and hypergraphs with nullity at most 1. This implies exact optimality on graphlike decoding problems and on biased-noise regimes that induce nullity2 clusters, but it does not remove the NP-hardness of MWPF on general hypergraphs.
4. Clusterwise algorithm and Hyperion implementation
HyperBlossom operates on disjoint clusters 3 formed from vertices, tight edges, and hyperblossoms. A cluster is locally optimal if there exists a parity factor 4 with 5 and
6
If every cluster is locally optimal, the union of cluster solutions yields a globally optimal MWPF solution because the clusters are disjoint in vertices, tight edges, and hyperblossoms (Wu et al., 7 Aug 2025).
The algorithm alternates a primal phase and a dual phase. Initialization sets 7, starts from singleton defect clusters, declares zero-weight edges tight, and merges initial clusters by tight edges. In the primal phase, each cluster is tested for local optimality. If a cluster is not locally optimal, the algorithm invokes BatchedRelaxing to collect relaxers, removes the relaxed tight edges, and, if the residual cluster remains invalid, grows an invalid subgraph by a trivial direction. In the dual phase, the cluster history of positive dual subgraphs is updated, a partial dual LP is solved over that history, tight edges are recomputed, and clusters are merged by tight edges and by intersecting hyperblossoms (Wu et al., 7 Aug 2025).
The worst-case complexity remains exponential because the set of invalid subgraphs 8 is exponential. With relaxer-finder cost 9, the cost per useful direction is 0, the partial LP solve is bounded by 1 by interior-point bounds, and the overall bound is
2
The practical claim is more favorable: in low-error regimes 3, clustering keeps most components small and produces almost-linear average runtime scaling in the number of defects 4 (Wu et al., 7 Aug 2025).
Hyperion is the software realization of the framework. It is implemented in Rust, supports floating-point and rational dual and weight types, uses HiGHS for floating-point LP solving and SLP for rational arithmetic, exposes a Python interface, and includes a 3D visualization tool that renders hypergraphs and dual variables as colored segments over hyperedges. It integrates with Stim through Detector Error Models and also accepts Clifford circuits to exploit circuit-level information such as heralded erasures (Wu et al., 7 Aug 2025).
Hyperion uses a two-stage decoding strategy. A search stage grows all invalid clusters simultaneously through a priority queue to ensure feasibility of a parity factor. A refine stage then applies relaxer finders clusterwise. Cluster priority is
5
which favors small clusters with large primal-dual gaps. To control latency, Hyperion enforces a per-cluster hyperblossom cap 6, producing the decoder family 7. The special case 8 recovers HUF, while larger 9 trades runtime for accuracy; as 0, appropriate relaxer finders recover optimality in regimes where 1 (Wu et al., 7 Aug 2025).
5. Empirical behavior, operating regimes, and limits
The empirical profile reported for Hyperion is heterogeneous across code families and noise models. On the surface code under code-capacity bit-flip noise, MWPF matches MWPM accuracy because the decoding problem is a simple graph. Under biased-2 noise, the induced hypergraph has nullity at most 3, so 4 is provably optimal and reaches the optimal curve, with orders-of-magnitude lower logical error rates than tailored MWPM. Under depolarizing and circuit-level noise, MWPF exceeds both HUF and MWPM accuracy. The headline result is a 5 lower logical error rate than MWPM on the distance-11 surface code under code-capacity noise (Wu et al., 7 Aug 2025).
For the color code, the same pattern holds under depolarizing and circuit-level noise: MWPF outperforms Chromobius, a specialized color-code MWPM decoder, and achieves the same effective distance in circuit-level tests. Runtime scaling remains almost-linear on average up to distance 6 for the color code and up to distance 7 for the surface code in the reported experiments (Wu et al., 7 Aug 2025).
For bivariate bicycle codes, the comparison is more nuanced. Against a