Haiqu has launched QECX, an open standard designed to address a critical bottleneck in early fault-tolerant quantum computing (EFTQC). The new format enables the exchange of quantum-error-correction-code implementations between experts, decoder specialists and application researchers who typically require custom integration work due to fragmented code libraries.
QECX files provide a self-contained definition of a code, its qubit layout and circuits for its gadgets, allowing researchers to more easily compare options and explore trade-offs for specific applications, Haiqu says. This standardization aims to accelerate progress in an era where resources are carefully optimized and QEC is selectively applied to parts of a computation.
Early Fault-Tolerant Quantum Computing & QECX Motivation
The current approach to building practical quantum computers is increasingly defined as early fault-tolerant quantum computing (EFTQC), a pragmatic stage where full, universal fault tolerance remains distant and resources dictate selective application of error correction. This means researchers are actively exploring methods to apply quantum error correction (QEC) to only portions of a computation, accepting compromises to achieve results within the constraints of existing hardware.

Determining the optimal balance between fault-tolerant and error-mitigation techniques for specific applications is itself a significant research challenge, highlighting the need for focused applied QEC research alongside the pursuit of fully fault-tolerant solutions. This fragmentation stems from the proliferation of QEC codes and their implementations being scattered across different sources and formats, hindering meaningful comparison and collaboration. The lack of a common language for describing these codes creates a bottleneck, slowing the pace of innovation and limiting the ability to efficiently share and reuse work.
This situation is further complicated by the fact that implementations are often tightly coupled to specific libraries and codes, exacerbating the integration challenges. To address this, Haiqu has developed QECX, a standard designed to decouple a code’s definition from its implementation. Haiqu’s framework, Orqid, is designed to work with QECX and is intended to extend to execution on real hardware. The company also released an open-source Python package for authoring QECX files, alongside an online library of ready-to-use files, further facilitating adoption and collaboration within the quantum computing community.
QECX Standardizes Exchange of Quantum Error Correction Implementations
Haiqu’s newly released QECX standard addresses a practical hurdle in quantum computing: translating theoretical error correction codes into functional implementations. The standard provides a common format for describing these codes, allowing researchers to share and build upon each other’s work with reduced integration effort. This exchange is critical as quantum processors begin running error correction at a limited scale, requiring rapid development of supporting software and decoder technologies.

The need for standardization stems from the current fragmented landscape of quantum error correction (QEC) code implementations. Catalogs like the Error Correction Zoo document known codes, and academic papers detail their construction, but converting these into usable systems requires significant expertise. According to Haiqu, what has been missing is a format enabling communities to exchange results for direct use in simulations or integration into existing tools. QECX aims to fill that gap, decoupling a code’s definition from its specific implementation details.
The standard’s utility extends to automated circuit synthesis, as demonstrated in work by T. Peham and colleagues. The researchers detail circuits that, while not yet fully fault-tolerant, represent a step toward more robust quantum computations. An example circuit, included in the documentation, uses a series of Hadamard and controlled-X gates to prepare a specific quantum state. Haiqu has also established a QEC Code Library as a central repository for QECX files.
This library intends to facilitate the sharing of QEC research, providing application researchers with readily available implementations of desired codes. The company envisions a collaborative environment where researchers can publish their results in a usable format, accelerating the pace of innovation.
QECX File Structure: Code Definition vs. Implementation Details
A QECX file distinguishes between a quantum error correction code’s underlying mathematical definition and its practical implementation, storing both within a single structured document. This separation allows different communities, resource estimators, compilers and decoder specialists, to work with the same foundational code description, eliminating the need for bespoke integration efforts for each software combination. Each file contains the code type, its parameters, logical operators and the stabilizers defining it, alongside circuits written in OpenQASM 3. 0 that detail how the code functions in computation.

Technically, a QECX file is a JSON document, or a ZIP archive for larger codes, referencing matrices and circuits separately from the main file. The structure, exemplified by the triangular 4. 8.
This section details the code’s parameters and operators, providing a standardized foundation for further analysis and application. Researchers can then use this single file for diverse workflows, including estimating resource requirements, compiling logical circuits into physical ones, or decoding experimental measurement results. Haiqu provides a reference implementation of the QECX format, available on GitHub and installable via pip, that does not rely on its other tools, ensuring user freedom to develop custom interfaces.
The core of this package represents a QECX file as a Python object, mirroring its sections, code, registers, operations (gadgets), error-correction cycles, and properties, for easy programmatic access, according to Haiqu. “Each file is self-contained and holds the definition of the code, its qubit layout, circuits for its gadgets in one or more variants, the error-correction cycles built from them, and the information decoders need,” detailing a complete and standardized approach to quantum error correction code exchange. The company envisions this structure facilitating collaboration and accelerating progress in early fault-tolerant quantum computing.
OpenQASM 3.0 Circuits & JSON Format for QECX Files
QECX files use OpenQASM 3. 0 circuits to define the specific quantum gates and operations necessary for error correction, ensuring compatibility with a widely adopted quantum programming language. The standard’s flexibility extends to handling larger codes through ZIP archives, referencing external matrices and circuits to manage file size and complexity without sacrificing data integrity. The structure of a QECX file directly addresses the current disconnect between those developing quantum error correction codes and those building the decoders and applications that use them.

This machine-readable format bridges the gap between theoretical descriptions of codes found in research papers and catalogs, and the practical software needed to implement them, allowing for direct application of code definitions. The specification’s open nature encourages community contributions and ensures the standard can evolve alongside advancements in the field.
Beyond simply defining the code, QECX files capture the complete implementation, including circuits and their relationships to one another. Haiqu provides the qecx Python package, an open-source tool for creating, reading, checking, and viewing QECX files, to facilitate this process and make authoring practical even for complex codes.
Orqid Framework Integrates QECX for Algorithm Research
The Orqid framework now directly uses QECX files, streamlining research into early fault-tolerant quantum computing (EFTQC) by providing a unified format for code implementation and analysis. This integration allows researchers to rapidly switch between different quantum error correction (QEC) codes, implementation variants and decoders within a single framework, a capability previously hindered by the need for custom integration work. Haiqu’s framework facilitates systematic comparison of these elements for a given algorithm, identifying optimal compromises for deployment on current hardware.

QECX version 0. 1 supports both stabilizer and subsystem codes, accommodating a range of fault-tolerance techniques including ancilla qubit-based syndrome measurements and transversal gate implementations. This flexibility extends to workflows spanning resource estimation, circuit compilation and experimental decoding, all drawing information from a standardized file format.
The ability to explore trade-offs between qubit count and logical error rate is now a routine task within Orqid, enabling more efficient algorithm design for the EFTQC era. The company reports, demonstrating the ease of experimentation now possible. Beyond facilitating internal workflows, the Orqid framework incorporates a library of QECX files, mirroring existing code catalogs but with a significant difference.
Haiqu initially populates this library with files for codes considered practical in the current, resource-constrained environment, enabling application researchers to begin comparisons without the initial overhead of file creation, the firm reports. This approach directly addresses the current disconnect between QEC code developers and those focused on practical applications, accelerating the pace of innovation in the field.
Self-Contained QECX Files Enable Direct Implementation Use
Each QECX file contains the necessary information for diverse workflows, including error-correction cycles and data required by decoders, eliminating the need for separate, specialized files for each tool. The QECX standard is designed to be open, allowing external developers to create tools that read the files independently of Haiqu’s software, and to contribute to the standard’s evolution, ensuring its adaptability and longevity.
The central goal is to empower any researcher to use an implementation without needing specialized expertise from its creators. “QECX files can be written by those who know the codes best and used directly by all other communities,” Haiqu states.
Triangular 4.8.8 Color Code as a QECX Example
The triangular 4. The initial portion of the file details parameters familiar to code catalog users, including the code type, logical operators, and defining operators like stabilizers. This information mirrors data found in resources such as the Error Correction Zoo, providing a familiar reference point for experts. A short script within the QECX framework constructs this object, generating definitions for the color code at distances 3, 5, and 7 in a single operation.
The system also accepts gadget circuits directly as circuits, expanding input flexibility. Each addition to the QECX file undergoes immediate consistency checks, verifying the existence of referenced registers and ensuring a coherent document structure.
Validation checks against the specification requirements precede file saving, guaranteeing adherence to the standard before distribution. Loading and exploring the HTML view of this distance-3 color code requires only a few lines of code: “from qecx import QECXDocument; load (“. qecx”).” The example file details a qubit placement strategy, assigning seven qubits to data registers and three to syndrome measurement.
It also outlines state preparation methods, including a CSS encoder derived from Gaussian elimination on . The file also credits the QECX generator, noting the script used to create the example, and the creator of the file.
Extensibility & Credit: Supporting Future QECX Development
The QECX standard is not static. Haiqu intends to expand its capabilities to encompass emerging techniques in fault-tolerant quantum computing, anticipating the evolution of both algorithms and hardware. Version 0. But future iterations will include heralded operations, logical dynamic circuits and code deformation methods like code switching and lattice surgery. These planned additions reflect a commitment to accommodating increasingly sophisticated approaches to error correction as the field matures and hardware capabilities advance.
The development of these extensions will not occur in isolation; Haiqu actively seeks collaboration with academic and industrial partners to drive the standard forward and promote widespread adoption. This collaborative approach is intended to ensure QECX remains relevant and adaptable to the diverse needs of the quantum computing community, supporting interoperability and accelerating innovation.
Haiqu reports that QECX is at the heart of its QEC tools for resource estimation, compilation, simulation with detailed noise models, decoding, and integration with error mitigation. Beyond simply expanding the range of supported codes, QECX is designed to integrate with broader frameworks like Orqid, Haiqu’s platform for researching and simulating early fault-tolerant algorithms. The standard’s architecture allows it to support the eventual transition from simulation to execution on actual quantum hardware, providing a smooth pathway for translating theoretical designs into practical implementations.
“Which variant is best depends on the hardware,” highlighting the importance of tailoring error correction strategies to the underlying physical system.
Source: https://haiqu.ai/blog/qecx-blog



See today’s quantum computing news on Quantum Zeitgeist for the latest breakthroughs in qubits, hardware, algorithms, and industry deals.
