Papers
Topics
Authors
Recent
Search
2000 character limit reached

Haar Random Quantum Codes

Updated 15 July 2026
  • Haar random codes are quantum codes defined by selecting a K-dimensional subspace uniformly from the Grassmannian, ensuring an unbiased encoding in Hilbert space.
  • They achieve approximate quantum error correction by nearly saturating the quantum Hamming bound, with disturbance scaling as O(√(Km/N)) under prescribed unitary errors.
  • The framework employs Haar-random isometries, Gaussian vector formulations, and structured surrogates to support proofs of decodability and potential experimental implementations.

Haar random codes are quantum codes whose codespace is chosen uniformly at random from the Grassmannian of KK-dimensional subspaces of CN\mathbb C^N, equivalently by choosing a Haar-random isometry V:CK→CNV:\mathbb C^K\to\mathbb C^N. In quantum Shannon theory, random subspaces of this type already appeared in proofs that the coherent information is an achievable rate, although the Haar-random subspace was then “distorted” by the sender’s input density operator ρ\rho through ρ\sqrt{\rho} (0712.0975). In current quantum error-correction theory, Haar random codes are studied directly as maximally unstructured code families, and recent work shows that, with high probability, they are excellent approximate quantum error-correcting codes: for a prescribed family of mm Pauli or more general unitary errors, they approximately attain the quantum Hamming bound whenever the packing condition mK≪NmK\ll N holds (Ma et al., 8 Oct 2025).

1. Definition and ensemble structure

A quantum code is specified by an isometric encoder

VEnc:CK→CN,V_{\mathrm{Enc}}:\mathbb C^K\to\mathbb C^N,

with codespace

C=Im(VEnc)⊆CN.C=\mathrm{Im}(V_{\mathrm{Enc}})\subseteq \mathbb C^N.

Here NN is the dimension of the ambient Hilbert space and CN\mathbb C^N0 is the logical dimension. When CN\mathbb C^N1 and CN\mathbb C^N2, the code may be viewed as encoding CN\mathbb C^N3 qubits into CN\mathbb C^N4 qubits (Ma et al., 8 Oct 2025).

A Haar random code is obtained by choosing the CN\mathbb C^N5-dimensional subspace uniformly at random from the Grassmannian of CN\mathbb C^N6-dimensional subspaces of CN\mathbb C^N7, or equivalently by choosing a Haar-random isometry. Concretely, if

CN\mathbb C^N8

is Haar-random in CN\mathbb C^N9, then

V:CK→CNV:\mathbb C^K\to\mathbb C^N0

is a Haar-random isometry and

V:CK→CNV:\mathbb C^K\to\mathbb C^N1

is the corresponding random codespace. In this formulation no direction in Hilbert space is preferred (Ma et al., 8 Oct 2025).

An older but structurally important formulation samples the code from Gaussian vectors. If V:CK→CNV:\mathbb C^K\to\mathbb C^N2 are i.i.d. complex Gaussian vectors, then their span is Haar-distributed, and the code vectors may be pushed through V:CK→CNV:\mathbb C^K\to\mathbb C^N3 to form

V:CK→CNV:\mathbb C^K\to\mathbb C^N4

followed by orthonormalization via V:CK→CNV:\mathbb C^K\to\mathbb C^N5, where V:CK→CNV:\mathbb C^K\to\mathbb C^N6. This produces a V:CK→CNV:\mathbb C^K\to\mathbb C^N7-adapted random code ensemble whose underlying subspace is Haar-random but whose final measure is distorted by V:CK→CNV:\mathbb C^K\to\mathbb C^N8 (0712.0975).

2. Approximate quantum error correction and the quantum Hamming bound

The recent theory of Haar random codes is formulated for a unitary error set

V:CK→CNV:\mathbb C^K\to\mathbb C^N9

where each ρ\rho0 is unitary and the family is Hilbert-Schmidt orthogonal: ρ\rho1 The code is required to correct the entire linear span

ρ\rho2

so any noise channel whose Kraus operators lie in ρ\rho3 is included (Ma et al., 8 Oct 2025).

Approximate correctability is measured in diamond norm. The code corrects ρ\rho4 with disturbance ρ\rho5 if there exists a decoding channel ρ\rho6 such that

ρ\rho7

for every ρ\rho8 with Kraus operators in ρ\rho9 (Ma et al., 8 Oct 2025).

The organizing notion is approximate nondegeneracy. For a basis ρ\sqrt{\rho}0 of the codespace, exact nondegeneracy means that the ρ\sqrt{\rho}1 vectors

ρ\sqrt{\rho}2

are mutually orthogonal, which immediately forces ρ\sqrt{\rho}3. The approximate version is stronger than pairwise small overlaps: it requires these vectors to form a ρ\sqrt{\rho}4-approximately orthonormal basis, equivalently that the synthesis map be a ρ\sqrt{\rho}5-approximate isometry. In matrix form,

ρ\sqrt{\rho}6

must be a ρ\sqrt{\rho}7-approximate isometry. This is the paper’s approximate Knill-Laflamme condition (Ma et al., 8 Oct 2025).

The first theorem states that approximate nondegeneracy already implies approximate quantum error correction: if ρ\sqrt{\rho}8 is a ρ\sqrt{\rho}9-approximate nondegenerate code with respect to mm0, then it corrects mm1 with disturbance mm2. The second theorem is the Haar-random statement: there is a universal constant mm3 such that if

mm4

then with probability at least

mm5

a Haar-random isometry mm6 is a mm7-approximate nondegenerate code for mm8, and hence an AQEC for mm9 (Ma et al., 8 Oct 2025).

When mK≪NmK\ll N0, the disturbance simplifies to

mK≪NmK\ll N1

Thus whenever

mK≪NmK\ll N2

Haar random codes have small disturbance. This is the sense in which they approximately attain the quantum Hamming bound. For exact nondegenerate codes the bound is the packing inequality mK≪NmK\ll N3; Haar random codes realize the same threshold up to vanishing error, but only in the approximate sense (Ma et al., 8 Oct 2025).

3. Qudit parameters, thresholds, and coding transitions

For mK≪NmK\ll N4 and mK≪NmK\ll N5, a mK≪NmK\ll N6-dimensional subspace of mK≪NmK\ll N7 encodes mK≪NmK\ll N8 qudits into mK≪NmK\ll N9 qudits. If one wishes to correct all weight-VEnc:CK→CN,V_{\mathrm{Enc}}:\mathbb C^K\to\mathbb C^N,0 Pauli errors, the number of relevant Pauli operators is

VEnc:CK→CN,V_{\mathrm{Enc}}:\mathbb C^K\to\mathbb C^N,1

and the exact nondegenerate Hamming bound is

VEnc:CK→CN,V_{\mathrm{Enc}}:\mathbb C^K\to\mathbb C^N,2

The Haar-random theorem implies approximate correction whenever

VEnc:CK→CN,V_{\mathrm{Enc}}:\mathbb C^K\to\mathbb C^N,3

equivalently VEnc:CK→CN,V_{\mathrm{Enc}}:\mathbb C^K\to\mathbb C^N,4, with disturbance

VEnc:CK→CN,V_{\mathrm{Enc}}:\mathbb C^K\to\mathbb C^N,5

when the logarithmic correction is negligible (Ma et al., 8 Oct 2025).

This yields explicit asymptotic corollaries. Under VEnc:CK→CN,V_{\mathrm{Enc}}:\mathbb C^K\to\mathbb C^N,6, with high probability Haar random codes correct erasures on up to

VEnc:CK→CN,V_{\mathrm{Enc}}:\mathbb C^K\to\mathbb C^N,7

with disturbance VEnc:CK→CN,V_{\mathrm{Enc}}:\mathbb C^K\to\mathbb C^N,8, and correct general VEnc:CK→CN,V_{\mathrm{Enc}}:\mathbb C^K\to\mathbb C^N,9-local errors up to

C=Im(VEnc)⊆CN.C=\mathrm{Im}(V_{\mathrm{Enc}})\subseteq \mathbb C^N.0

with disturbance C=Im(VEnc)⊆CN.C=\mathrm{Im}(V_{\mathrm{Enc}})\subseteq \mathbb C^N.1. The paper frames the second statement as essentially achieving twice the exact quantum Singleton bound for general local errors (Ma et al., 8 Oct 2025).

A complementary analysis studies Haar-random quantum codes under iid single-qudit depolarizing noise through the spectrum of the noisy encoded density matrix. In that setting, the noisy spectrum develops well-separated bands labeled by error weight; low-weight bands remain isolated and correctable, while high-weight bands merge as the error rate increases. The coding transition occurs when the bands associated with typical errors cease to fit into mutually distinguishable subspaces, and the threshold saturates the hashing bound

C=Im(VEnc)⊆CN.C=\mathrm{Im}(V_{\mathrm{Enc}})\subseteq \mathbb C^N.2

so Haar-random codes have the same asymptotic threshold as random stabilizer codes. For zero-rate qubit codes this gives C=Im(VEnc)⊆CN.C=\mathrm{Im}(V_{\mathrm{Enc}})\subseteq \mathbb C^N.3. Above the hashing threshold, typical errors are uncorrectable, but postselected error correction remains possible up to the higher detection threshold

C=Im(VEnc)⊆CN.C=\mathrm{Im}(V_{\mathrm{Enc}})\subseteq \mathbb C^N.4

which is C=Im(VEnc)⊆CN.C=\mathrm{Im}(V_{\mathrm{Enc}})\subseteq \mathbb C^N.5 for qubits (Sommers et al., 8 Oct 2025).

That spectral viewpoint also yields Rényi thresholds

C=Im(VEnc)⊆CN.C=\mathrm{Im}(V_{\mathrm{Enc}})\subseteq \mathbb C^N.6

with low-weight bands dominating postselected states below the corresponding threshold and a reservoir of high-weight errors taking over above it. A plausible implication is that Haar-random codes furnish a particularly clean laboratory for separating ordinary decoding thresholds from detection and postselection thresholds, because the random-subspace geometry suppresses algebraic code-specific effects (Sommers et al., 8 Oct 2025).

4. Proof architecture and geometric mechanism

The proof that approximate nondegeneracy implies decodability is constructive at the operator level. If the shifted codewords C=Im(VEnc)⊆CN.C=\mathrm{Im}(V_{\mathrm{Enc}})\subseteq \mathbb C^N.7 were exactly orthonormal, the decoder would be the partial isometry

C=Im(VEnc)⊆CN.C=\mathrm{Im}(V_{\mathrm{Enc}})\subseteq \mathbb C^N.8

In the approximate case one first considers

C=Im(VEnc)⊆CN.C=\mathrm{Im}(V_{\mathrm{Enc}})\subseteq \mathbb C^N.9

then rounds its singular values to NN0 in the SVD to obtain a true partial isometry NN1 satisfying

NN2

This yields the diamond-norm recovery guarantee uniformly over all channels supported on NN3 (Ma et al., 8 Oct 2025).

At the level of error-correction conditions, the key object is

NN4

Showing that NN5 is an approximate isometry means

NN6

hence blockwise

NN7

or equivalently

NN8

on the codespace. For a Hilbert-Schmidt orthogonal unitary error set, the target matrix is diagonal (Ma et al., 8 Oct 2025).

The probabilistic core replaces the Haar isometry by a Gaussian matrix NN9 with i.i.d. complex Gaussians of variance CN\mathbb C^N00, and studies

CN\mathbb C^N01

Although CN\mathbb C^N02 has highly correlated entries, the proof uses a recent matrix concentration theorem of Bandeira, Boedihardjo, and van Handel. For this CN\mathbb C^N03,

CN\mathbb C^N04

These parameters imply that CN\mathbb C^N05 is an approximate isometry with the optimal CN\mathbb C^N06 scaling. The final step is to pass from CN\mathbb C^N07 to the Haar-random isometry

CN\mathbb C^N08

using the Ginibre SVD decomposition CN\mathbb C^N09 and the fact that CN\mathbb C^N10 is Haar-random (Ma et al., 8 Oct 2025).

The resulting geometric picture is simple. A Haar-random code scatters its basis vectors uniformly through CN\mathbb C^N11. After applying a fixed family of unitary errors, the CN\mathbb C^N12 shifted vectors still behave almost orthogonally until dimensional packing fails. The only fundamental obstruction is that once CN\mathbb C^N13 approaches CN\mathbb C^N14, approximate orthogonality must break down (Ma et al., 8 Oct 2025).

5. Haar-like encoders, structured variants, and analytic infrastructure

The full Haar ensemble is often too expensive to realize directly, so several adjacent literatures study surrogates for Haar-random encoders. One route is to generate exact Haar-random unitaries in hardware. In linear optics, “direct dialling” gives an operationally simple method that samples physical parameters independently from explicit distributions, avoiding the generate-then-decompose workflow. The resulting interferometer implements a Haar-random unitary directly, and the same parameterization can be mapped to qubit circuits. For random coding constructions defined by the first CN\mathbb C^N15 columns of a Haar-random unitary, this is a direct route to implementing random isometries (Russell et al., 2015).

A second route replaces exact Haar measure by approximate unitary CN\mathbb C^N16-designs. General non-Haar random circuits are proved to form unitary designs as fast as the corresponding Haar-random circuits, up to a constant-factor overhead independent of system size. For single-layer-connected architectures,

CN\mathbb C^N17

and analogous multiplicative comparisons hold for brickwork, multilayer, and patchwork architectures. This is not a direct code theorem, but it rigorously supports Haar-random-like encoder ensembles whenever the coding argument depends only on low moments, especially CN\mathbb C^N18 (Yada et al., 10 Apr 2025).

A third route keeps exact Haar sampling but restricts the ambient group. In fermionic linear optics, exact Haar-random active and passive FLO circuits can be sampled natively from brick-wall nearest-neighbor architectures with optimal CN\mathbb C^N19 depth, CN\mathbb C^N20 gate count, and CN\mathbb C^N21 classical overhead. These are exact structured Gaussian ensembles, not substitutes for full Haar-random unitaries on CN\mathbb C^N22, because FLO preserves parity, and in the passive case particle number as well (Braccia et al., 30 May 2025).

For symbolic analysis, the Random Tensor Network Integrator implements graphical Weingarten calculus for tensor networks containing Haar-random unitaries. It computes averages of random-encoder observables as weighted sums of tensor networks while keeping subsystem dimensions symbolic. In the context of Haar-random codes, this is useful for reduced-state moments, channel overlaps, and decoupling-type expressions built from random isometries represented as unitary dilations (Fukuda et al., 2019).

6. Scope, limitations, and adjacent meanings of the term

The strongest coding theorem for Haar random codes is nevertheless limited in a precise way. It is approximate, not exact; it holds with high probability over Haar measure; it corrects channels whose Kraus operators lie in the span of a fixed finite unitary error set; it gives no efficient encoding or decoding algorithm; and the clean CN\mathbb C^N23 disturbance requires the mild technical assumption CN\mathbb C^N24 (Ma et al., 8 Oct 2025).

There are also limits on efficient Haar-like realizations. For random quantum circuits with independent local Haar-random gates, a Carbery-Wright-style anti-concentration theorem for the unitary Haar measure implies a lower bound on scrambling speed: every input qubit has influence at least exponentially small in depth on any output qubit touched by its lightcone. One consequence is an optimal depth lower bound

CN\mathbb C^N25

for CN\mathbb C^N26-approximate unitary designs. A plausible implication is that shallow local Haar-gate circuits cannot serve as fully Haar-like random encoders even at low design order (Fefferman et al., 2024).

Real-valued surrogates are also intrinsically limited. The exact trace distance between CN\mathbb C^N27 copies of a real Haar-random state and CN\mathbb C^N28 copies of a complex Haar-random state is known, with a sharp transition at CN\mathbb C^N29: for CN\mathbb C^N30 the ensembles are asymptotically close, whereas for CN\mathbb C^N31 the trace distance tends to CN\mathbb C^N32. Consequently, any real-valued approximate state CN\mathbb C^N33-design must incur at least the orthogonal-Haar-to-unitary-Haar moment error. This matters whenever “Haar random code” arguments are implemented with real-valued state ensembles rather than full complex Haar randomness (Nemoz et al., 22 Jul 2025).

Finally, the term appears in code-like but non-error-correcting settings. In the Haar random oracle model, reusable unclonable encryption is realized by a family of message subspaces of the form

CN\mathbb C^N34

so encryption is a shifted sample from a Haar-random message subspace rather than a QECC codeword. Related pseudorandom-state and pseudorandom-function-like constructions use columns of a shared Haar-random unitary as keyed random codebooks. These are not quantum error-correcting codes, but they show that Haar-random subspaces and Haar-random basis images function as a general-purpose encoding resource well beyond QEC proper (Bartusek et al., 12 Mar 2026).

In that broader sense, Haar random codes designate both a specific family of random quantum error-correcting codes and a general paradigm: encode information into uniformly random subspaces or uniformly random basis images, exploit the geometric genericity of Haar measure, and use structured surrogates only to the extent that they preserve the moment or spectral features relevant to the task.

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 Haar Random Codes.