Haiqu launched Orqid, an End-to-End Toolkit for EFTQC Research

Own the future

Publications
Haiqu Imagery Casestudy HSBC

Practical Quantum Data Loading for Financial Intelligence

Case Studies

Working with HSBC, quantum hardware firm Oxford Ionics (an IonQ company), and the UK’s National Quantum Computing Centre (NQCC), Haiqu's team took on the challenging problem of spotting new trade corridors early. In explorative trials, the quantum-assisted models beat their classical counterparts, enabled by a Haiqu loading method that fit nearly four times more data onto quantum hardware than standard approaches.

ETC 1 Emerging trade corridors map 1x

Spotting trade corridors before they take off

What is the problem? In global trade, a trade corridor forms when trade between two countries climbs well above its usual level and keeps growing. Banks want to spot these early, because a corridor caught as it emerges shows where business is heading. A bank that sees one forming can position itself before the trend is widely visible, shaping where it lends and builds its presence.

The trouble is that new corridors are quite hard to predict. They grow out of many tangled forces, from currency moves to shifts in demand, and labeled examples are rare. There is
also no universally agreed definition of what counts as one, in mathematical terms, so a model cannot simply be told what to look for. Evidence that a trade corridor is emerging appears as subtle patterns across many variables, rather than in any single measure.

02 trade corridor detection

Where a quantum computer comes in

Quantum computers are, in principle, well suited to finding patterns like these, rare signals hidden in how many variables relate to one another, so corridor prediction is a good test case. The project used UN Comtrade figures, the United Nations’ public database of world trade, covering 2017 to 2025. Guided by a novel model developed by HSBC, it focused on semiconductors and some of their downstream products, commodities of clear commercial interest in recent years that were also well covered in the records. Months with unusually high trade volumes and strong year-on-year growth were marked as corridors for the models to learn from.

Quantum computers are still early in their development; today’s machines are small and noisy. Getting the most from them means working within those limits, and the most basic limit is how much data fits. A quantum computer stores information in qubits, the quantum version of bits, and standard loading methods manage roughly one variable per qubit. Even on an advanced machine like IonQ’s 36-qubit Forte Enterprise 1, that would mean about 36 variables per data point, a fraction of what years of trade history contain.

To get around this, the team employed Haiqu’s technique, Entangled Manifold Embedding (EME). It squeezed in 139 variables per data point, almost four times the usual limit, with almost no information lost. The quantum computer could then do its part, working out how all those variables interact, a job that can rapidly overwhelm ordinary computers, and handing an enriched version of the data to conventional prediction models.

What the tests showed

Prediction quality for the identification of emerging trade corridors was scored from 0 to 1 using a measure called F1 score, which rewards a model for catching real corridors and penalizes false alarms. For every type of model tested, adding the quantum-based data processing produced a better score.

03b f1 results bar chart

The two simulation rows come from classical computers mimicking a quantum machine, standard practice for refining an approach before running it for real. One assumed perfect conditions. The other added realistic noise. Simulation cannot be the end goal, though. Ordinary computers can only imitate a quantum machine while the problem stays small, and the promise of quantum computing lies at scales they cannot reach. That is why the last row matters most, and it is encouraging. Even on today’s noisy hardware, a clear gain over the best conventional model came through.

These are promising results from an explorative study. Further validation is required; a determined classical effort could close the gap, and further quantum work could widen it.

For a bank, the point of a higher score is practical. Fewer missed corridors and fewer false alarms mean attention can land on the right trade relationships earlier. That value would ultimately have to be proven on live trade flows.

What this means for near-term quantum applications

The quantum computer did not work alone. It performed one step in a larger process, reshaping the data before conventional models took over, and the project showed that today’s hardware can perform that step on a commercially relevant problem. Many early practical uses of quantum computing are likely to look like this, with quantum processing applied in a modular manner at the point where it can help the most.

Interestingly, the same approach could extend to other problems where a weak signal is buried in a mass of highly correlated data, such as fraud detection and risk monitoring. Larger datasets and tougher classical comparisons would be the natural next steps. These are promising results for an early proof of concept, and a glimpse of how quantum computing could help with real problems in global trade.

Final main usecase proton transfer

How AgenticOS coordinates specialist scientific agents to build, test, and trace a quantum experiment

Case Studies

Read the paper accepted at NeurIPS 2026 workshop here.
 

Proton transfer is one of the most fundamental processes in chemistry, and it underlies acid-base reactions. The Zundel cation, H₅O₂⁺, is a compact model of it [1]: two water molecules share one extra proton. The proton can sit close to either water, like a ball resting in one of two valleys, and moving it from one valley to the other means pushing it over the hill between them. The height of that hill, the energy barrier, controls how fast the transfer happens.
We gave the same task to ten standalone AI runs and to AgenticOS. Every run produced working code, but they did not perform the same experiment. Four runs violated explicit instruction to keep all the electrons. Others changed the molecular geometry or followed a different proton-transfer path.

AgenticOS fixed the scientific setup before implementation and tested the code against it. The workflow reproduced the expected two-valley curve. Its quantum method, sample-based quantum diagonalization (SQD) [2], gave a barrier of 554.8 meV, compared with the 574.3 meV FCI reference, a difference of 3.4% for the model studied.

 

The Input

Every run received the same task: calculate how the energy changes as a proton moves between two water molecules.

The oxygen atoms had to remain 2.9 Å apart, all 20 electrons had to be included, and each method had to be compared with the same FCI reference.

 

How Does AgenticOS Prevent Mistakes?

Figure 01
Figure 1. The live AgenticOS project graph, taken from the actual project record. Each node is a bounded team of scientific agents that produces reviewable artifacts before downstream work begins.

AgenticOS divided the work into reviewed steps. Each step saved its inputs, results, tests, and decisions before the next step began.

When a check failed, the work returned to the step that caused the problem. A human researcher reviewed the important decisions.

How AgenticOS kept the study on track

AgenticOS fixed the number of electrons, the shape of the molecule, the proton's path, and the comparison method before the calculation began. It checked these details again as the work progressed.

Three checks kept the experiment on track.

- Fix the setup: The electron count, molecular geometry, and target quantity were written into the configuration and tests.

- Check the tests: Critic agents looked for tests that passed without checking the right scientific property.

- Keep a record: AgenticOS saved the structures, settings, samples, test results, and review decisions.

 

What Went Wrong in the Standalone Runs?

The ten standalone runs produced different energy curves because they did not preserve the same experiment. Some left out required electrons, while others changed the geometry or proton path.

Figure 02
Figure 2. Five Sonnet and five Opus runs compared with the same FCI reference from the AgenticOS run.

- Reference: The dashed curve uses the fixed 12-point AgenticOS protocol with 15 orbitals, 20 electrons, no frozen core, and a 2.9 Å O-O distance.
- Standalone runs: The curves come from different experimental setups, even though every run received the same task.

A convincing curve is useful only when the experiment behind it is clear and consistent. AgenticOS was the only workflow that kept the agreed setup from start to finish.

Why the standalone results disagreed

Some runs left out electrons. Others moved the atoms differently. They produced curves, but they were not running the same experiment.

Failure mode

Without AgenticOS

With AgenticOS

Electronic space

4 of 10 agents used a frozen-core approximation, excluding core electrons despite the explicit instruction to use all 20 electrons

15 orbitals, 20 electrons, with frozen core disabled

Geometry path

Some agents used shortcuts that could not resolve the intended double well, including frozen water geometries and interpolated, non-minimized scan points; others followed a different proton-transfer path

Fixed 2.9 Å O-O distance, an on-axis proton coordinate, and outer hydrogens re-relaxed at every scan point

Trust in the result

Each five-agent baseline set produced five different potential-energy curves; several profiles were visibly irregular

One locked protocol, with configuration, scan data, tests, diagnostics, and caveats saved for review

 

What Does the AgenticOS Run Show?

All five methods calculated the same proton-transfer curve. They differed in how they treated the motion of the electrons. FCI was the reference for this model.

- PBE: 83 meV. Its approximate treatment produced a barrier that was too low.

- Hartree-Fock: 785 meV. It used one electronic pattern and missed part of how the electrons move together.

- CCSD: 606 meV. It included more electron interactions and came closer to FCI.

- FCI: 574.3 meV. It provided the reference answer for the chosen model.

- Quantum method (SQD): 554.8 meV. It used quantum sampling followed by a classical calculation and gave the closest result to FCI.

Figure 04
Figure 3. Shared proton transfer scan and fitted barriers in meV. Dashed halves are mirrored.
The quantum method, SQD, came close to the reference result compared to the classical methods tested.

SQD put the height of the energy hill at 554.8 meV. The reference result was 574.3 meV, a difference of 3.4%.

The methods differ because each captures electron motion with a different level of detail. SQD uses a quantum circuit to sample the electron configurations most likely to matter. A classical solver then calculates the energy from that smaller set. The full model contains more than nine million possible electron configurations. SQD focused on a smaller set and produced the closest barrier to the FCI reference.

 

Conclusion and Outlook

Reliable computational chemistry depends on keeping the scientific question consistent from setup through analysis. In this study, the standalone runs produced working code, but several changed the electron count, molecular geometry, or proton-transfer path. Their results therefore could not be compared directly. 
AgenticOS maintained one shared experimental setup across the calculation. It also kept the inputs, tests, intermediate results, and review decisions available for inspection. For research teams, the value reaches beyond one calculation. AgenticOS can coordinate work that crosses scientific literature, molecular modeling, software development, and validation while keeping important assumptions visible. Researchers remain responsible for the scientific choices and interpretation. 

We hope this example encourages other scientists to bring their own difficult, multi-step research questions to AgenticOS. The platform can help organize the investigation, test competing approaches, uncover hidden inconsistencies, and produce results that are easier to review and build upon.

Footnotes

[1] M. Schröder, F. Gatti, D. Lauvergnat, H.-D. Meyer, and O. Vendrell. The coupling of the hydrated proton to its first solvation shell. Nature Communications 13, 6170 (2022). https://doi.org/10.1038/s41467-022-33650-w

[2] J. Robledo-Moreno et al. Chemistry beyond the scale of exact diagonalization on a quantum-centric supercomputer. Science Advances 11(25), 2025. https://doi.org/10.1126/sciadv.adu9991

Final usecase2 optimization

Haiqu AgenticOS helps design novel quantum optimization algorithm scheme

Case Studies

Haiqu AgenticOS helped turn a research question into a tested algorithm that combines Digitized Cyclic Annealing with classical population-based search, producing better optimization results under the same sampling budget 

Better optimization methods could help industries use energy, infrastructure, and computing resources more effectively. Applications range from routing delivery fleets and scheduling factories to designing communication networks and balancing power grids. Quantum computing may offer new ways to explore these large solution spaces. However, turning that potential into practical improvements requires algorithms that can operate within real sampling and hardware constraints.


Further adoption of quantum optimization methods also depends on how these approaches fit into typical end-to-end optimization workflows. Classical solvers often run multiple searches and let them exchange promising solutions. Could quantum searches benefit from the same strategy? Could a discovery made by one optimizer help others explore more effectively, without increasing the quantum sampling budget?


We used Haiqu AgenticOS to investigate this question by combining our recently proposed Digitized Cyclic Annealing algorithm with classical Population-Based Search. 

Starting from a published algorithm and an existing implementation, AgenticOS helped develop the extension, compare coordination strategies, and audit the experiments under the researcher’s direction.

On a simulated 100-spin benchmark, coordination reduced the remaining distance from the known optimum by approximately 60% compared with independent searches under the same sampling budget. This initial result provides a direction for further research and offers a concrete example of how AgenticOS helps scientists turn ideas for quantum applications into testable algorithms and evidence.

 

1. Why Investigate Coordinated Quantum Optimization?

Many real decisions come down to choosing the best option from an enormous number of possibilities: which devices should relay network traffic, which route a delivery fleet should take, or how jobs should be scheduled. Each choice breaks into yes-or-no decisions, and the number of combinations doubles with every extra decision, so even a fast computer cannot try them all. Problems like these are called combinatorial optimization problems [2]. Choosing the smallest set of devices that keeps a wireless sensor network connected, known as a virtual backbone, is one example [3]. Practical solvers settle for good answers, and they often get stuck on answers that look best locally but are not the best overall.

Haiqu’s Digitized Cyclic Annealing (DCA) is a quantum algorithm for problems of this kind, and its original paper addresses virtual backbone problems [1]. DCA searches by running a quantum circuit many times, and today’s hardware allows only a limited number of runs, called shots. That raises a practical question: given a fixed number of shots, is it better to spend them on one long search or to split them across several copies of the optimizer that run side by side?

The rest of this blog explains how AgenticOS helped the researcher turn that question into an experiment comparing independent searches with several ways of sharing discoveries.

DCA in Brief: How Does Each Search Work?

A candidate solution is a bitstring: a sequence of 0s and 1s representing decisions. Its quality is measured by a cost, often called energy. Lower is better; the lowest-energy solution is called the ground state, and its energy is the ground-state energy [4].

Haiqu’s Digitized Cyclic Annealing (DCA) [1] translates cyclic annealing [5] into a sequence of quantum gates. Its basic search loop is:

 

  • Choose a reference solution to guide the search.
  • Run a quantum circuit that uses this reference to explore candidate solutions.
  • Measure and score the candidates. Each circuit execution produces one sample, called a shot.
  • Keep the better solution as the reference for the next cycle.

Repeated cycles aim to find progressively lower-cost solutions. Every replica in this study uses the same underlying DCA circuit. Coordination changes how replicas choose their next reference: they can use their own discoveries or adopt solutions found by others.

 

2. What Was the Input?

We provided AgenticOS with a concrete starting point:

 

  1. The DCA paper [1] and related literature, describing the algorithm and its scientific foundations.
  2. An existing single-search implementation, providing a baseline to reproduce and extend.
  3. A research question: how should multiple DCA searches share discoveries, and would coordination improve their results under a fixed sampling budget?

 

The initial plan covered a single search, several independent searches, and searches that could adopt the best solution found by the group. Each copy, called a replica, would run the same underlying DCA circuit. The investigation would change how replicas exchanged candidate solutions between cycles.

The task for AgenticOS: build a reusable multi-replica implementation, preserve the original DCA behavior, and design controlled experiments to compare independent and coordinated searches.

This required connecting the literature to an executable research plan: defining the communication rules, implementing them consistently, and deciding how to measure their effects. The researcher reviewed the proposed directions and steered which methods and experiments to pursue.

 

3. How Did AgenticOS Turn the Idea into a Trustworthy Experiment?

AgenticOS organized the investigation into connected research and engineering modules. Outputs from literature analysis informed the prototype design; the implementation then fed into experiments and further revisions. The researcher reviewed the proposed directions and steered the work throughout.

Figure 01
Figure 1. Live AgenticOS project graph for the multi-replica DCA study. Each node is a group of AI agents that completes one task and returns its output for human review.

Define what the experiment must establish.
The research and design modules translated the question into concrete requirements: preserve the underlying DCA algorithm, support different communication rules, and compare their effects under equal sampling budgets. The investigation needed to distinguish improvements caused by coordination from those caused by additional samples or changes to the quantum circuit.

Build from a reproduced baseline.
AgenticOS reproduced the existing single-search implementation before extending it into a population of replicas. It developed a reusable architecture in which the communication policy could change while the underlying DCA search remained consistent. Architecture reviews examined assumptions and data flows, including how random sampling would operate across replicas.

The framework supported different population sizes, shot allocations, and coordination policies. A matrix product state simulation path, which represents quantum states compactly when their entanglement allows it, enabled experiments with 100 spins.

Design controlled comparisons.
Experiment modules developed comparisons between independent searches and communicating populations. They tracked sampling budgets, kept results from different methods separate, and supported repeated runs with different random seeds. Diagnostics also examined population diversity, helping the researcher investigate whether sharing spread useful discoveries or concentrated the searches too early.

Audit, correct, and check again.
Verification continued as the implementation evolved. The project records describe audits that caught incorrect averaging, a sampling-budget check that could not detect a mismatch, an indexing error, and reuse of stale cached results. The researcher approved each correction before AgenticOS applied it and reran the relevant checks.

A defect that could have changed the conclusion

One audit found that independent baseline runs were being included in averages for communicating searches. This could produce a plausible-looking plot that compared the wrong groups. Correcting the aggregation restored the intended comparison.

The resulting framework lets the researcher test alternative coordination strategies, inspect their behavior, and revise the experiments. The contribution from AgenticOS connected the scientific question to executable methods and checks that made the results interpretable.


4. What Did Coordinated Searches Achieve?

The strongest results came from population annealing: a classical selection rule that makes lower-cost solutions more likely to become reference points for subsequent searches. This allowed promising discoveries to spread across the population while each replica continued running the same DCA circuit.

The main comparison used a 100-spin antiferromagnetic chain, whose exact optimum is known: an energy of −99. This provided a controlled benchmark for measuring how far each method remained from the best possible solution.

Both methods ran 10 replicas, with 50 shots per replica per cycle, for 100 cycles. Results were averaged over 15 random seeds. Under this equal sampling budget, the coordinated population finished closer to the optimum:

After 100 cycles

Independent searches

Population annealing

Average solution energy, approximately

−94

−97

Replicas holding an optimal solution

9 of 150

76 of 150

The remaining distance fell by approximately 60%. This measures improved solution quality; it does not describe a reduction in runtime or circuit executions. The replicas belong to 15 repeated runs, and sharing makes their outcomes correlated.

Figure 02
Figure: Mean solution energy over 100 cycles. Lower is better; the dashed line marks the optimum. Shaded bands show one standard deviation across the 15 runs, indicating how much outcomes varied between runs.

Smaller benchmarks made the effect of sharing easier to see. On a 20-node weighted MaxCut instance, the coordinated population brought every replica to the optimum in all 10 repeated runs. Independent searches achieved that population-wide outcome in only one run. However, the first replica often discovered the optimum at a similar time in both methods. The clearest benefit was spreading useful discoveries and improving the population’s collective solution quality.

These results support further investigation of coordinated DCA. The 100-spin chain is straightforward to solve classically, and the MaxCut examples are small. Their role here was to test the extension under controlled conditions. 

With AgenticOS, we obtained a working experimental framework and evidence to guide the next tests on harder problems and quantum hardware.

5. Conclusions and Outlook

This brief research project produced a promising extension of Digitized Cyclic Annealing and a reusable framework for testing it. Coordination improved the population’s solution quality under a fixed sampling budget, providing a reason to investigate the approach on harder problems.

AgenticOS helped turn an open question into an experiment that can be inspected, revised, and built on. The work connected literature analysis with algorithm design, simulation software, and experimental controls. The researcher set the direction and judged the evidence; AgenticOS helped carry those decisions through implementation and verification. 

This offers a practical R&D starting point. A research team can retain a familiar classical or quantum framework and investigate whether a modified or extended algorithm improves its performance. AgenticOS can help formulate that comparison, develop the prototype, and evaluate the evidence before committing to a larger hardware study. 

The broader opportunity for AgenticOS is to help scientists pursue more of these questions: taking a proposed mechanism through a working implementation, challenging its apparent gains, and producing evidence that guides the next research decision.

Footnotes

[1] M. Grandadam and M. Koch-Janusz, “Solving Virtual Backbone Problems with Digitized Cyclic Annealing on Near-Term Quantum Computers,” Proceedings of the 2026 International Conference on Computer Communications and Networks (ICCCN), 2026. 
[2] C. H. Papadimitriou and K. Steiglitz, Combinatorial Optimization: Algorithms and Complexity. Dover Publications, 1998.
[3] F. Dai and J. Wu, “On Constructing k-Connected k-Dominating Set in Wireless Networks,” Proceedings of the 19th IEEE International Parallel and Distributed Processing Symposium (IPDPS), 2005. 
[4] A. Lucas, “Ising Formulations of Many NP Problems,” Frontiers in Physics, vol. 2, article 5, 2014. 
[5] H. Wang, H.-C. Yeh, and A. Kamenev, “Many-Body Localization Enables Iterative Quantum Optimization,” Nature Communications, vol. 13, article 5503, 2022. 

Final use case1 kqd

The Hubbard Model on Real Quantum Hardware: Doped, Frustrated, and Fully Interacting with Diagonal Hopping

Case Studies

To our knowledge, the first reported digital quantum-hardware simulation of the full interacting, doped, and frustrated 2D Hubbard model with diagonal hopping , run on IBM Phoenix.

Superconductors carry electrical current without resistance, enabling powerful magnets and more efficient electrical technologies. Yet superconductivity at higher temperatures in cuprates materials remains debated: competing physics of magnetism, electron pairing and charge patterns makes its microscopic origin difficult to establish.

The Hubbard model offers a simple framework to study such complex physics. The model describes electrons which hop between crystal lattice sites and repel each other when they occupy the same site. On a square lattice, adding electron vacancies, called hole doping, and diagonal hopping, which introduces “frustrated” magnetic interactions, creates a minimal setting for studying the competing physics relevant to cuprate superconductivity.

We focused on a Hubbard model on a frustrated LxL lattice containing a single electron vacancy. For a small size of L, this example can be solved exactly on a classical computer, providing an exact  reference for testing a quantum algorithm. As the lattice grows, however, exact diagonalization becomes prohibitively expensive, while Quantum Monte Carlo and tensor-network methods face substantial difficulties in this regime.

These challenges make the 2D Hubbard model with frustration and doping an ideal target for quantum simulation and potential search for quantum advantage.

We used Haiqu AgenticOS to set up a research project and develop a new custom algorithm and circuit design for Krylov diagonalization and run it on IBM Phoenix quantum computer to estimate the system’s lowest energy.

Two recent experiments used gate-based quantum computers to study the 2D Fermi-Hubbard model. Google used 72 qubits on its Willow processor to simulate electron motion on grids as large as 6x6 [1]. Quantinuum used its Helios processor to measure signals associated with superconducting pairing in a hole-doped 6x6 grid [2]. In both studies, electrons moved only between directly adjacent sites. To our knowledge, our work is the first gate-based hardware experiment to also allow electrons to move diagonally between nearby sites. This added motion makes the model more representative of materials such as cuprates, while also making the quantum circuit more demanding to run.

Figure 01
Figure 1. The 3 by 3 lattice: eight electrons on nine sites, with hopping t, diagonal hopping t′, and on-site repulsion U.

What Does This Experiment Show?

The goal was to estimate the system’s lowest energy, a starting point for understanding how its electrons behave. Starting from a scientist’s algorithm idea, Haiqu AgenticOS helped develop the circuits, test alternative implementations, and diagnose hardware errors in an experiment to estimate the model’s lowest energy on a QPU.

The known classical answer provided a reference throughout this process. After optimization and error mitigation, the hardware estimate was consistent with the ideal algorithm’s prediction and uncertainty. The case shows how a research idea can be developed into an executable quantum experiment, with each design choice tested against simulations and hardware measurements.

 

How Does the Method Work?

The project began with a proposal to adapt Krylov quantum diagonalization (KQD) to the interacting electron model defined above. The KQD method finds the lowest-energy weighted combination of a small set of quantum states. Haiqu AgenticOS used a prepared reference state and two states obtained by simulating its evolution a short time forward and backward. Time evolution changes the relative phases of a state’s energy components, allowing a suitable combination to suppress higher-energy contributions.

To determine those weights, the quantum processor measures how the states overlap and the energy contributions involving each pair. Measuring each state’s energy separately is insufficient, because a combination also depends on interference between different states. These measurements supply the information a classical computer needs to find the lowest-energy combination within the chosen set.

The interference measurements use a helper qubit, called an ancilla, to distinguish two state-preparation paths. A conventional implementation makes the simulated evolution conditional on this qubit, adding many gates. Our construction instead controls simpler reversal operations interleaved with ordinary evolution, leaving the expensive evolution blocks uncontrolled.

Haiqu AgenticOS helped develop and validate this tailored construction, alongside the reference-state preparation and evolution circuits. Diagonal hopping prevents a simple reversal from applying directly to the whole model, so the construction handles the model’s components separately while retaining hopping and electron–electron repulsion.

On a smaller 2×3 validation system, the proposed approach reproduced the fully controlled calculation while reducing the CNOT count in the controlled block by a factor of approximately 4.6 (from 36,008 to 7,776 CNOTs).

Figure 02
Figure 2. Direct control versus reversal control. In the direct circuit the ancilla controls the whole evolution (depth 2,210). In the circuits proposed by AgenticOS it controls only the reversals K (depth 550).

What did Haiqu AgenticOS Do?

Haiqu AgenticOS helped turn the scientist’s KQD proposal into a tested hardware experiment, connecting literature review, algorithm development, circuit construction, and experimental feedback.

Literature and physics. It reviewed the research and assessed methods and fermion-to-qubit mappings suitable for the chosen Hubbard model.

Algorithm design. It translated the proposal into testable hypotheses, analytical checks, and a codebase validated against exact small-system calculations.

Circuit synthesis. It combined the reversal construction with a symmetry-informed basis change, shorter reference-state preparation, and routing that moves the ancilla along the chip to reduce communication overhead.

Hardware diagnosis. It investigated compilation and calibration problems and revised the implementation after noise-impacted initial hardware runs. It proposed and implemented an additional rotational-symmetry check. This enabled the C₂ correction described below.

The scientist directed the research, reviewed the claims, and made the final decisions. Tests and hardware results shaped the next steps: analytical checks ruled out a single global reversal, exact calculations validation exposed LLM-drifting errors, and test Phoenix runs prompted changes to the circuits and execution strategy.

Figure 03
Figure 3. The research loop behind the experiment. Each stage fed back into the others.

How Did Haiqu AgenticOS Make the Circuit Run on IBM Phoenix?

Running the algorithm meant translating its evolution and measurement steps into physical gates on IBM Phoenix’s square grid of qubits. Long circuits accumulate errors that can obscure the interference KQD needs.

AgenticOS compared alternative implementations, refined the circuits, and used Haiqu Platform’s hardware-aware compilation to make them suitable for the device.

Representative circuit reductions

75.1% lower circuit depth: 2,210 → 550 gate layers.

47.5% fewer two-qubit CZ gates: 1,276 → 670.

The reversal construction reduced the cost of conditional evolution. Further changes addressed the remaining costs:

Change

What it achieved

A basis adapted to the lattice

Used the structure of the hopping problem to reduce the gates needed for basis changes and evolution, from 132 to 80 CZ gates.

A simpler evolution approximation

Used a first-order time-evolution step, reducing gate count, saving roughly 80 to 97 CZ gates per pair circuitwhile checking the approximation error in classical simulations.

Shorter reference-state preparation

Reduced preparation from approximately 500 to 300 CZ gates. Simulated fidelity decreased from 0.982 to 0.928,a quantified tradeoff between preparation accuracy and circuit length.

Ancilla routing along the chip

Moved the helper qubit along available connections to reduce the routing cost of controlled operations, cutting the kinetic blocks from 522 CZ gates to 260

These changes worked together to shorten the circuits while preserving the quantities needed for the energy calculation. 

Figure 04
Figure 4. Circuit depth and gate counts before and after optimization with Haiqu AgenticOS, including reductions in individual circuit components.

Incorporating feedback from hardware runs

The feedback from initial hardware runs became part of the development process: AgenticOS analyzed discrepancies and used them to revise the experiment. A poorly performing qubit spoiled an initial test run on Phoenix QPU. Hence, later circuits were compiled through Haiqu Platform using updated device calibration data and application of dynamical decoupling on idle qubits helped preserve the ancilla’s interference signal.

The experiment also filtered measurement outcomes using two physical checks: the required electron count and the chosen mirror symmetry of the lattice. These checks improved the data, but they could not detect every error. Systematic errors in the gates could alter the interference while preserving both properties, biasing the energy estimate even in the accepted measurements.
AgenticOS helped with investigation on this remaining bias using calibration circuits whose expected results were known. This diagnosis prompted a further change: measure an additional lattice symmetry (180-degree rotation symmetry, called C₂) to help distinguish the desired signal from the remaining error contributions.

Figure 05
Figure 6. Fraction of hardware shots retained after particle-number and mirror-symmetry checks. The dashed line shows the expected retention for an ideal noiseless circuit. Even the ideal circuit does not retain all the shots because the state preparation block is not entirely inside the selected symmetry sector.

This separates measurements into two symmetry groups, even and odd. The prepared state contributes predominantly to the even group, while the diagnostic analysis suggested that the errors were more evenly distributed between them. Comparing the groups allowed their shared error contribution to be suppressed when reconstructing the energy estimate. This correction assumes that the errors populate both groups approximately equally and have similar effects on the measured quantities.

Figure 06
Figure 7. Subtracting the odd parity group from the even group cancels the shared contamination.

Results and Outlook

After optimization and symmetry-based error mitigation, the Phoenix experiment estimated the system’s energy at approximately −18.99t. We compared this with the exact classical solution and the ideal version of the same three-state KQD calculation. The latter includes the approximation error of the chosen algorithm, but no hardware noise.

Energy comparison

Exact ground-state energy: −19.13t
Ideal three-state KQD estimate: −19.00t
Corrected Phoenix estimate: −18.99t

Energies are expressed in units of t, the nearest-neighbor hopping strength.

The central hardware estimate is close to the ideal calculation. Its statistical uncertainty, however, corresponds to an energy interval from −19.48t to −18.57t. 

Figure 07
Figure 8. Energy estimates obtained by applying successive corrections to the same Phoenix execution. The final estimate is consistent with the ideal three-state calculation.

Reaching this result required coordinated work across physics, circuit design, compilation, and error diagnosis. Under the scientist’s direction, AgenticOS helped develop the implementation and revise it in response to simulations and hardware measurements.

The experiment establishes initial feasibility of the circuit construction and measurement approach. It provides the basis to further test the approach on progressively larger lattices, where exact classical answers become increasingly difficult to obtain. Comparisons with approximate classical methods and internal consistency checks will become increasingly important as exact verification becomes less accessible.

 

Interested in running this kind of loop on your own problem? Book a demo with the Haiqu team.

Footnotes

[1] F. Alam et al., "Programmable digital quantum simulation of 2D Fermi-Hubbard dynamics using 72 superconducting qubits," arXiv:2510.26845 (2025). 

[2] E. Granet et al., "Superconducting pairing correlations on a trapped-ion quantum computer," arXiv:2511.02125 (2025, v3 February 2026). 

Case Studies Capgemini

Quantum Computing for Drug Discovery: Capgemini x Haiqu Case Study

Case Studies
In collaboration with Capgemini IBM GSK

Quantum Chemistry for Drug Discovery: 15.5x Circuit Depth Reduction on Real Hardware

 

The pharmaceutical industry seeks drugs with high potency and precise selectivity to improve efficacy, reduce side effects, and lower late-stage failure rates. Targeted covalent drugs are especially promising because they form a specific, irreversible bond with a target protein via a reactive chemical group called a warhead. When properly tuned, this mechanism delivers exceptional potency and durability—aspirin being one of the earliest examples. The challenge is predicting warhead reactivity: higher reactivity generally improves potency, but excessive reactivity undermines selectivity. Accurately balancing this trade-off remains a major bottleneck in drug discovery.

With R&D costs exceeding $2B per drug, pharma increasingly combines machine learning and computational chemistry to accelerate discovery. A powerful approach uses first-principles calculations to generate “quantum fingerprints”—physically grounded features that improve reactivity prediction. However, classical simulation methods scale poorly: they rely on approximations that are either too inaccurate to capture critical many-body effects or too expensive for practical screening.

Problem: Quantum chemistry workloads exceed today’s hardware limits in circuit depth, noise, and cost.

Quantum computing offers a solution, but until now has been constrained by hardware noise, limiting usable circuit depth to a few hundred two-qubit gates. Haiqu, working with Capgemini, IBM, and GSK, broke this barrier by demonstrating one of the largest electronic-structure Hamiltonian simulations ever run on real quantum hardware for covalent drug warheads. Using advanced circuit compression and middleware execution, the team initially reduced circuit depth by 15.5× and further allowed end-to-end execution by running sub-circuits up to 371 gates.

Solution: Decomposed prohibitive quantum runs into hardware-friendly, separable blocks.

Collectively, these results establish a scalable, hardware-realistic path for running Hamiltonian simulations on larger active spaces, while maintaining sufficient accuracy for molecular reactivity prediction.

Blog Website Graphics 1
Haiqu decomposes quantum circuits into hardware-friendly blocks, enabling quantum chemistry workloads (left panel). Executions with Haiqu middleware (blue squares, lower right panel) retain coherent signals and closely track ideal trajectories (grey crosses), while runs using Qiskit’s built-in error mitigation (orange squares) collapse toward a noise-dominated baseline (black dashed line).

Impact: With Haiqu, chemists build expertise ahead of broader hardware advances

For decision makers, the implications are clear and immediate: Haiqu dramatically lowers the cost and increases the performance of quantum chemistry workloads, transforming quantum computing from a long-term theoretical research bet into a near-term commercial piloting program on real quantum hardware. By making deep Hamiltonian simulations feasible on today’s quantum hardware, Haiqu enables pharmaceutical teams to:

  1. Explore larger and more realistic molecular spaces
  2. Generate predictive quantum features unavailable to classical methods
  3. Integrate quantum simulations directly into machine-learning-driven discovery pipelines
  4. Accelerate early-stage drug discovery while reducing computational cost and increasing the success of the pilot experiments

Crucially, this is not a promise for the next decade. Haiqu makes high-value quantum workloads commercially viable today, allowing enterprises to capture competitive advantage years ahead of hardware-only roadmaps.

 

Quantum for business. Run more with Haiqu.

 

Explore the full research paper.

Case Studies HSBC

Quantum Monte Carlo for Finance: HSBC x Haiqu Case Study

Case Studies
In collaboration with HSBC

Loading Heavy-Tailed Financial Distributions on Quantum Hardware — at 156 Qubits

 

Quantitative finance is fundamentally about allocating capital and redistributing risk in ways that support long-term economic health. By making uncertainty explicit and actionable, quantitative methods help firms allocate resources with confidence and contribute to more transparent, reliable markets.

A canonical example is the Black–Scholes equation, which provides a principled framework for pricing derivatives. By making the cost of risk explicit, derivative pricing improves market efficiency and enables firms to hedge uncertainty and invest over longer horizons. In practice, however, many of today’s most important financial problems extend beyond closed-form solutions and rely on computationally intensive techniques such as Monte Carlo simulation. As models become more realistic, higher-dimensional, and sensitive to tail risk, these methods become increasingly slow and expensive to simulate on classical hardware.

HSBC distributions refined
Haiqu’s data loading scales differently. As the number of qubits increases (left panel), the required quantum resources stay within today’s hardware limits, enabling real, large-scale quantum experiments. Real hardware runs at 25 and 156 qubits show what’s possible now (right panels).

Quantum computing has emerged as a promising way to accelerate financial workloads by offering fundamentally different scaling behavior than classical approaches. Beyond derivative pricing, applications such as portfolio optimization, fraud detection, and machine learning are all to benefit from quantum computation. These applications share a common and often overlooked requirement: realistic financial distributions must first be loaded into a quantum computer to govern the modelled instrument.

Problem: Distribution loading requires an exponential number of operations.

Distribution loading is extremely challenging. The number of required quantum operations in conventional algorithms can scale exponentially with the number of qubits, making it a significant bottleneck on today’s noisy, depth-limited hardware.

Solution: Compact loading circuits that fit into early QPUs.

Haiqu addresses this challenge by exploiting structure and smoothness in distributions to factor the loading process into compact quantum circuits with linear (rather than exponential) scaling. Using this approach, Haiqu demonstrated the largest-scale loading of realistic financial distributions on quantum hardware by successfully encoding heavy-tailed distributions on up to 64 qubits on IBM’s Torino processor and validating the results with standard statistical tests on up to 25 qubits. Following the initial project, Haiqu demonstrated the applicability of this method at a scale of up to 156 qubits. 

 

Scalability Advantage and Hardware Readiness of Haiqu

Conventional Approaches

Haiqu’s Solution

× Exponential scaling of circuit depth

✓ Linear circuit depth scaling

× Poor scalability in the number of qubits

✓ Works with any number of qubits

× High error rates

✓ Minimal error accumulation

× Limited applicability to near-term hardware

✓ Works on today’s quantum hardware

× Poor integration with practical applications

✓ Enables real-world applications

 

Combined with Haiqu’s optimized execution tools, this capability enables, for the first time, the execution of Quantum Monte Carlo routines on realistic fat-tailed financial distributions directly on quantum hardware. It also unlocks practical exploration of quantum machine learning applications, such as fraud detection, by enabling high-dimensional feature encoding with only a few dozen qubits.

Impact: With Haiqu, financial teams build expertise ahead of broader hardware advances.

For business decision makers, the implications are immediate. Haiqu lowers the cost and increases the performance of financial quantum workloads, transforming quantum computing from a long-term research bet into a near-term commercial piloting opportunity. By enabling realistic distribution loading on today’s devices, Haiqu allows financial teams to test larger models, integrate quantum methods into existing workflows, and build expertise ahead of broader hardware advances.

Ultimately, this progress reinforces the core promise of quantitative finance: using better models and better computation to manage risk more effectively, allocate capital more wisely, and support a more stable and transparent financial system.

Quantum for business. Run more with Haiqu.

Case Studies Airbus BMW

Quantum CFD on Real Hardware: Airbus & BMW Challenge Case Study

Case Studies
In collaboration with BMW Group Airbus

Record-Scale Quantum CFD: 64×64 Grid Simulation on IonQ Hardware

 

People want safe, affordable, and comfortable transportation. The economics of delivering quality to end customers are set early in the value chain: aircraft manufacturers make efficiency decisions that airlines convert into lower operating costs, which people then experience as lower fares and improved comfort. The introduction of Airbus A320 sharklets to reduce wingtip vortex drag and cut fuel burn is a good example. Airlines recovered retrofit costs in as little as two years per aircraft, achieved fleet-wide savings in the multi-billion-dollar, and supported lower operating cost per seat.

Producing innovations like the Airbus A320 sharklets is slow and expensive. Development spans years and depends on repeated wind-tunnel testing and flight campaigns to validate performance and safety. Each cycle consumes capital, engineering effort, and limited testing capacity. Errors discovered late in development are especially costly, often triggering redesigns and delays.

Computational Fluid Dynamics (CFD) shortens this cycle by predicting how fluid flow affects aerodynamic forces, moments, pressure distributions, and thermal loads before physical testing begins. Accurate simulations reduce reliance on experiments and avoid costly late-stage changes. However, in complex flow conditions—most notably turbulence—classical CFD struggles because flows span large swirling regions down to very small eddies. 

Blog Website Graphics 2

Quantum Computational Fluid Dynamics (Q-CFD) aims to model the full dynamics of turbulent flows by encoding large grids using only logarithmically many qubits—changing the resource scaling relative to classical solvers. Unfortunately, today’s quantum processors are noisy. Current devices only support on the order of ~20 high-quality qubits (as measured by Quantum Volume metrics) and only reliably sustain algorithms  with a depth of ~300 two-qubit operations.

Haiqu, in partnership with Quanscient, overcame this barrier as finalists in the BMW–Airbus Quantum Computing Challenge. Using Haiqu’s middleware, the team executed the largest quantum CFD simulation to date on real hardware, running a 64×64 computational grid over multiple time steps on IonQ’s Aria 1 processor. By compressing circuits, optimizing execution, and mitigating noise, Haiqu enabled deep simulations that were previously impractical on today’s devices.

Blog Website Graphics 3
Haiqu powers Quanscient’s Quantum Lattice Boltzmann Method (QLBM) run, combining circuit compression and lightweight error mitigation to enable deep execution on today's noisy quantum processors.

For decision makers, the implications are clear and immediate. Haiqu increases the performance of CFD workloads, transforming quantum computing from a long-term theoretical research bet into a near-term empirical piloting program on real quantum hardware. 

By making deep simulations feasible on today’s hardware, Haiqu enables aerospace design and modeling teams to:

 

  1. Explore intractable simulation regimes
  2. Evaluate quantum CFD workflows alongside classical pipelines

Crucially, this is not a promise for the next decade. Haiqu makes quantum workloads executable today, allowing enterprises to capture competitive advantage years earlier.

Quantum for business. Run more with Haiqu.

Read more about this result on the AWS Blog.

Case Studies Life Sciences Giant

Quantum mRNA Folding at 120 Qubits: Life Sciences Case Study

Case Studies

Folding mRNA on 120 Qubits: 89% Circuit Depth Reduction on Real Hardware

 

Biology is governed by the relationship between molecular form and biological function. Cellular processes such as signaling, metabolism, and regulation depend on proteins that are precisely folded to perform specific tasks.

Fundamentally, protein folding is an optimization problem with exponential complexity, making accurate, physics-based simulations impractical at scale on classical computers. As proteins grow larger, computational costs rise rapidly, limiting the use of traditional methods in drug discovery and molecular design.

Quantum computing offers a new approach by mapping protein folding to a problem that quantum algorithms are naturally suited to solve. Techniques such as variational quantum algorithms can directly search for low-energy configurations (the biologically relevant folded states) within vast and complex solution spaces.
 

Problem

Despite strong theoretical promise, most quantum folding algorithms fail to scale in practice because they are incompatible with the noise, connectivity, and depth constraints of today’s quantum hardware.

A common industry-wide bottleneck in applying quantum computing to real-world optimization problems is the mismatch between algorithm design and current hardware limits. Many promising algorithms assume ideal connectivity and require deep, noisy circuits, making them impractical on today’s quantum devices where errors accumulate before convergence. This keeps most demonstrations confined to small, non-industrial benchmarks.

Solution:

Haiqu redesigned quantum folding algorithms to run efficiently on real hardware by aligning algorithm structure with device constraints rather than idealized assumptions.

Haiqu addressed this challenge by redefining folding at scale on today’s quantum hardware. This included applying Haiqu’s topology-aware quantum circuits, lightweight error-mitigation techniques, and integrated classical pre- and post-processing to stabilize training and improve results.

Result:

Haiqu scaled quantum protein folding workloads to 120 qubits, cut circuit depth (by 89%) and two-qubit gates (by 73%), and identified optimal low-energy solutions using ~50 minutes of QPU time vs. ~12 hours classically.

By reengineering how the algorithm runs on real quantum processors, Haiqu enabled execution at 120 qubits (51 nucleotides) while cutting circuit depth from 177 to 20 and reducing two-qubit gates from 479 to 127. Using this approach, Haiqu successfully trained and executed the algorithm directly on a quantum processor, achieving the optimal folding solution in approximately 50 minutes of QPU time—compared to roughly 12 hours on a classical simulator. This work scaled prior efforts of a partner to 120 qubits and established a credible path to ~200-qubit problem sizes, aligned with next-generation quantum hardware roadmaps.

Screenshot 2026 01 13 at 13 49 03
With Haiqu's hardware-efficient algorithm tailored to the QPU topology, we can solve the mRNA folding problem using all of the available qubits of the device (up to 159 on Heron). Running the iterations of the underlying optimisation problem takes 50 min of QPU time, whereas performing the same training on the tensor-network-based quantum simulator would require more than 12 hours.
Impact:

Haiqu transforms quantum protein and mRNA folding from experimental research into a practical, near-term capability for life-science organizations.

For decision makers, the implications are immediate. Haiqu reduces cost and increases the practical performance of quantum folding workloads, shifting quantum computing from a long-term research investment to a hardware-backed piloting opportunity. By making large-scale energy minimization and folding simulations feasible on today’s quantum processors, Haiqu enables life-science teams to:

 

  • Explore larger and more realistic folding landscapes than are accessible with classical physics-based methods
     
  • Identify low-energy folding configurations that are difficult to obtain with existing optimization techniques
     
  • Integrate quantum-derived folding results into existing computational biology and machine-learning workflows
     
  • Accelerate early-stage discovery and design decisions while controlling computational cost and hardware usage

Crucially, this capability is available now. Haiqu enables meaningful protein and mRNA folding workloads on current quantum hardware, allowing organizations to build expertise, validate value, and establish early competitive advantage ahead of future hardware advances.

Quantum for business. Run more with Haiqu.

Wave Asanoha 2x

Haiqu Launches Orqid, an End-to-End Toolkit for Early Fault-Tolerant Quantum Applications Research

Blog

Modular Software Lets Researchers Experiment with, Integrate and Test Error Correction Codes and Algorithms in One Place, Reducing Bottlenecks and Speeding Algorithm Development


NEW YORK — Dec. 2, 2026 — Haiqu today announced the release of Orqid, a software toolkit that makes it faster and easier for researchers to combine quantum error correction (QEC) codes with algorithms and test how they will perform on near-term quantum hardware.

QEC is widely seen as essential for building fault-tolerant quantum computers, machines that can overcome errors during computation and still deliver accurate results. Yet QEC workflows have not kept pace. Researchers rely on separate tools and perform many tasks by hand, creating bottlenecks that slow progress.  A code implemented in one tool often must be rewritten before another can use it, and swapping a decoder or noise model can mean rebuilding the entire pipeline. Finding the best combination for a given algorithm typically means testing configurations one at a time.

Orqid brings together capabilities previously scattered across separate platforms and adds new ones, including an open-source QEC code library. Teams can now design, test and run error correction in a single environment.

“To make the best of the upcoming early fault-tolerant devices, quantum applications researchers need to simulate and optimize their algorithms with different codes, decoders, noise models and noisy intermediate-scale quantum (NISQ) error mitigation techniques,” said Maciej Koch-Janusz, the principal scientist at Haiqu. “It’s very laborious, but critical for performance. Orqid is a one-stop, end-to-end framework, simplifying this process and accelerating algorithm development.”

Orqid is modular by design, so researchers can use its components together or on their own. Key capabilities include:

 

  • QECX brings an open exchange for error-correcting codes and their implementations
  • A code library where researchers can publish, share and extend codes and find implementations ready for immediate use
  • A compiler that uses QECX to convert algorithms into physical-level quantum circuits for resource estimation, simulation or, in the future, hardware execution

A sampling and decoding module that allows researchers to simulate algorithms with detailed noise models and to compare correction pipelines, including different codes, implementations and decoders

Orqid is designed for the early fault-tolerant quantum computing (EFTQC) regime, in which early error correction and established NISQ tools, such as error mitigation, work side by side. It integrates natively with Haiqu’s quantum middleware, including state preparation and readout, circuit compression, error mitigation and application subroutines.

Orqid also splits the work along natural lines. QEC specialists can build and share code implementations, while application researchers can run their own algorithms through them without first becoming error correction experts. Because each implementation travels as a single QECX file, groups can rerun, compare and build on one another’s work.

“One of the major obstacles to developing useful applications for early fault-tolerant quantum computers is the difficulty of integrating quantum algorithms, error-correcting codes and decoders into a unified computational framework,” said Roger Melko, a professor at the University of Waterloo. “Modular, accessible tools that allow researchers to systematically explore different architectures, noise models and resource trade-offs will be essential for understanding where quantum computing can offer a practical advantage in the future.”

Availability
Orqid is available now at https://haiqu.ai/eftqc. 

About Haiqu
Haiqu is an emerging leader in quantum software that supports the notion that near-term, commercially viable quantum applications are achievable with the right software, even on current hardware. Haiqu’s hardware-agnostic software can run applications with up to 100x more operations on current devices compared to competitors. 

Its AgenticOS gives researchers a team of AI agents that turns open research questions into verifiable quantum experiments, with scientists in control at every stage. Headquartered in New York City, Haiqu’s expert team operates from the U.S., Canada, Ukraine, U.K., EU and Singapore, contributing to the company’s mission to make quantum computing practical as soon as possible.

Thumbnail

Feature highlights: how Orqid enables deep understanding of your EFTQC algorithm

Blog

A fault-tolerant quantum algorithm with error correction is not the same algorithm with fewer errors. Between your circuit and the hardware sits a new layer of decisions: how each operation is built, where the noise enters, and how the errors are decoded. Orqid, Haiqu's EFTQC toolkit, puts each of these decisions in your hands and takes care of the scaffolding around them.

Quantum error correction is no longer a moonshot for the distant future. It is increasingly becoming a practical reality. Recent demonstrations of exponential error suppression heralded the beginning of the early fault-tolerant era in quantum computing (EFTQC). In this new regime, a quantum algorithm practitioner is met with significantly reduced, yet still considerable error rates and much more complex implementations of logical quantum circuits. The pursuit of the most performant version of the algorithm, well known from the noisy intermediate-scale quantum (NISQ) setting, continues with added complexity: there are now multiple ways of implementing a logical operation, the measurements of additional qubits required for error correction introduce noise of their own, and the capabilities of the error decoding algorithm are often limited by the type of errors happening in the experiments. In this blog, we will show how Orqid allows you to solve all of these problems more easily than ever before.

Fig encoding anim

The main difference between the familiar NISQ circuits and the error corrected ones is, unsurprisingly, in the error correction subroutines. The figure above showcases this added complexity as the logical circuit gets lowered to its physical representation . In logical circuits, quantum states are encoded in a much larger space made up of many physical qubits, allowing to measure the syndromes signalling an error without destroying the logical information. Such measurement requires a set of additional ancilla qubits, and entangling gates between them and the data qubits. Once the ancilla qubits are measured, a change in the outcome can signal that an error has occurred. Usually, such measurements are repeated several times, forming an error correction cycle, as shown in yellow in the graphic.  Once the measurement outcomes, also called syndromes, signalling an error event, are collected a classical algorithm, a decoder, is used to infer, which exact error is the most likely to have caused such an outcome. An identified error can be corrected.

Using many physical qubits to encode information means large logical operations, with many more physical gates. Each of those gates is still subject to hardware noise, and so are the ones used in the error correction cycles. By encoding our algorithm in a logical circuit, we thus make it considerably noisier before we can even begin to correct the errors.

Fault-tolerance turns into a race against the noise: can my logical circuit correct more errors than its complex components produce?

For an algorithm developer this raises three practical questions:

 

1. Which code implementation? Every logical operation (state preparation, syndrome measurement, logical gates, data measurement) comes in several variants with different depths, qubit counts and fault-tolerance properties. Which one is the best for my circuit?
2. Where does the error come from? When the final logical error rate is too high, which part of the encoded circuit carries the most weight: a specific logical gate, the syndrome extraction, or the state preparation?
3. Which decoder? Is my decoder well matched to the device noise and the algorithm, and would another one recover more of the logical information?

Answering any of these usually means writing custom code for each experiment, and rewriting it whenever a single piece changes. With Orqid, each of them becomes a change of one line.

Annotated circuits and exchangeable gate implementations

When a logical circuit is compiled into a physical one, most frameworks return a long, flat list of gates. The logical structure is lost: which gates belong to a CNOT, which to the third syndrome extraction round, which to the final logical measurement. The Orqid QEC compiler retains this information. Every fragment of the physical circuit it produces carries an annotation, a label identifying the operation it implements, the logical qubits it acts on and its position in the algorithm.

These annotations are more than bookkeeping. The decoder uses them to build the detector structure of the circuit, and they are the handles through which you can address any part of the encoded algorithm in later steps, as we show in the next sections. Annotations also make it easy to exchange different versions of each logical operation.

Haiqu introduced QECX, a file format to specify and exchange compiler-usable descriptions of error correcting codes. The QECX file for a code can contain several implementations of the same logical operation: for example, different schedules of the syndrome extraction cycle, various versions of state preparation, or logical gates. 

In Orqid, switching between them requires no re-implementation. You select a different variant at compile time, and the compiler stitches the circuit together consistently, with all the downstream information updated automatically.

For instance, one of the critical decisions in selecting the right implementation is the choice of the correct syndrome measurement variant. An error correcting code has a finite number of syndromes one can measure, and thus a finite number of errors it can detect and correct. By increasing the size of the code, also called a code distance, one can measure more syndromes and correct more errors. The exponential logical error reduction with the distance only happens when the physical error rates of the device are below a certain value, referred to as the threshold. The higher the threshold, the looser the constraints on the quantum computer, the lower the logical error rate one can achieve with a smaller number of physical qubits, ultimately allowing for larger algorithms to run reliably. With Orqid, you can verify how the order in which individual error syndromes are measured affects the ability of the code to correct those errors. 

Fig ec cycle

Say, you decide to measure the syndromes one by one, as a sequential operation. The same physical qubit can be measured multiple times when extracting different syndromes. If the measurements are done one by one, there is a high probability that an error on a qubit measured earlier will propagate to the qubits measured later. The number of detected syndromes will increase, making the task harder for the decoder. The quality of error correction will decrease. If, on the other hand, we measured all the syndromes that can be measured independently at the same time, the error happening on one qubit couldn’t possibly propagate to another qubit measured at that moment. The error remains localized, fewer syndromes signal an error, the decoder can make a more accurate prediction. The figure above shows results from an experiment run in Orqid, illustrating how the error correcting threshold dramatically increases when switching from sequential to parallel syndrome measurement, signaling the fault-tolerant behaviour.

Annotation-driven noise modelling

A single number, the final logical error rate, tells you how often your algorithm fails but not why. In an encoded circuit, errors can originate in the logical gates themselves, in the syndrome extraction meant to catch them, in the initial state preparation or in the final measurement. Each contributes differently, and each calls for a different fix: another gadget variant, more measurement rounds, a larger code distance, or an error mitigation layer on top.

Orqid separates these contributions by allowing you to apply the noise in a selective way through the annotations. Instead of one global error rate, you can specify noise per annotation label: for example one strength for the two-qubit gates inside a logical CNOT, another for the syndrome extraction cycles, none at all for state preparation. The noise model lives in a separate file, so the compiled circuit stays untouched while you vary only what is applied to it. 

This can be particularly useful when modelling the early fault-tolerant and partially error-corrected architectures, where only some qubits may be fully protected from the effects of the noise.

You can also assign different noise types to different gadgets, for example biased noise during logical gates and depolarizing noise during idling, to see how sensitive each part of the circuit is to the physics of a specific device.

This enables a simple workflow: switch noise on for one logical operation at a time and watch how the logical error responds. The result can be an error budget of your algorithm, broken down by logical operation, which shows where an improvement would pay off most. We already used this in the logical computation example of our introductory blog, where we left the non-fault-tolerant state preparation noiseless to isolate the performance of the rest of the circuit.

In the figure below, using Orqid we demonstrate how the noise acting on the different components of the algorithm contributes to the logical error rate. With a few lines of code you can choose which of the annotated operations will be subject to gate noise, while the rest of the circuit stays untouched. In this distance-5 memory experiment on the color code, the noise in the syndrome measurements dominates the logical error rate at physical error rates above roughly 0.2%. Below that, the non-fault-tolerant state preparation becomes the largest contribution, which tells you where a better implementation would pay off first.

Fig targeted noise

Seamless decoder switching

The decoder is the classical half of error correction. Given the syndrome record, it decides which correction to apply, and a decoder poorly matched to the code or the noise can discard much of the protection the code provides. Decoders differ in speed, in the codes they support, and in the noise structures they handle well. Minimum-weight perfect matching (MWPM) is fast and natural for surface codes, Chromobius is tailored to color codes, and Tesseract can exploit more general noise correlations, but at a higher computational cost.

In most workflows, changing the decoder means reformatting the circuit and syndrome data for a new library, and often re-deriving the detector structure by hand. In Orqid, the information each decoder needs is already produced by the compiler from the annotations and the QECX file. Switching the decoder is a single argument in the simulation call, while the compiled circuit, the noise model and the sampled syndromes stay the same.

Fig decoder comparison

Because the measurement samples can be shared, decoders are compared on identical data, so differences in the logical error rate reflect decoders’ performance rather than statistical fluctuations. Combined with selective noise modelling, this also shows how each decoder copes with specific noise acting on specific gadgets, for instance whether a correlation-aware decoder recovers the performance lost to correlated errors during a particular logical gate.

The figure above shows this in practice. We ran the same memory experiment as before, but decoded the same set of samples with three different decoders: Chromobius, Tesseract and BP-OSD. The logical error rates differ noticeably from one decoder to another, and the difference grows with the distance: the more accurate decoders gain the most from a larger code. This is precisely the effect one wants to achieve to win the race against the noise. That accuracy costs time. Chromobius finishes almost immediately, while Tesseract, which reaches the lowest logical error rate, takes far longer to run, and its run time rises quickly with the distance. BP-OSD sits between the two on both counts. Which decoder is the right one therefore depends on what you need: a fast first look at many configurations, or the best logical error rate your code can deliver. With Orqid, you can find out by changing a single argument. 

Putting it together

Individually, each of these features removes a piece of tedious, error-prone custom code. Together, they turn the study of an EFTQC algorithm into a systematic exploration. Choose the logical operation variants, decide where noise acts and how, pick a decoder, and change any of them independently, while the rest of the pipeline stays fixed. 

The question is no longer how to set an experiment up, but which configuration gives your algorithm the best performance on a given device. And now you can answer this question with much less effort.

Since Orqid is natively integrated with the rest of the Haiqu SDK, the same annotated circuits can be combined with techniques such as error mitigation, a combination we expect to be essential throughout the early fault-tolerant era. We will cover this, along with resource estimation, in upcoming posts.

The full Orqid toolkit and the complete Haiqu SDK are available free of charge to academic researchers through the Haiqu Academic Program. We encourage you to apply and start exploring!

Qecx header

QECX: an open standard for exchanging quantum-error-correction-code implementations

Blog

Developing quantum algorithms for the next generations of hardware now involves new design decisions about quantum error correction (QEC): which codes and implementations to use, how much overhead to accept for them, and for which parts of a computation. Quantum processors are starting to run QEC at a small scale, and the codes, decoders, and software needed to use it in practice are still being developed. This puts us in the era of early fault-tolerant quantum computing (EFTQC), an era of compromises in which the right choices depend on the application. Resources have to be optimized carefully, and QEC is combined with error mitigation or applied only to parts of a computation. For example, some operations are implemented fault-tolerantly while others are not, because a fault-tolerant version would be too costly for current hardware. Determining the best trade-off for a specific case is a research task in itself, which makes applied QEC research just as important as the work toward fully fault-tolerant solutions. Since the field is moving quickly and has not converged yet, comparing options requires access to the latest codes and implementations.

Today, such comparisons are hard to make. QEC experts, decoder specialists, and application researchers largely work in separate communities. The problem itself is split into many parts: codes and their gadgets (the circuits that carry out each step of an error-corrected computation), decoders, simulation, error mitigation, and execution on real hardware. Bringing these parts together typically requires custom integration work, because existing implementations are often tied to a specific library or research code. There are also many codes and implementations, scattered across different sources and formats. Those outside the QEC field, such as application researchers, struggle to keep track of them, yet they are the ones who need to use these codes. Moreover, a code's mathematical description is not enough, since an implementation also needs qubit and classical registers and a circuit for every gadget.

Catalogs such as the Error Correction Zoo give an overview of known codes, and papers describe their constructions, but turning these into working implementations takes considerable effort and expertise. What is missing is a common format through which these communities can exchange results that others can directly use in simulations or feed into their own tools, build on, and combine.

QECX is such a format: an open standard for describing and exchanging implementations of QEC codes. QECX files can be written by those who know the codes best and used directly by all other communities. Resource estimators, compilers, simulators, and decoders can all work from the same file, so connecting them no longer requires custom integration work for each combination. 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. Application researchers can thus try different codes and variants and easily explore the trade-offs for their application, including which operations to implement fault-tolerantly. New codes and gadgets can be shared and used as soon as they are developed, so comparisons can include the latest results.

Fig1 exchange

At Haiqu, QECX is at the heart of our QEC tools for resource estimation, compilation, simulation with detailed noise models, decoding, and integration with error mitigation. Together, they form Orqid, our framework for researching and simulating early fault-tolerant algorithms, which we introduce in a companion post. QECX is also designed to support the future extension of the framework to execution on real hardware. In this post, we introduce the standard and its use in different workflows. We also present an open-source Python package for authoring QECX files and our online library of ready-to-use files.

The QECX standard

At its core, QECX distinguishes a code from its implementation. A code is a mathematical object, defined, for example, by its stabilizers and logical operators. An implementation comprises everything needed to use that code in a computation, and a QECX file captures it for a concrete instance of the code. It stores all parts of the implementation, such as its circuits written in OpenQASM 3.0, and records how they relate to one another. Technically, it is a single JSON document or, for large codes, a ZIP archive in which bulky content such as matrices and circuits is kept separately and referenced from the main document.

Since the file is machine-readable, compilers, simulators, and decoders can work with it directly, which makes QECX the link between the papers and catalogs that describe codes and the software that applies them. The specification is open, so anyone can write QECX files and build tools that read them, independently of Haiqu's own software, and the standard can evolve with contributions from its users.

The central aim for the format is that anyone can use an implementation directly, without needing the expertise of the people who created it. To achieve this, each file is self-contained and spells out what papers and code often leave implicit or scattered: how the qubits of each circuit map onto the data and ancilla registers, which stabilizer each syndrome measurement checks, and which circuits are fault-tolerant. At the same time, the format is designed to accommodate many kinds of codes and fault-tolerance protocols, is not tied to any particular hardware, and leaves authors as much freedom as possible. Several variants of the same gadget can coexist, for example circuits that differ in fault tolerance, protocol, or depth. Not every possible gadget has to be included, and an implementation can be extended as research progresses, yet every file follows the same structure that tools can rely on. Finally, the authors, license, and references are recorded with each implementation, so its developers receive credit and its users can trace where each construction comes from.

Fig2 inside qecx

The figure above shows what such a file contains, using the triangular 4.8.8 color code at distance 3 as an example. Its first part, the algebraic definition, holds what a code catalog such as the Error Correction Zoo would also list: the code type, its parameters, its logical operators, and the operators that define the code, for example its stabilizers, which in this code are also the checks measured to detect errors. Beyond this definition, the basic ingredients of any implementation are its physical qubits, divided into data qubits for the encoded information and ancillas for auxiliary tasks, and its classical registers. The register layout declaration defines them separately from the circuits, which refer to them only by name. Ancilla registers can also carry a label for their purpose, such as syndrome measurement. A computation typically uses several copies of the code, each storing a few logical qubits in its own group of physical qubits. Each copy is called a code block, and registers can either be repeated for every block or shared by all of them. Those that a single operation needs only for itself, for example its measurement results, are declared with that operation instead. An optional qubit layout describes the structure of the code as vertices, edges, and faces, places the registers on this structure, and, if needed, assigns positions in space to its elements, for example to draw the code as in the figure above.

The gadgets, the circuits that carry out each step of an error-corrected computation, build on this foundation. They act on the declared registers and implement both the logical operations of a computation and the syndrome measurements. Each variant of a gadget records characteristics such as fault tolerance. The format supports the following gadgets:

 

■ State preparation: encodes a logical state into a code block
■ Syndrome measurement: measures the checks that reveal errors
■ Logical gates: act on the logical qubits of one or more code blocks
■ Logical measurement: measures logical qubits while the code block stays intact
■ Data readout: measures all qubits of a code block to obtain the logical result
■ Reset: returns a code block to a known logical state

Error-correction cycles combine these syndrome measurements into repeated rounds, specifying which circuits run in which order and how often, for example as many times as the code distance. Like the gadgets, cycles can come in several variants. To decode the resulting syndromes, an optional decoder configuration lists the decoders an implementation supports and any additional information they need. For the color code in the figure, the decoder Tesseract works without further input, while Chromobius needs a color for each check. The properties section holds the file's metadata, such as its authors, license, creation date, and references, and individual variants can cite these references.

How a gadget is implemented affects how well the code performs, and the lower part of the figure above gives an example. It compares two variants of the syndrome measurement for the Z checks of the color code, stored side by side in the same file. The sequential variant measures one check after another and needs 12 layers of CNOT gates at distance 3, a number that grows quadratically with the code distance. The parallel variant, taken from Landahl et al., interleaves the checks and needs at most 8 layers, independent of the distance. Because both the number of layers and the order of the gates affect how errors arise and spread, the circuits in a QECX file also record which gates run at the same time, shown as shaded columns in the parallel variant. Which variant is best depends on the hardware.

The parts described so far refer to one another instead of repeating information. This keeps them consistent and joins them into one coherent description that different tools can each use directly for their own task. Each gadget describes the mapping of its circuit's local qubits to the physical qubits of the full circuit, for example in terms of code blocks and positions within a block. The same gadget can therefore be applied automatically to any code block of a computation, including gates that act on several blocks at once, such as a transversal CNOT. Syndrome measurements likewise describe which check of the algebraic definition each measured bit reveals, as the labels at the measurement boxes in the figure show. A decoder can thus interpret every bit without first deriving its meaning from the circuit. The decoder configuration points to the face colors of the qubit layout for the colors Chromobius needs, as illustrated in the figure by the matching colors in both sections. Together, these links make it possible to translate a logical circuit into its error-corrected counterpart, including everything needed to decode the resulting measurements, without any information from outside the QECX file.

QECX is currently at version 0.1, the first public version of a standard that is still developing. It covers stabilizer and subsystem codes, together with a range of fault-tolerance techniques. Syndromes can be measured with ancilla qubits, including flag qubits, or with Steane-type and Knill-type methods, and fault-tolerant gates can be implemented transversally or by gate teleportation.

Use cases: from resource estimation to compilation and execution

Research on QEC and its applications involves workflows with very different goals. Researchers may want to estimate the resources an algorithm needs with a given code, compile its logical circuit into a physical one, or decode the measurement results of an experiment. Each of these workflows needs different information about a code and its implementation, and with QECX, all of them can draw this information from the same file. The figure below shows a tool for each of these workflows: a resource estimator, a QEC compiler, and a decoder. Each combines the file with its own input, either a logical circuit or syndrome data. The arrows beside the file indicate that a file for a different code or implementation can easily be selected instead.

Fig3 use cases

For resource estimation, shown in the top row of the figure, the gadget circuits, error-correction cycles, and register declarations in the file contain everything needed to price an algorithm in physical qubits and gates, for each code or variant in question. Combined with information about the hardware, such as gate times, these numbers can also give an estimate of the runtime. For compilation, shown in the middle row, a logical circuit is compiled into a physical one by translating each logical operation into its gadget and inserting error-correction cycles where needed. The register declarations determine how the qubits of each gadget map onto the code blocks it acts on, while the qubit layout can guide placement, routing, and optimization.

Finally, the decoder shown in the bottom row builds its detectors from the checks that each measured bit reveals and takes any further configuration from the file, such as the color of each check that the Chromobius decoder needs. A detector typically compares checks in consecutive rounds, so a change, such as the one highlighted in round r2 of the figure, signals an error. From the syndrome data, the decoder then infers the most likely errors and the corrections they require. The compiled circuit and the configured decoder together allow an error-corrected algorithm to be executed, today in simulations with detailed noise models and increasingly on quantum processors.

Since all of these workflows draw on the same file, they refer to exactly the same implementation, and moving from one to another, for example from a resource estimate to a simulation of the same algorithm, is seamless. Switching to a different code or variant only requires selecting another file or variant, while the tools stay unchanged. Exploring trade-offs, for example between the number of qubits and the logical error rate, thus becomes a routine task. These workflows are already available in Orqid, our framework built around QECX. There, switching the implementation variant, the code, or the decoder is a change of a single line, as we show in a dedicated post. This lets researchers systematically compare many combinations of codes, implementations, and decoders for a given algorithm and identify the best compromise for their application on early fault-tolerant hardware.

QECX authoring tools

QECX files are typically written by the QEC researchers who develop codes and their implementations. Doing this by hand would be tedious even for a small code, since a file holds the code's defining operators, register declarations, and many circuits that all have to fit together. To make authoring practical, the standard comes with qecx, an open-source Python package for creating, reading, checking, and viewing QECX files. It serves as a reference implementation of the format and does not depend on Haiqu's other tools. Users remain free to write their own interfaces and tools based on the specification. The source is hosted on GitHub, and the package can be installed from PyPI with pip install python-qecx. See the documentation for more details.

Fig4 authoring

The figure above shows how the package is used. At its center, a QECX file is represented as a Python object whose parts mirror its sections, such as the code, the registers, the operations (that is, the gadgets), the error-correction cycles, and the properties. On the left, a short script builds such an object, here for the color code at distances 3, 5, and 7 in a single loop. The package also accepts gadget circuits directly as Qiskit circuits. Each addition is checked immediately against the rest of the object, for example whether the registers and references it names exist, so a document is always consistent. At the top right, validation checks the document against the requirements of the specification before a file is saved. Since each addition has already been checked, this mainly concerns the document as a whole, such as whether all required sections and gadgets are present.

At the bottom center, documents are saved as .qecx files, and existing files can be loaded again to inspect, modify, or extend them, for example with a new gadget variant. The viewer at the bottom right shows a document as rich text in the terminal or, in a Jupyter notebook, as an interactive HTML view with circuit diagrams and a graphical qubit layout. There, loading a file and opening this view takes only a few lines.

from qecx import QECXDocument
doc = QECXDocument.load("color_488_d3.qecx")
doc.view()

The HTML view of the distance-3 color code from the figures above can be explored below.

Circuit scale: 0.8
Distance-3 Triangular 4.8.8 Color Code
CSS   [[7,1,3]]

Code H_X (3x7):
0 1 1 1 1 0 0
1 1 0 1 0 1 0
0 0 0 1 1 1 1
H_Z (3x7):
0 1 1 1 1 0 0
1 1 0 1 0 1 0
0 0 0 1 1 1 1
Logical Operators:
X: XXXIIII
Z: ZZZIIII
Registers Per Code Block
data_qreg[7] (logical_data)
syndrome[3] (syndrome)
Qubit Layout
Tiling Type: 4.8.8
Topology: planar
Cell Complex: 7 vertices, 9 edges, 3 faces
Embedding: dimension 2, coordinates cartesian
Qubit Placement: data_qreg (vertex, 7 qubits), syndrome (face, 3 qubits)
Cell complex visualization
Operations
State Preparation (2 outer keys)
|0_L⟩ (3 variants, default: css_encoder)
css_encoder — Preparation of |0_L> with a CSS encoder obtained by Gaussian elimination on H_X. Not fault-tolerant: the encoder is unverified. [non-FT]
Registers
qreg q_data: scope=block, ref=data_qreg
QASM source
OPENQASM 3.0;
include "stdgates.inc";
qubit[7] q_data;
h q_data[0];
h q_data[1];
h q_data[3];
cx q_data[0], q_data[2];
cx q_data[0], q_data[4];
cx q_data[0], q_data[5];
cx q_data[1], q_data[2];
cx q_data[1], q_data[5];
cx q_data[1], q_data[6];
cx q_data[3], q_data[4];
cx q_data[3], q_data[5];
cx q_data[3], q_data[6];
Circuit
          ┌───┐                                        
q_data_0: ┤ H ├──■────■─────────■──────────────────────
          ├───┤  │    │         │                      
q_data_1: ┤ H ├──┼────┼────■────┼────■────■────────────
          └───┘┌─┴─┐  │  ┌─┴─┐  │    │    │            
q_data_2: ─────┤ X ├──┼──┤ X ├──┼────┼────┼────────────
          ┌───┐└───┘  │  └───┘  │    │    │            
q_data_3: ┤ H ├───────┼────■────┼────┼────┼────■────■──
          └───┘     ┌─┴─┐┌─┴─┐  │    │    │    │    │  
q_data_4: ──────────┤ X ├┤ X ├──┼────┼────┼────┼────┼──
                    └───┘└───┘┌─┴─┐┌─┴─┐  │  ┌─┴─┐  │  
q_data_5: ────────────────────┤ X ├┤ X ├──┼──┤ X ├──┼──
                              └───┘└───┘┌─┴─┐└───┘┌─┴─┐
q_data_6: ──────────────────────────────┤ X ├─────┤ X ├
                                        └───┘     └───┘
mqt_heuristic — Preparation of |0_L> with a circuit from MQT QECC heuristic synthesis. Not fault-tolerant: the circuit is unverified. [non-FT]
Registers
qreg q_data: scope=block, ref=data_qreg
QASM source
OPENQASM 3.0;
include "stdgates.inc";
qubit[7] q_data;
h q_data[0];
h q_data[1];
h q_data[3];
cx q_data[3], q_data[5];
cx q_data[1], q_data[2];
cx q_data[5], q_data[6];
cx q_data[3], q_data[4];
cx q_data[0], q_data[1];
cx q_data[2], q_data[4];
cx q_data[0], q_data[5];
cx q_data[1], q_data[3];
Circuit
          ┌───┐                         
q_data_0: ┤ H ├───────■─────────■───────
          ├───┤     ┌─┴─┐       │       
q_data_1: ┤ H ├──■──┤ X ├───────┼────■──
          └───┘┌─┴─┐└───┘       │    │  
q_data_2: ─────┤ X ├───────■────┼────┼──
          ┌───┐└───┘       │    │  ┌─┴─┐
q_data_3: ┤ H ├──■────■────┼────┼──┤ X ├
          └───┘  │  ┌─┴─┐┌─┴─┐  │  └───┘
q_data_4: ───────┼──┤ X ├┤ X ├──┼───────
               ┌─┴─┐└───┘└───┘┌─┴─┐     
q_data_5: ─────┤ X ├──■───────┤ X ├─────
               └───┘┌─┴─┐     └───┘     
q_data_6: ──────────┤ X ├───────────────
                    └───┘               
References
reset_and_project — Preparation of |0_L> by projection: every data qubit is reset, every X check is measured through one ancilla, and the Z correction given by the syndrome is applied. Not fault-tolerant: the syndrome is measured once. [non-FT]
Syndrome cregs: c_synd → H_X
Registers
qreg q_data: scope=block, ref=data_qreg
qreg a_synd: scope=scratch, size=3
creg c_synd: scope=output, size=3, purpose=syndrome
QASM source
OPENQASM 3.0;
include "stdgates.inc";
bit[3] c_synd;
qubit[7] q_data;
qubit[3] a_synd;
reset q_data[0];
reset q_data[1];
reset q_data[2];
reset q_data[3];
reset q_data[4];
reset q_data[5];
reset q_data[6];
reset a_synd[0];
reset a_synd[1];
reset a_synd[2];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_synd[0], a_synd[1], a_synd[2];
h a_synd[0];
h a_synd[1];
h a_synd[2];
cx a_synd[0], q_data[1];
cx a_synd[0], q_data[2];
cx a_synd[0], q_data[3];
cx a_synd[0], q_data[4];
cx a_synd[1], q_data[0];
cx a_synd[1], q_data[1];
cx a_synd[1], q_data[3];
cx a_synd[1], q_data[5];
cx a_synd[2], q_data[3];
cx a_synd[2], q_data[4];
cx a_synd[2], q_data[5];
cx a_synd[2], q_data[6];
h a_synd[0];
h a_synd[1];
h a_synd[2];
c_synd[0] = measure a_synd[0];
c_synd[1] = measure a_synd[1];
c_synd[2] = measure a_synd[2];
if (c_synd[0]) {
  z q_data[0];
}
if (c_synd[1]) {
  z q_data[0];
}
if (c_synd[0]) {
  z q_data[1];
}
if (c_synd[2]) {
  z q_data[1];
}
if (c_synd[2]) {
  z q_data[3];
}
Circuit
                ░           ┌───┐                                                            ┌──────     ┌───┐ ───────┐          ┌──────     ┌───┐ ───────┐                                                                                                      
q_data_0: ─|0>──░───────────┤ X ├────────────────────────────────────────────────────────────┤ If-0  ────┤ Z ├  End-0 ├──────────┤ If-0  ────┤ Z ├  End-0 ├──────────────────────────────────────────────────────────────────────────────────────────────────────
                ░      ┌───┐└─┬─┘     ┌───┐                                                  └──╥───     └───┘ ───────┘          └──╥───     └───┘ ───────┘     ┌──────     ┌───┐ ───────┐             ┌──────     ┌───┐ ───────┐                                
q_data_1: ─|0>──░──────┤ X ├──┼───────┤ X ├─────────────────────────────────────────────────────╫───────────────────────────────────╫───────────────────────────┤ If-0  ────┤ Z ├  End-0 ├─────────────┤ If-0  ────┤ Z ├  End-0 ├────────────────────────────────
                ░      └─┬─┘  │  ┌───┐└─┬─┘                                                     ║                                   ║                           └──╥───     └───┘ ───────┘             └──╥───     └───┘ ───────┘                                
q_data_2: ─|0>──░────────┼────┼──┤ X ├──┼───────────────────────────────────────────────────────╫───────────────────────────────────╫──────────────────────────────╫──────────────────────────────────────╫──────────────────────────────────────────────────────
                ░        │    │  └─┬─┘  │  ┌───┐     ┌───┐     ┌───┐                            ║                                   ║                              ║                                      ║                           ┌──────     ┌───┐ ───────┐ 
q_data_3: ─|0>──░────────┼────┼────┼────┼──┤ X ├─────┤ X ├─────┤ X ├────────────────────────────╫───────────────────────────────────╫──────────────────────────────╫──────────────────────────────────────╫───────────────────────────┤ If-0  ────┤ Z ├  End-0 ├─
                ░        │    │    │    │  └─┬─┘┌───┐└─┬─┘     └─┬─┘     ┌───┐                  ║                                   ║                              ║                                      ║                           └──╥───     └───┘ ───────┘ 
q_data_4: ─|0>──░────────┼────┼────┼────┼────┼──┤ X ├──┼─────────┼───────┤ X ├──────────────────╫───────────────────────────────────╫──────────────────────────────╫──────────────────────────────────────╫──────────────────────────────╫───────────────────────
                ░        │    │    │    │    │  └─┬─┘  │  ┌───┐  │       └─┬─┘   ┌───┐          ║                                   ║                              ║                                      ║                              ║                       
q_data_5: ─|0>──░────────┼────┼────┼────┼────┼────┼────┼──┤ X ├──┼─────────┼─────┤ X ├──────────╫───────────────────────────────────╫──────────────────────────────╫──────────────────────────────────────╫──────────────────────────────╫───────────────────────
                ░        │    │    │    │    │    │    │  └─┬─┘  │         │     └─┬─┘          ║                       ┌───┐       ║                              ║                                      ║                              ║                       
q_data_6: ─|0>──░────────┼────┼────┼────┼────┼────┼────┼────┼────┼─────────┼───────┼────────────╫───────────────────────┤ X ├───────╫──────────────────────────────╫──────────────────────────────────────╫──────────────────────────────╫───────────────────────
                ░ ┌───┐  │    │    │    │    │    │    │    │    │  ┌───┐  │  ┌─┐  │            ║                       └─┬─┘       ║                              ║                                      ║                              ║                       
a_synd_0: ─|0>──░─┤ H ├──■────┼────■────┼────■────■────┼────┼────┼──┤ H ├──┼──┤M├──┼────────────╫─────────────────────────┼─────────╫──────────────────────────────╫──────────────────────────────────────╫──────────────────────────────╫───────────────────────
                ░ ├───┤       │         │              │    │    │  ├───┤  │  └╥┘  │  ┌─┐       ║                         │         ║                              ║                                      ║                              ║                       
a_synd_1: ─|0>──░─┤ H ├───────■─────────■──────────────■────■────┼──┤ H ├──┼───╫───┼──┤M├───────╫─────────────────────────┼─────────╫──────────────────────────────╫──────────────────────────────────────╫──────────────────────────────╫───────────────────────
                ░ ├───┤                                          │  └───┘  │   ║   │  └╥┘       ║                         │         ║                              ║                       ┌───┐┌─┐       ║                              ║                       
a_synd_2: ─|0>──░─┤ H ├──────────────────────────────────────────■─────────■───╫───■───╫────────╫─────────────────────────■─────────╫──────────────────────────────╫───────────────────────┤ H ├┤M├───────╫──────────────────────────────╫───────────────────────
                ░ └───┘                                                        ║       ║ ┌──────╨───────┐                    ┌──────╨───────┐               ┌──────╨───────┐               └───┘└╥┘┌──────╨───────┐               ┌──────╨───────┐               
c_synd: 3/═════════════════════════════════════════════════════════════════════╩═══════╩═╡ c_synd_0=0x1 ╞════════════════════╡ c_synd_1=0x1 ╞═══════════════╡ c_synd_0=0x1 ╞═════════════════════╩═╡ c_synd_2=0x1 ╞═══════════════╡ c_synd_2=0x1 ╞═══════════════
                                                                               0       1 └──────────────┘                    └──────────────┘               └──────────────┘                     2 └──────────────┘               └──────────────┘               
|+_L⟩ (1 variant, default: css_encoder_conjugate)
css_encoder_conjugate — Preparation of |+_L> with the same CSS encoder applied to H_X extended by the logical X support. Not fault-tolerant: the encoder is unverified. [non-FT]
Registers
qreg q_data: scope=block, ref=data_qreg
QASM source
OPENQASM 3.0;
include "stdgates.inc";
qubit[7] q_data;
reset q_data[0];
reset q_data[1];
reset q_data[2];
reset q_data[3];
reset q_data[4];
reset q_data[5];
reset q_data[6];
h q_data[0];
h q_data[1];
h q_data[2];
h q_data[3];
cx q_data[0], q_data[5];
cx q_data[0], q_data[6];
cx q_data[1], q_data[4];
cx q_data[1], q_data[5];
cx q_data[2], q_data[4];
cx q_data[2], q_data[6];
cx q_data[3], q_data[4];
cx q_data[3], q_data[5];
cx q_data[3], q_data[6];
Circuit
               ┌───┐                                             
q_data_0: ─|0>─┤ H ├──■─────────■────────────────────────────────
               ├───┤  │         │                                
q_data_1: ─|0>─┤ H ├──┼────■────┼────■───────────────────────────
               ├───┤  │    │    │    │                           
q_data_2: ─|0>─┤ H ├──┼────┼────┼────┼────■────■─────────────────
               ├───┤  │    │    │    │    │    │                 
q_data_3: ─|0>─┤ H ├──┼────┼────┼────┼────┼────┼────■────■────■──
               └───┘  │  ┌─┴─┐  │    │  ┌─┴─┐  │  ┌─┴─┐  │    │  
q_data_4: ─|0>────────┼──┤ X ├──┼────┼──┤ X ├──┼──┤ X ├──┼────┼──
                    ┌─┴─┐└───┘  │  ┌─┴─┐└───┘  │  └───┘┌─┴─┐  │  
q_data_5: ─|0>──────┤ X ├───────┼──┤ X ├───────┼───────┤ X ├──┼──
                    └───┘     ┌─┴─┐└───┘     ┌─┴─┐     └───┘┌─┴─┐
q_data_6: ─|0>────────────────┤ X ├──────────┤ X ├──────────┤ X ├
                              └───┘          └───┘          └───┘
Syndrome Measurement (4 variants, default: sequential)
sequential — Sequential syndrome extraction with one ancilla per check. Not fault-tolerant: hook errors from the single bare ancilla per check reduce the circuit-level distance below d. [non-FT]
Syndrome cregs: c_z_syndrome → H_Z, c_x_syndrome → H_X
Registers
qreg q_data: scope=block, ref=data_qreg
qreg a_syndrome: scope=block, ref=syndrome
creg c_z_syndrome: scope=output, size=3, purpose=syndrome
creg c_x_syndrome: scope=output, size=3, purpose=syndrome
QASM source
OPENQASM 3.0;
include "stdgates.inc";
bit[3] c_z_syndrome;
bit[3] c_x_syndrome;
qubit[7] q_data;
qubit[3] a_syndrome;
reset a_syndrome[0];
cx q_data[1], a_syndrome[0];
cx q_data[2], a_syndrome[0];
cx q_data[3], a_syndrome[0];
cx q_data[4], a_syndrome[0];
c_z_syndrome[0] = measure a_syndrome[0];
reset a_syndrome[1];
cx q_data[0], a_syndrome[1];
cx q_data[1], a_syndrome[1];
cx q_data[3], a_syndrome[1];
cx q_data[5], a_syndrome[1];
c_z_syndrome[1] = measure a_syndrome[1];
reset a_syndrome[2];
cx q_data[3], a_syndrome[2];
cx q_data[4], a_syndrome[2];
cx q_data[5], a_syndrome[2];
cx q_data[6], a_syndrome[2];
c_z_syndrome[2] = measure a_syndrome[2];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_syndrome[0], a_syndrome[1], a_syndrome[2];
reset a_syndrome[0];
h a_syndrome[0];
cx a_syndrome[0], q_data[1];
cx a_syndrome[0], q_data[2];
cx a_syndrome[0], q_data[3];
cx a_syndrome[0], q_data[4];
h a_syndrome[0];
c_x_syndrome[0] = measure a_syndrome[0];
reset a_syndrome[1];
h a_syndrome[1];
cx a_syndrome[1], q_data[0];
cx a_syndrome[1], q_data[1];
cx a_syndrome[1], q_data[3];
cx a_syndrome[1], q_data[5];
h a_syndrome[1];
c_x_syndrome[1] = measure a_syndrome[1];
reset a_syndrome[2];
h a_syndrome[2];
cx a_syndrome[2], q_data[3];
cx a_syndrome[2], q_data[4];
cx a_syndrome[2], q_data[5];
cx a_syndrome[2], q_data[6];
h a_syndrome[2];
c_x_syndrome[2] = measure a_syndrome[2];
Circuit
                                                                                           ░                ┌───┐                                                                          
      q_data_0: ────────────■──────────────────────────────────────────────────────────────░────────────────┤ X ├──────────────────────────────────────────────────────────────────────────
                            │                                                              ░           ┌───┐└─┬─┘     ┌───┐                                                                
      q_data_1: ───────■────┼─────────■────────────────────────────────────────────────────░───────────┤ X ├──┼───────┤ X ├────────────────────────────────────────────────────────────────
                       │    │         │                                                    ░           └─┬─┘  │  ┌───┐└─┬─┘                                                                
      q_data_2: ───────┼────┼────■────┼────────────────────────────────────────────────────░─────────────┼────┼──┤ X ├──┼──────────────────────────────────────────────────────────────────
                       │    │    │    │                                                    ░             │    │  └─┬─┘  │  ┌───┐     ┌───┐          ┌───┐                                  
      q_data_3: ───────┼────┼────┼────┼────■─────────■────────────■────────────────────────░─────────────┼────┼────┼────┼──┤ X ├─────┤ X ├──────────┤ X ├──────────────────────────────────
                       │    │    │    │    │         │            │                        ░             │    │    │    │  └─┬─┘┌───┐└─┬─┘          └─┬─┘        ┌───┐                     
      q_data_4: ───────┼────┼────┼────┼────┼────■────┼────────────┼───────■────────────────░─────────────┼────┼────┼────┼────┼──┤ X ├──┼──────────────┼──────────┤ X ├─────────────────────
                       │    │    │    │    │    │    │            │       │                ░             │    │    │    │    │  └─┬─┘  │       ┌───┐  │          └─┬─┘   ┌───┐             
      q_data_5: ───────┼────┼────┼────┼────┼────┼────┼───────■────┼───────┼────■───────────░─────────────┼────┼────┼────┼────┼────┼────┼───────┤ X ├──┼────────────┼─────┤ X ├─────────────
                       │    │    │    │    │    │    │       │    │       │    │           ░             │    │    │    │    │    │    │       └─┬─┘  │            │     └─┬─┘┌───┐        
      q_data_6: ───────┼────┼────┼────┼────┼────┼────┼───────┼────┼───────┼────┼────■──────░─────────────┼────┼────┼────┼────┼────┼────┼─────────┼────┼────────────┼───────┼──┤ X ├────────
                     ┌─┴─┐  │  ┌─┴─┐  │  ┌─┴─┐┌─┴─┐  │  ┌─┐  │    │       │    │    │      ░      ┌───┐  │    │    │    │    │    │    │  ┌───┐  │    │  ┌─┐       │       │  └─┬─┘        
  a_syndrome_0: ─|0>─┤ X ├──┼──┤ X ├──┼──┤ X ├┤ X ├──┼──┤M├──┼────┼───────┼────┼────┼──────░──|0>─┤ H ├──■────┼────■────┼────■────■────┼──┤ H ├──┼────┼──┤M├───────┼───────┼────┼──────────
                     └───┘┌─┴─┐└───┘┌─┴─┐└───┘└───┘┌─┴─┐└╥┘┌─┴─┐  │  ┌─┐  │    │    │      ░      ├───┤       │         │              │  └───┘  │    │  └╥┘┌───┐  │  ┌─┐  │    │          
  a_syndrome_1: ─|0>──────┤ X ├─────┤ X ├──────────┤ X ├─╫─┤ X ├──┼──┤M├──┼────┼────┼──────░──|0>─┤ H ├───────■─────────■──────────────■─────────■────┼───╫─┤ H ├──┼──┤M├──┼────┼──────────
                          └───┘     └───┘          └───┘ ║ └───┘┌─┴─┐└╥┘┌─┴─┐┌─┴─┐┌─┴─┐┌─┐ ░      ├───┤                                               │   ║ └───┘  │  └╥┘  │    │  ┌───┐┌─┐
  a_syndrome_2: ─|0>─────────────────────────────────────╫──────┤ X ├─╫─┤ X ├┤ X ├┤ X ├┤M├─░──|0>─┤ H ├───────────────────────────────────────────────■───╫────────■───╫───■────■──┤ H ├┤M├
                                                         ║      └───┘ ║ └───┘└───┘└───┘└╥┘ ░      └───┘                                                   ║            ║           └───┘└╥┘
c_z_syndrome: 3/═════════════════════════════════════════╩════════════╩═════════════════╩═════════════════════════════════════════════════════════════════╬════════════╬═════════════════╬═
                                                         0            1                 2                                                                 ║            ║                 ║ 
c_x_syndrome: 3/══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╩════════════╩═════════════════╩═
                                                                                                                                                          0            1                 2 
parallel — Parallel syndrome extraction with the Landahl-Anderson-Rice schedule: an X round then a Z round of eight CNOT layers each, at a depth independent of d. Not fault-tolerant: hook errors from the single bare ancilla per check reduce the circuit-level distance below d. [non-FT]
Syndrome cregs: c_x_syndrome → H_X, c_z_syndrome → H_Z
Registers
qreg q_data: scope=block, ref=data_qreg
qreg a_syndrome: scope=block, ref=syndrome
creg c_x_syndrome: scope=output, size=3, purpose=syndrome
creg c_z_syndrome: scope=output, size=3, purpose=syndrome
QASM source
OPENQASM 3.0;
include "stdgates.inc";
bit[3] c_x_syndrome;
bit[3] c_z_syndrome;
qubit[7] q_data;
qubit[3] a_syndrome;
reset a_syndrome[0];
reset a_syndrome[1];
reset a_syndrome[2];
h a_syndrome[0];
h a_syndrome[1];
h a_syndrome[2];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_syndrome[0], a_syndrome[1], a_syndrome[2];
cx a_syndrome[0], q_data[3];
cx a_syndrome[2], q_data[5];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_syndrome[0], a_syndrome[1], a_syndrome[2];
cx a_syndrome[0], q_data[4];
cx a_syndrome[2], q_data[6];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_syndrome[0], a_syndrome[1], a_syndrome[2];
cx a_syndrome[0], q_data[1];
cx a_syndrome[2], q_data[3];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_syndrome[0], a_syndrome[1], a_syndrome[2];
cx a_syndrome[0], q_data[2];
cx a_syndrome[1], q_data[5];
cx a_syndrome[2], q_data[4];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_syndrome[0], a_syndrome[1], a_syndrome[2];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_syndrome[0], a_syndrome[1], a_syndrome[2];
cx a_syndrome[1], q_data[3];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_syndrome[0], a_syndrome[1], a_syndrome[2];
cx a_syndrome[1], q_data[0];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_syndrome[0], a_syndrome[1], a_syndrome[2];
cx a_syndrome[1], q_data[1];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_syndrome[0], a_syndrome[1], a_syndrome[2];
h a_syndrome[0];
h a_syndrome[1];
h a_syndrome[2];
c_x_syndrome[0] = measure a_syndrome[0];
c_x_syndrome[1] = measure a_syndrome[1];
c_x_syndrome[2] = measure a_syndrome[2];
reset a_syndrome[0];
reset a_syndrome[1];
reset a_syndrome[2];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_syndrome[0], a_syndrome[1], a_syndrome[2];
cx q_data[3], a_syndrome[0];
cx q_data[5], a_syndrome[2];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_syndrome[0], a_syndrome[1], a_syndrome[2];
cx q_data[4], a_syndrome[0];
cx q_data[6], a_syndrome[2];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_syndrome[0], a_syndrome[1], a_syndrome[2];
cx q_data[1], a_syndrome[0];
cx q_data[3], a_syndrome[2];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_syndrome[0], a_syndrome[1], a_syndrome[2];
cx q_data[2], a_syndrome[0];
cx q_data[5], a_syndrome[1];
cx q_data[4], a_syndrome[2];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_syndrome[0], a_syndrome[1], a_syndrome[2];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_syndrome[0], a_syndrome[1], a_syndrome[2];
cx q_data[3], a_syndrome[1];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_syndrome[0], a_syndrome[1], a_syndrome[2];
cx q_data[0], a_syndrome[1];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_syndrome[0], a_syndrome[1], a_syndrome[2];
cx q_data[1], a_syndrome[1];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_syndrome[0], a_syndrome[1], a_syndrome[2];
c_z_syndrome[0] = measure a_syndrome[0];
c_z_syndrome[1] = measure a_syndrome[1];
c_z_syndrome[2] = measure a_syndrome[2];
Circuit
                           ░            ░            ░            ░                 ░  ░       ░ ┌───┐ ░       ░                         ░            ░            ░            ░                 ░  ░       ░       ░       ░          
      q_data_0: ───────────░────────────░────────────░────────────░─────────────────░──░───────░─┤ X ├─░───────░─────────────────────────░────────────░────────────░────────────░─────────────────░──░───────░───■───░───────░──────────
                           ░            ░            ░ ┌───┐      ░                 ░  ░       ░ └─┬─┘ ░ ┌───┐ ░                         ░            ░            ░            ░                 ░  ░       ░   │   ░       ░          
      q_data_1: ───────────░────────────░────────────░─┤ X ├──────░─────────────────░──░───────░───┼───░─┤ X ├─░─────────────────────────░────────────░────────────░───■────────░─────────────────░──░───────░───┼───░───■───░──────────
                           ░            ░            ░ └─┬─┘      ░ ┌───┐           ░  ░       ░   │   ░ └─┬─┘ ░                         ░            ░            ░   │        ░                 ░  ░       ░   │   ░   │   ░          
      q_data_2: ───────────░────────────░────────────░───┼────────░─┤ X ├───────────░──░───────░───┼───░───┼───░─────────────────────────░────────────░────────────░───┼────────░───■─────────────░──░───────░───┼───░───┼───░──────────
                           ░ ┌───┐      ░            ░   │  ┌───┐ ░ └─┬─┘           ░  ░ ┌───┐ ░   │   ░   │   ░                         ░            ░            ░   │        ░   │             ░  ░       ░   │   ░   │   ░          
      q_data_3: ───────────░─┤ X ├──────░────────────░───┼──┤ X ├─░───┼─────────────░──░─┤ X ├─░───┼───░───┼───░─────────────────────────░───■────────░────────────░───┼────■───░───┼─────────────░──░───■───░───┼───░───┼───░──────────
                           ░ └─┬─┘      ░ ┌───┐      ░   │  └─┬─┘ ░   │       ┌───┐ ░  ░ └─┬─┘ ░   │   ░   │   ░                         ░   │        ░            ░   │    │   ░   │             ░  ░   │   ░   │   ░   │   ░          
      q_data_4: ───────────░───┼────────░─┤ X ├──────░───┼────┼───░───┼───────┤ X ├─░──░───┼───░───┼───░───┼───░─────────────────────────░───┼────────░───■────────░───┼────┼───░───┼─────────■───░──░───┼───░───┼───░───┼───░──────────
                           ░   │  ┌───┐ ░ └─┬─┘      ░   │    │   ░   │  ┌───┐└─┬─┘ ░  ░   │   ░   │   ░   │   ░                         ░   │        ░   │        ░   │    │   ░   │         │   ░  ░   │   ░   │   ░   │   ░          
      q_data_5: ───────────░───┼──┤ X ├─░───┼────────░───┼────┼───░───┼──┤ X ├──┼───░──░───┼───░───┼───░───┼───░─────────────────────────░───┼────■───░───┼────────░───┼────┼───░───┼────■────┼───░──░───┼───░───┼───░───┼───░──────────
                           ░   │  └─┬─┘ ░   │  ┌───┐ ░   │    │   ░   │  └─┬─┘  │   ░  ░   │   ░   │   ░   │   ░                         ░   │    │   ░   │        ░   │    │   ░   │    │    │   ░  ░   │   ░   │   ░   │   ░          
      q_data_6: ───────────░───┼────┼───░───┼──┤ X ├─░───┼────┼───░───┼────┼────┼───░──░───┼───░───┼───░───┼───░─────────────────────────░───┼────┼───░───┼────■───░───┼────┼───░───┼────┼────┼───░──░───┼───░───┼───░───┼───░──────────
                     ┌───┐ ░   │    │   ░   │  └─┬─┘ ░   │    │   ░   │    │    │   ░  ░   │   ░   │   ░   │   ░ ┌───┐┌─┐                ░ ┌─┴─┐  │   ░ ┌─┴─┐  │   ░ ┌─┴─┐  │   ░ ┌─┴─┐  │    │   ░  ░   │   ░   │   ░   │   ░ ┌─┐      
  a_syndrome_0: ─|0>─┤ H ├─░───■────┼───░───■────┼───░───■────┼───░───■────┼────┼───░──░───┼───░───┼───░───┼───░─┤ H ├┤M├─|0>────────────░─┤ X ├──┼───░─┤ X ├──┼───░─┤ X ├──┼───░─┤ X ├──┼────┼───░──░───┼───░───┼───░───┼───░─┤M├──────
                     ├───┤ ░        │   ░        │   ░        │   ░        │    │   ░  ░   │   ░   │   ░   │   ░ ├───┤└╥┘ ┌─┐            ░ └───┘  │   ░ └───┘  │   ░ └───┘  │   ░ └───┘┌─┴─┐  │   ░  ░ ┌─┴─┐ ░ ┌─┴─┐ ░ ┌─┴─┐ ░ └╥┘┌─┐   
  a_syndrome_1: ─|0>─┤ H ├─░────────┼───░────────┼───░────────┼───░────────■────┼───░──░───■───░───■───░───■───░─┤ H ├─╫──┤M├──|0>───────░────────┼───░────────┼───░────────┼───░──────┤ X ├──┼───░──░─┤ X ├─░─┤ X ├─░─┤ X ├─░──╫─┤M├───
                     ├───┤ ░        │   ░        │   ░        │   ░             │   ░  ░       ░       ░       ░ ├───┤ ║  └╥┘  ┌─┐       ░      ┌─┴─┐ ░      ┌─┴─┐ ░      ┌─┴─┐ ░      └───┘┌─┴─┐ ░  ░ └───┘ ░ └───┘ ░ └───┘ ░  ║ └╥┘┌─┐
  a_syndrome_2: ─|0>─┤ H ├─░────────■───░────────■───░────────■───░─────────────■───░──░───────░───────░───────░─┤ H ├─╫───╫───┤M├──|0>──░──────┤ X ├─░──────┤ X ├─░──────┤ X ├─░───────────┤ X ├─░──░───────░───────░───────░──╫──╫─┤M├
                     └───┘ ░            ░            ░            ░                 ░  ░       ░       ░       ░ └───┘ ║   ║   └╥┘       ░      └───┘ ░      └───┘ ░      └───┘ ░           └───┘ ░  ░       ░       ░       ░  ║  ║ └╥┘
c_x_syndrome: 3/═══════════════════════════════════════════════════════════════════════════════════════════════════════╩═══╩════╩═══════════════════════════════════════════════════════════════════════════════════════════════╬══╬══╬═
                                                                                                                       0   1    2                                                                                               ║  ║  ║ 
c_z_syndrome: 3/════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╩══╩══╩═
                                                                                                                                                                                                                                0  1  2 
References
  • A. J. Landahl, J. T. Anderson, and P. R. Rice, "Fault-tolerant quantum computing with color codes," arXiv:1108.5738 (2011). Locality-respecting syndrome schedule used in the parallel variant
steane_ec — Steane-style syndrome extraction: a |+_L> block and a |0_L> block are coupled to the data by transversal CNOTs and read out qubit by qubit, which gives the Z and the X syndrome. Not fault-tolerant: the ancilla blocks are unverified. [non-FT]
Transversal readout cregs: c_x → H_Z, c_z → H_X
Registers
qreg q_data: scope=block, ref=data_qreg
qreg a_x: scope=scratch, size=7
qreg a_z: scope=scratch, size=7
creg c_x: scope=output, size=7, purpose=transversal_readout
creg c_z: scope=output, size=7, purpose=transversal_readout
QASM source
OPENQASM 3.0;
include "stdgates.inc";
bit[7] c_x;
bit[7] c_z;
qubit[7] q_data;
qubit[7] a_x;
qubit[7] a_z;
reset a_x[0];
reset a_x[1];
reset a_x[2];
reset a_x[3];
reset a_x[4];
reset a_x[5];
reset a_x[6];
h a_x[0];
h a_x[1];
h a_x[3];
cx a_x[0], a_x[2];
cx a_x[0], a_x[4];
cx a_x[0], a_x[5];
cx a_x[1], a_x[2];
cx a_x[1], a_x[5];
cx a_x[1], a_x[6];
cx a_x[3], a_x[4];
cx a_x[3], a_x[5];
cx a_x[3], a_x[6];
h a_x[0];
h a_x[1];
h a_x[2];
h a_x[3];
h a_x[4];
h a_x[5];
h a_x[6];
reset a_z[0];
reset a_z[1];
reset a_z[2];
reset a_z[3];
reset a_z[4];
reset a_z[5];
reset a_z[6];
h a_z[0];
h a_z[1];
h a_z[3];
cx a_z[0], a_z[2];
cx a_z[0], a_z[4];
cx a_z[0], a_z[5];
cx a_z[1], a_z[2];
cx a_z[1], a_z[5];
cx a_z[1], a_z[6];
cx a_z[3], a_z[4];
cx a_z[3], a_z[5];
cx a_z[3], a_z[6];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_x[0], a_x[1], a_x[2], a_x[3], a_x[4], a_x[5], a_x[6], a_z[0], a_z[1], a_z[2], a_z[3], a_z[4], a_z[5], a_z[6];
cx q_data[0], a_x[0];
cx q_data[1], a_x[1];
cx q_data[2], a_x[2];
cx q_data[3], a_x[3];
cx q_data[4], a_x[4];
cx q_data[5], a_x[5];
cx q_data[6], a_x[6];
c_x[0] = measure a_x[0];
c_x[1] = measure a_x[1];
c_x[2] = measure a_x[2];
c_x[3] = measure a_x[3];
c_x[4] = measure a_x[4];
c_x[5] = measure a_x[5];
c_x[6] = measure a_x[6];
cx a_z[0], q_data[0];
cx a_z[1], q_data[1];
cx a_z[2], q_data[2];
cx a_z[3], q_data[3];
cx a_z[4], q_data[4];
cx a_z[5], q_data[5];
cx a_z[6], q_data[6];
h a_z[0];
h a_z[1];
h a_z[2];
h a_z[3];
h a_z[4];
h a_z[5];
h a_z[6];
c_z[0] = measure a_z[0];
c_z[1] = measure a_z[1];
c_z[2] = measure a_z[2];
c_z[3] = measure a_z[3];
c_z[4] = measure a_z[4];
c_z[5] = measure a_z[5];
c_z[6] = measure a_z[6];
Circuit
                                                                       ░                                                         ┌───┐                                                        
q_data_0: ─────────────────────────────────────────────────────────────░───■─────────────────────────────────────────────────────┤ X ├────────────────────────────────────────────────────────
                                                                       ░   │                                                     └─┬─┘┌───┐                                                   
q_data_1: ─────────────────────────────────────────────────────────────░───┼────■──────────────────────────────────────────────────┼──┤ X ├───────────────────────────────────────────────────
                                                                       ░   │    │                                                  │  └─┬─┘┌───┐                                              
q_data_2: ─────────────────────────────────────────────────────────────░───┼────┼────■─────────────────────────────────────────────┼────┼──┤ X ├──────────────────────────────────────────────
                                                                       ░   │    │    │                                             │    │  └─┬─┘┌───┐                                         
q_data_3: ─────────────────────────────────────────────────────────────░───┼────┼────┼────■────────────────────────────────────────┼────┼────┼──┤ X ├─────────────────────────────────────────
                                                                       ░   │    │    │    │                                        │    │    │  └─┬─┘┌───┐                                    
q_data_4: ─────────────────────────────────────────────────────────────░───┼────┼────┼────┼────■───────────────────────────────────┼────┼────┼────┼──┤ X ├────────────────────────────────────
                                                                       ░   │    │    │    │    │                                   │    │    │    │  └─┬─┘┌───┐                               
q_data_5: ─────────────────────────────────────────────────────────────░───┼────┼────┼────┼────┼────■──────────────────────────────┼────┼────┼────┼────┼──┤ X ├───────────────────────────────
                                                                       ░   │    │    │    │    │    │                              │    │    │    │    │  └─┬─┘┌───┐                          
q_data_6: ─────────────────────────────────────────────────────────────░───┼────┼────┼────┼────┼────┼────■─────────────────────────┼────┼────┼────┼────┼────┼──┤ X ├──────────────────────────
               ┌───┐                    ┌───┐                          ░ ┌─┴─┐  │    │    │    │    │    │  ┌─┐                    │    │    │    │    │    │  └─┬─┘                          
   a_x_0: ─|0>─┤ H ├──■────■─────────■──┤ H ├──────────────────────────░─┤ X ├──┼────┼────┼────┼────┼────┼──┤M├────────────────────┼────┼────┼────┼────┼────┼────┼────────────────────────────
               ├───┤  │    │         │  └───┘          ┌───┐           ░ └───┘┌─┴─┐  │    │    │    │    │  └╥┘┌─┐                 │    │    │    │    │    │    │                            
   a_x_1: ─|0>─┤ H ├──┼────┼────■────┼─────────■────■──┤ H ├───────────░──────┤ X ├──┼────┼────┼────┼────┼───╫─┤M├─────────────────┼────┼────┼────┼────┼────┼────┼────────────────────────────
               └───┘┌─┴─┐  │  ┌─┴─┐  │  ┌───┐  │    │  └───┘           ░      └───┘┌─┴─┐  │    │    │    │   ║ └╥┘┌─┐              │    │    │    │    │    │    │                            
   a_x_2: ─|0>──────┤ X ├──┼──┤ X ├──┼──┤ H ├──┼────┼──────────────────░───────────┤ X ├──┼────┼────┼────┼───╫──╫─┤M├──────────────┼────┼────┼────┼────┼────┼────┼────────────────────────────
               ┌───┐└───┘  │  └───┘  │  └───┘  │    │            ┌───┐ ░           └───┘┌─┴─┐  │    │    │   ║  ║ └╥┘┌─┐           │    │    │    │    │    │    │                            
   a_x_3: ─|0>─┤ H ├───────┼────■────┼─────────┼────┼────■────■──┤ H ├─░────────────────┤ X ├──┼────┼────┼───╫──╫──╫─┤M├───────────┼────┼────┼────┼────┼────┼────┼────────────────────────────
               └───┘     ┌─┴─┐┌─┴─┐  │  ┌───┐  │    │    │    │  └───┘ ░                └───┘┌─┴─┐  │    │   ║  ║  ║ └╥┘┌─┐        │    │    │    │    │    │    │                            
   a_x_4: ─|0>───────────┤ X ├┤ X ├──┼──┤ H ├──┼────┼────┼────┼────────░─────────────────────┤ X ├──┼────┼───╫──╫──╫──╫─┤M├────────┼────┼────┼────┼────┼────┼────┼────────────────────────────
                         └───┘└───┘┌─┴─┐└───┘┌─┴─┐  │  ┌─┴─┐  │  ┌───┐ ░                     └───┘┌─┴─┐  │   ║  ║  ║  ║ └╥┘┌─┐     │    │    │    │    │    │    │                            
   a_x_5: ─|0>─────────────────────┤ X ├─────┤ X ├──┼──┤ X ├──┼──┤ H ├─░──────────────────────────┤ X ├──┼───╫──╫──╫──╫──╫─┤M├─────┼────┼────┼────┼────┼────┼────┼────────────────────────────
                                   └───┘     └───┘┌─┴─┐└───┘┌─┴─┐├───┤ ░                          └───┘┌─┴─┐ ║  ║  ║  ║  ║ └╥┘┌─┐  │    │    │    │    │    │    │                            
   a_x_6: ─|0>────────────────────────────────────┤ X ├─────┤ X ├┤ H ├─░───────────────────────────────┤ X ├─╫──╫──╫──╫──╫──╫─┤M├──┼────┼────┼────┼────┼────┼────┼────────────────────────────
               ┌───┐                              └───┘     └───┘└───┘ ░                               └───┘ ║  ║  ║  ║  ║  ║ └╥┘  │    │    │    │    │    │    │  ┌───┐┌─┐                  
   a_z_0: ─|0>─┤ H ├──■────■─────────■─────────────────────────────────░─────────────────────────────────────╫──╫──╫──╫──╫──╫──╫───■────┼────┼────┼────┼────┼────┼──┤ H ├┤M├──────────────────
               ├───┤  │    │         │                                 ░                                     ║  ║  ║  ║  ║  ║  ║        │    │    │    │    │    │  ├───┤└╥┘┌─┐               
   a_z_1: ─|0>─┤ H ├──┼────┼────■────┼────■────■───────────────────────░─────────────────────────────────────╫──╫──╫──╫──╫──╫──╫────────■────┼────┼────┼────┼────┼──┤ H ├─╫─┤M├───────────────
               └───┘┌─┴─┐  │  ┌─┴─┐  │    │    │                       ░                                     ║  ║  ║  ║  ║  ║  ║             │    │    │    │    │  ├───┤ ║ └╥┘┌─┐            
   a_z_2: ─|0>──────┤ X ├──┼──┤ X ├──┼────┼────┼───────────────────────░─────────────────────────────────────╫──╫──╫──╫──╫──╫──╫─────────────■────┼────┼────┼────┼──┤ H ├─╫──╫─┤M├────────────
               ┌───┐└───┘  │  └───┘  │    │    │                       ░                                     ║  ║  ║  ║  ║  ║  ║                  │    │    │    │  ├───┤ ║  ║ └╥┘┌─┐         
   a_z_3: ─|0>─┤ H ├───────┼────■────┼────┼────┼────■────■─────────────░─────────────────────────────────────╫──╫──╫──╫──╫──╫──╫──────────────────■────┼────┼────┼──┤ H ├─╫──╫──╫─┤M├─────────
               └───┘     ┌─┴─┐┌─┴─┐  │    │    │    │    │             ░                                     ║  ║  ║  ║  ║  ║  ║                       │    │    │  ├───┤ ║  ║  ║ └╥┘┌─┐      
   a_z_4: ─|0>───────────┤ X ├┤ X ├──┼────┼────┼────┼────┼─────────────░─────────────────────────────────────╫──╫──╫──╫──╫──╫──╫───────────────────────■────┼────┼──┤ H ├─╫──╫──╫──╫─┤M├──────
                         └───┘└───┘┌─┴─┐┌─┴─┐  │  ┌─┴─┐  │             ░                                     ║  ║  ║  ║  ║  ║  ║                            │    │  ├───┤ ║  ║  ║  ║ └╥┘┌─┐   
   a_z_5: ─|0>─────────────────────┤ X ├┤ X ├──┼──┤ X ├──┼─────────────░─────────────────────────────────────╫──╫──╫──╫──╫──╫──╫────────────────────────────■────┼──┤ H ├─╫──╫──╫──╫──╫─┤M├───
                                   └───┘└───┘┌─┴─┐└───┘┌─┴─┐           ░                                     ║  ║  ║  ║  ║  ║  ║                                 │  ├───┤ ║  ║  ║  ║  ║ └╥┘┌─┐
   a_z_6: ─|0>───────────────────────────────┤ X ├─────┤ X ├───────────░─────────────────────────────────────╫──╫──╫──╫──╫──╫──╫─────────────────────────────────■──┤ H ├─╫──╫──╫──╫──╫──╫─┤M├
                                             └───┘     └───┘           ░                                     ║  ║  ║  ║  ║  ║  ║                                    └───┘ ║  ║  ║  ║  ║  ║ └╥┘
   c_x: 7/═══════════════════════════════════════════════════════════════════════════════════════════════════╩══╩══╩══╩══╩══╩══╩══════════════════════════════════════════╬══╬══╬══╬══╬══╬══╬═
                                                                                                             0  1  2  3  4  5  6                                          ║  ║  ║  ║  ║  ║  ║ 
   c_z: 7/════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╩══╩══╩══╩══╩══╩══╩═
                                                                                                                                                                          0  1  2  3  4  5  6 
References
knill_ec — Knill-style error correction by teleportation: the data block is Bell-measured against one half of a logical Bell pair and the state continues on the other half, which is swapped back into the data register. Not fault-tolerant: the Bell pair is unverified. [non-FT]
Transversal readout cregs: c_1 → H_Z, c_2 → H_X
Registers
qreg q_data: scope=block, ref=data_qreg
qreg a_1: scope=scratch, size=7
qreg a_2: scope=scratch, size=7
creg c_1: scope=output, size=7, purpose=transversal_readout
creg c_2: scope=output, size=7, purpose=transversal_readout
QASM source
OPENQASM 3.0;
include "stdgates.inc";
bit[7] c_1;
bit[7] c_2;
qubit[7] q_data;
qubit[7] a_1;
qubit[7] a_2;
reset a_1[0];
reset a_1[1];
reset a_1[2];
reset a_1[3];
reset a_1[4];
reset a_1[5];
reset a_1[6];
reset a_2[0];
reset a_2[1];
reset a_2[2];
reset a_2[3];
reset a_2[4];
reset a_2[5];
reset a_2[6];
h a_1[0];
h a_1[1];
h a_1[3];
cx a_1[0], a_1[2];
cx a_1[0], a_1[4];
cx a_1[0], a_1[5];
cx a_1[1], a_1[2];
cx a_1[1], a_1[5];
cx a_1[1], a_1[6];
cx a_1[3], a_1[4];
cx a_1[3], a_1[5];
cx a_1[3], a_1[6];
h a_1[0];
h a_1[1];
h a_1[2];
h a_1[3];
h a_1[4];
h a_1[5];
h a_1[6];
h a_2[0];
h a_2[1];
h a_2[3];
cx a_2[0], a_2[2];
cx a_2[0], a_2[4];
cx a_2[0], a_2[5];
cx a_2[1], a_2[2];
cx a_2[1], a_2[5];
cx a_2[1], a_2[6];
cx a_2[3], a_2[4];
cx a_2[3], a_2[5];
cx a_2[3], a_2[6];
cx a_1[0], a_2[0];
cx a_1[1], a_2[1];
cx a_1[2], a_2[2];
cx a_1[3], a_2[3];
cx a_1[4], a_2[4];
cx a_1[5], a_2[5];
cx a_1[6], a_2[6];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_1[0], a_1[1], a_1[2], a_1[3], a_1[4], a_1[5], a_1[6], a_2[0], a_2[1], a_2[2], a_2[3], a_2[4], a_2[5], a_2[6];
cx q_data[0], a_1[0];
cx q_data[1], a_1[1];
cx q_data[2], a_1[2];
cx q_data[3], a_1[3];
cx q_data[4], a_1[4];
cx q_data[5], a_1[5];
cx q_data[6], a_1[6];
c_1[0] = measure a_1[0];
c_1[1] = measure a_1[1];
c_1[2] = measure a_1[2];
c_1[3] = measure a_1[3];
c_1[4] = measure a_1[4];
c_1[5] = measure a_1[5];
c_1[6] = measure a_1[6];
h q_data[0];
h q_data[1];
h q_data[2];
h q_data[3];
h q_data[4];
h q_data[5];
h q_data[6];
c_2[0] = measure q_data[0];
c_2[1] = measure q_data[1];
c_2[2] = measure q_data[2];
c_2[3] = measure q_data[3];
c_2[4] = measure q_data[4];
c_2[5] = measure q_data[5];
c_2[6] = measure q_data[6];
barrier a_2[0], a_2[1], a_2[2], a_2[3], a_2[4], a_2[5], a_2[6];
if (c_1[0]) {
  x a_2[0];
}
if (c_1[1]) {
  x a_2[0];
}
if (c_1[2]) {
  x a_2[0];
}
if (c_1[0]) {
  x a_2[1];
}
if (c_1[1]) {
  x a_2[1];
}
if (c_1[2]) {
  x a_2[1];
}
if (c_1[0]) {
  x a_2[2];
}
if (c_1[1]) {
  x a_2[2];
}
if (c_1[2]) {
  x a_2[2];
}
if (c_2[0]) {
  z a_2[0];
}
if (c_2[1]) {
  z a_2[0];
}
if (c_2[2]) {
  z a_2[0];
}
if (c_2[0]) {
  z a_2[1];
}
if (c_2[1]) {
  z a_2[1];
}
if (c_2[2]) {
  z a_2[1];
}
if (c_2[0]) {
  z a_2[2];
}
if (c_2[1]) {
  z a_2[2];
}
if (c_2[2]) {
  z a_2[2];
}
swap a_2[0], q_data[0];
swap a_2[1], q_data[1];
swap a_2[2], q_data[2];
swap a_2[3], q_data[3];
swap a_2[4], q_data[4];
swap a_2[5], q_data[5];
swap a_2[6], q_data[6];
Circuit
                                                                                                          ░      ┌───┐                                                ┌─┐                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
q_data_0: ────────────────────────────────────────────────────────────────────────────────────────────────░───■──┤ H ├────────────────────────────────────────────────┤M├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────X───────────────────────────────────
                                                                                                          ░   │  └───┘┌───┐                                           └╥┘┌─┐                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        │                                   
q_data_1: ────────────────────────────────────────────────────────────────────────────────────────────────░───┼────■──┤ H ├────────────────────────────────────────────╫─┤M├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────X────
                                                                                                          ░   │    │  └───┘┌───┐                                       ║ └╥┘┌─┐                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     │                              │    
q_data_2: ────────────────────────────────────────────────────────────────────────────────────────────────░───┼────┼────■──┤ H ├───────────────────────────────────────╫──╫─┤M├─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────┼──X─
                                                                                                          ░   │    │    │  └───┘┌───┐                                  ║  ║ └╥┘┌─┐                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  │                              │  │ 
q_data_3: ────────────────────────────────────────────────────────────────────────────────────────────────░───┼────┼────┼────■──┤ H ├──────────────────────────────────╫──╫──╫─┤M├──────────────────────────────────────────────────────────────────────────────────────────────X───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────┼──┼─
                                                                                                          ░   │    │    │    │  └───┘┌───┐                             ║  ║  ║ └╥┘┌─┐                                                                                           │                                                                                                                                                                                                                                                                                                                                                                                                                   │                              │  │ 
q_data_4: ────────────────────────────────────────────────────────────────────────────────────────────────░───┼────┼────┼────┼────■──┤ H ├─────────────────────────────╫──╫──╫──╫─┤M├───────────────────────────────────────────────────────────────────────────────────────────┼──X────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────┼──┼─
                                                                                                          ░   │    │    │    │    │  └───┘┌───┐                        ║  ║  ║  ║ └╥┘┌─┐                                                                                        │  │                                                                                                                                                                                                                                                                                                                                                                                                                │                              │  │ 
q_data_5: ────────────────────────────────────────────────────────────────────────────────────────────────░───┼────┼────┼────┼────┼────■──┤ H ├────────────────────────╫──╫──╫──╫──╫─┤M├────────────────────────────────────────────────────────────────────────────────────────┼──┼──X─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────┼──┼─
                                                                                                          ░   │    │    │    │    │    │  └───┘┌───┐                   ║  ║  ║  ║  ║ └╥┘┌─┐                                                                                     │  │  │                                                                                                                                                                                                                                                                                                                                                                                                             │                              │  │ 
q_data_6: ────────────────────────────────────────────────────────────────────────────────────────────────░───┼────┼────┼────┼────┼────┼────■──┤ H ├───────────────────╫──╫──╫──╫──╫──╫─┤M├─────────────────────────────────────────────────────────────────────────────────────┼──┼──┼──X──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────┼──┼─
               ┌───┐                    ┌───┐                                                             ░ ┌─┴─┐  │    │    │    │    │    │  └┬─┬┘                   ║  ║  ║  ║  ║  ║ └╥┘                                                                                     │  │  │  │                                                                                                                                                                                                                                                                                                                                                                                                          │                              │  │ 
   a_1_0: ─|0>─┤ H ├──■────■─────────■──┤ H ├──────────────────────■──────────────────────────────────────░─┤ X ├──┼────┼────┼────┼────┼────┼───┤M├────────────────────╫──╫──╫──╫──╫──╫──╫──────────────────────────────────────────────────────────────────────────────────────┼──┼──┼──┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────┼──┼─
               ├───┤  │    │         │  └───┘               ┌───┐  │                                      ░ └───┘┌─┴─┐  │    │    │    │    │   └╥┘ ┌─┐                ║  ║  ║  ║  ║  ║  ║                                                                                      │  │  │  │                                                                                                                                                                                                                                                                                                                                                                                                          │                              │  │ 
   a_1_1: ─|0>─┤ H ├──┼────┼────■────┼─────────■─────────■──┤ H ├──┼───────────────────■──────────────────░──────┤ X ├──┼────┼────┼────┼────┼────╫──┤M├────────────────╫──╫──╫──╫──╫──╫──╫──────────────────────────────────────────────────────────────────────────────────────┼──┼──┼──┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────┼──┼─
               └───┘┌─┴─┐  │  ┌─┴─┐  │  ┌───┐  │         │  └───┘  │                   │                  ░      └───┘┌─┴─┐  │    │    │    │    ║  └╥┘┌─┐             ║  ║  ║  ║  ║  ║  ║                                                                                      │  │  │  │                                                                                                                                                                                                                                                                                                                                                                                                          │                              │  │ 
   a_1_2: ─|0>──────┤ X ├──┼──┤ X ├──┼──┤ H ├──┼────■────┼─────────┼───────────────────┼──────────────────░───────────┤ X ├──┼────┼────┼────┼────╫───╫─┤M├─────────────╫──╫──╫──╫──╫──╫──╫──────────────────────────────────────────────────────────────────────────────────────┼──┼──┼──┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────┼──┼─
               ┌───┐└───┘  │  └───┘  │  └───┘  │    │    │         │            ┌───┐  │                  ░           └───┘┌─┴─┐  │    │    │    ║   ║ └╥┘┌─┐          ║  ║  ║  ║  ║  ║  ║                                                                                      │  │  │  │                                                                                                                                                                                                                                                                                                                                                                                                          │                              │  │ 
   a_1_3: ─|0>─┤ H ├───────┼────■────┼─────────┼────┼────┼────■────┼─────────■──┤ H ├──┼─────────■────────░────────────────┤ X ├──┼────┼────┼────╫───╫──╫─┤M├──────────╫──╫──╫──╫──╫──╫──╫──────────────────────────────────────────────────────────────────────────────────────┼──┼──┼──┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────┼──┼─
               └───┘     ┌─┴─┐┌─┴─┐  │  ┌───┐  │    │    │    │    │         │  └───┘  │         │        ░                └───┘┌─┴─┐  │    │    ║   ║  ║ └╥┘┌─┐       ║  ║  ║  ║  ║  ║  ║                                                                                      │  │  │  │                                                                                                                                                                                                                                                                                                                                                                                                          │                              │  │ 
   a_1_4: ─|0>───────────┤ X ├┤ X ├──┼──┤ H ├──┼────┼────┼────┼────┼────■────┼─────────┼─────────┼────────░─────────────────────┤ X ├──┼────┼────╫───╫──╫──╫─┤M├───────╫──╫──╫──╫──╫──╫──╫──────────────────────────────────────────────────────────────────────────────────────┼──┼──┼──┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────┼──┼─
                         └───┘└───┘┌─┴─┐└───┘┌─┴─┐  │    │  ┌─┴─┐  │    │    │  ┌───┐  │         │        ░                     └───┘┌─┴─┐  │    ║   ║  ║  ║ └╥┘┌─┐    ║  ║  ║  ║  ║  ║  ║                                                                                      │  │  │  │                                                                                                                                                                                                                                                                                                                                                                                                          │                              │  │ 
   a_1_5: ─|0>─────────────────────┤ X ├─────┤ X ├──┼────┼──┤ X ├──┼────┼────┼──┤ H ├──┼────■────┼────────░──────────────────────────┤ X ├──┼────╫───╫──╫──╫──╫─┤M├────╫──╫──╫──╫──╫──╫──╫──────────────────────────────────────────────────────────────────────────────────────┼──┼──┼──┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────┼──┼─
                                   └───┘     └───┘  │  ┌─┴─┐└───┘  │    │  ┌─┴─┐├───┤  │    │    │        ░                          └───┘┌─┴─┐  ║   ║  ║  ║  ║ └╥┘┌─┐ ║  ║  ║  ║  ║  ║  ║                                                                                      │  │  │  │                                                                                                                                                                                                                                                                                                                                                                                                          │                              │  │ 
   a_1_6: ─|0>──────────────────────────────────────┼──┤ X ├───────┼────┼──┤ X ├┤ H ├──┼────┼────┼────■───░───────────────────────────────┤ X ├──╫───╫──╫──╫──╫──╫─┤M├─╫──╫──╫──╫──╫──╫──╫──────────────────────────────────────────────────────────────────────────────────────┼──┼──┼──┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────┼──┼─
               ┌───┐                                │  └───┘     ┌─┴─┐  │  └───┘└───┘  │    │    │    │   ░   ░                           └───┘  ║   ║  ║  ║  ║  ║ └╥┘ ║  ║  ║  ║  ║  ║  ║    ┌──────   ┌───┐ ───────┐    ┌──────   ┌───┐ ───────┐                              │  │  │  │    ┌──────   ┌───┐ ───────┐                                                                                                                    ┌──────   ┌───┐ ───────┐                                ┌──────   ┌───┐ ───────┐                                ┌──────   ┌───┐ ───────┐                                                                                                                  │                              │  │ 
   a_2_0: ─|0>─┤ H ├──■────■─────────■──────────────┼────────────┤ X ├──┼──────────────┼────┼────┼────┼───░───░──────────────────────────────────╫───╫──╫──╫──╫──╫──╫──╫──╫──╫──╫──╫──╫──╫────┤ If-0  ──┤ X ├  End-0 ├────┤ If-0  ──┤ X ├  End-0 ├──────────────────────────────┼──┼──┼──┼────┤ If-0  ──┤ X ├  End-0 ├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ If-0  ──┤ Z ├  End-0 ├────────────────────────────────┤ If-0  ──┤ Z ├  End-0 ├────────────────────────────────┤ If-0  ──┤ Z ├  End-0 ├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────X──────────────────────────────┼──┼─
               ├───┤  │    │         │              │            └───┘  │            ┌─┴─┐  │    │    │   ░   ░                                  ║   ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║    └──╥───   └───┘ ───────┘    └──╥───   └───┘ ───────┘    ┌──────   ┌───┐ ───────┐  │  │  │  │    └──╥───   └───┘ ───────┘    ┌──────   ┌───┐ ───────┐                                ┌──────   ┌───┐ ───────┐                                └──╥───   └───┘ ───────┘                                └──╥───   └───┘ ───────┘    ┌──────   ┌───┐ ───────┐    └──╥───   └───┘ ───────┘    ┌──────   ┌───┐ ───────┐                                ┌──────   ┌───┐ ───────┐                                                             │  │ 
   a_2_1: ─|0>─┤ H ├──┼────┼────■────┼────■────■────┼───────────────────┼────────────┤ X ├──┼────┼────┼───░───░──────────────────────────────────╫───╫──╫──╫──╫──╫──╫──╫──╫──╫──╫──╫──╫──╫───────╫───────────────────────────╫────────────────────────┤ If-0  ──┤ X ├  End-0 ├──┼──┼──┼──┼───────╫────────────────────────┤ If-0  ──┤ X ├  End-0 ├────────────────────────────────┤ If-0  ──┤ X ├  End-0 ├───────────────────────────────────╫───────────────────────────────────────────────────────╫────────────────────────┤ If-0  ──┤ Z ├  End-0 ├───────╫────────────────────────┤ If-0  ──┤ Z ├  End-0 ├────────────────────────────────┤ If-0  ──┤ Z ├  End-0 ├─────────────────────────────────────────────────────────────X──┼─
               └───┘┌─┴─┐  │  ┌─┴─┐  │    │    │  ┌─┴─┐                 │            └───┘  │    │    │   ░   ░                                  ║   ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║       ║                           ║                        └──╥───   └───┘ ───────┘  │  │  │  │       ║                        └──╥───   └───┘ ───────┘    ┌──────   ┌───┐ ───────┐    └──╥───   └───┘ ───────┘    ┌──────   ┌───┐ ───────┐       ║                        ┌──────   ┌───┐ ───────┐       ║                        └──╥───   └───┘ ───────┘       ║                        └──╥───   └───┘ ───────┘    ┌──────   ┌───┐ ───────┐    └──╥───   └───┘ ───────┘    ┌──────   ┌───┐ ───────┐       ┌──────   ┌───┐ ───────┐     │ 
   a_2_2: ─|0>──────┤ X ├──┼──┤ X ├──┼────┼────┼──┤ X ├─────────────────┼───────────────────┼────┼────┼───░───░──────────────────────────────────╫───╫──╫──╫──╫──╫──╫──╫──╫──╫──╫──╫──╫──╫───────╫───────────────────────────╫───────────────────────────╫──────────────────────┼──┼──┼──┼───────╫───────────────────────────╫────────────────────────┤ If-0  ──┤ X ├  End-0 ├───────╫────────────────────────┤ If-0  ──┤ X ├  End-0 ├───────╫────────────────────────┤ If-0  ──┤ X ├  End-0 ├───────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫────────────────────────┤ If-0  ──┤ Z ├  End-0 ├───────╫────────────────────────┤ If-0  ──┤ Z ├  End-0 ├───────┤ If-0  ──┤ Z ├  End-0 ├─────X─
               ┌───┐└───┘  │  └───┘  │    │    │  └───┘                 │                   │  ┌─┴─┐  │   ░   ░                                  ║   ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║       ║                           ║                           ║                      │  │  │  │       ║                           ║                        └──╥───   └───┘ ───────┘       ║                        └──╥───   └───┘ ───────┘       ║                        └──╥───   └───┘ ───────┘       ║                           ║                           ║                           ║                        └──╥───   └───┘ ───────┘       ║                        └──╥───   └───┘ ───────┘       └──╥───   └───┘ ───────┘       
   a_2_3: ─|0>─┤ H ├───────┼────■────┼────┼────┼────■────■──────────────┼───────────────────┼──┤ X ├──┼───░───░──────────────────────────────────╫───╫──╫──╫──╫──╫──╫──╫──╫──╫──╫──╫──╫──╫───────╫───────────────────────────╫───────────────────────────╫──────────────────────X──┼──┼──┼───────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫──────────────────────────────╫───────────────────────────
               └───┘     ┌─┴─┐┌─┴─┐  │    │    │    │    │            ┌─┴─┐                 │  └───┘  │   ░   ░                                  ║   ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║       ║                           ║                           ║                         │  │  │       ║                           ║                           ║                           ║                           ║                           ║                           ║                           ║                           ║                           ║                           ║                           ║                           ║                           ║                              ║                           
   a_2_4: ─|0>───────────┤ X ├┤ X ├──┼────┼────┼────┼────┼────────────┤ X ├─────────────────┼─────────┼───░───░──────────────────────────────────╫───╫──╫──╫──╫──╫──╫──╫──╫──╫──╫──╫──╫──╫───────╫───────────────────────────╫───────────────────────────╫─────────────────────────X──┼──┼───────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫──────────────────────────────╫───────────────────────────
                         └───┘└───┘┌─┴─┐┌─┴─┐  │  ┌─┴─┐  │            └───┘               ┌─┴─┐       │   ░   ░                                  ║   ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║       ║                           ║                           ║                            │  │       ║                           ║                           ║                           ║                           ║                           ║                           ║                           ║                           ║                           ║                           ║                           ║                           ║                           ║                              ║                           
   a_2_5: ─|0>─────────────────────┤ X ├┤ X ├──┼──┤ X ├──┼────────────────────────────────┤ X ├───────┼───░───░──────────────────────────────────╫───╫──╫──╫──╫──╫──╫──╫──╫──╫──╫──╫──╫──╫───────╫───────────────────────────╫───────────────────────────╫────────────────────────────X──┼───────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫──────────────────────────────╫───────────────────────────
                                   └───┘└───┘┌─┴─┐└───┘┌─┴─┐                              └───┘     ┌─┴─┐ ░   ░                                  ║   ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║       ║                           ║                           ║                               │       ║                           ║                           ║                           ║                           ║                           ║                           ║                           ║                           ║                           ║                           ║                           ║                           ║                           ║                              ║                           
   a_2_6: ─|0>───────────────────────────────┤ X ├─────┤ X ├────────────────────────────────────────┤ X ├─░───░──────────────────────────────────╫───╫──╫──╫──╫──╫──╫──╫──╫──╫──╫──╫──╫──╫───────╫───────────────────────────╫───────────────────────────╫───────────────────────────────X───────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫───────────────────────────╫──────────────────────────────╫───────────────────────────
                                             └───┘     └───┘                                        └───┘ ░   ░                                  ║   ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║  ║ ┌─────╨─────┐               ┌─────╨─────┐               ┌─────╨─────┐                           ┌─────╨─────┐               ┌─────╨─────┐               ┌─────╨─────┐               ┌─────╨─────┐               ┌─────╨─────┐                     ║                     ┌─────╨─────┐                     ║                           ║                           ║                           ║                           ║                           ║                           ║                              ║                           
   c_1: 7/═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╩═══╩══╩══╩══╩══╩══╩══╬══╬══╬══╬══╬══╬══╬═╡ c_1_0=0x1 ╞═══════════════╡ c_1_1=0x1 ╞═══════════════╡ c_1_0=0x1 ╞═══════════════════════════╡ c_1_2=0x1 ╞═══════════════╡ c_1_1=0x1 ╞═══════════════╡ c_1_0=0x1 ╞═══════════════╡ c_1_2=0x1 ╞═══════════════╡ c_1_1=0x1 ╞═════════════════════╬═════════════════════╡ c_1_2=0x1 ╞═════════════════════╬═══════════════════════════╬═══════════════════════════╬═══════════════════════════╬═══════════════════════════╬═══════════════════════════╬═══════════════════════════╬══════════════════════════════╬═══════════════════════════
                                                                                                                                                 0   1  2  3  4  5  6  ║  ║  ║  ║  ║  ║  ║ └───────────┘               └───────────┘               └───────────┘                           └───────────┘               └───────────┘               └───────────┘               └───────────┘               └───────────┘               ┌─────╨─────┐               └───────────┘               ┌─────╨─────┐               ┌─────╨─────┐               ┌─────╨─────┐               ┌─────╨─────┐               ┌─────╨─────┐               ┌─────╨─────┐               ┌─────╨─────┐                  ┌─────╨─────┐                     
   c_2: 7/═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╩══╩══╩══╩══╩══╩══╩═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╡ c_2_0=0x1 ╞═══════════════════════════════════════════╡ c_2_1=0x1 ╞═══════════════╡ c_2_0=0x1 ╞═══════════════╡ c_2_2=0x1 ╞═══════════════╡ c_2_1=0x1 ╞═══════════════╡ c_2_0=0x1 ╞═══════════════╡ c_2_2=0x1 ╞═══════════════╡ c_2_1=0x1 ╞══════════════════╡ c_2_2=0x1 ╞═════════════════════
                                                                                                                                                                       0  1  2  3  4  5  6                                                                                                                                                                                                                                             └───────────┘                                           └───────────┘               └───────────┘               └───────────┘               └───────────┘               └───────────┘               └───────────┘               └───────────┘                  └───────────┘                     
References
Data Measurement (1 outer key)
Z-basis (1 variant, default: direct)
direct — Z-basis measurement of every data qubit. [FT] result_creg: c_data_meas  
Transversal readout cregs: c_data_meas → H_Z
Registers
qreg q_data: scope=block, ref=data_qreg
creg c_data_meas: scope=output, size=7, purpose=logical_data
QASM source
OPENQASM 3.0;
include "stdgates.inc";
bit[7] c_data_meas;
qubit[7] q_data;
c_data_meas[0] = measure q_data[0];
c_data_meas[1] = measure q_data[1];
c_data_meas[2] = measure q_data[2];
c_data_meas[3] = measure q_data[3];
c_data_meas[4] = measure q_data[4];
c_data_meas[5] = measure q_data[5];
c_data_meas[6] = measure q_data[6];
Circuit
               ┌─┐                  
     q_data_0: ┤M├──────────────────
               └╥┘┌─┐               
     q_data_1: ─╫─┤M├───────────────
                ║ └╥┘┌─┐            
     q_data_2: ─╫──╫─┤M├────────────
                ║  ║ └╥┘┌─┐         
     q_data_3: ─╫──╫──╫─┤M├─────────
                ║  ║  ║ └╥┘┌─┐      
     q_data_4: ─╫──╫──╫──╫─┤M├──────
                ║  ║  ║  ║ └╥┘┌─┐   
     q_data_5: ─╫──╫──╫──╫──╫─┤M├───
                ║  ║  ║  ║  ║ └╥┘┌─┐
     q_data_6: ─╫──╫──╫──╫──╫──╫─┤M├
                ║  ║  ║  ║  ║  ║ └╥┘
c_data_meas: 7/═╩══╩══╩══╩══╩══╩══╩═
                0  1  2  3  4  5  6 
Reset (2 outer keys)
|0_L⟩ (3 variants, default: css_encoder)
css_encoder — Reset of every data qubit followed by the preparation of |0_L> with a CSS encoder obtained by Gaussian elimination on H_X. Not fault-tolerant: the encoder is unverified. [non-FT]
Registers
qreg q_data: scope=block, ref=data_qreg
QASM source
OPENQASM 3.0;
include "stdgates.inc";
qubit[7] q_data;
reset q_data[0];
reset q_data[1];
reset q_data[2];
reset q_data[3];
reset q_data[4];
reset q_data[5];
reset q_data[6];
h q_data[0];
h q_data[1];
h q_data[3];
cx q_data[0], q_data[2];
cx q_data[0], q_data[4];
cx q_data[0], q_data[5];
cx q_data[1], q_data[2];
cx q_data[1], q_data[5];
cx q_data[1], q_data[6];
cx q_data[3], q_data[4];
cx q_data[3], q_data[5];
cx q_data[3], q_data[6];
Circuit
               ┌───┐                                        
q_data_0: ─|0>─┤ H ├──■────■─────────■──────────────────────
               ├───┤  │    │         │                      
q_data_1: ─|0>─┤ H ├──┼────┼────■────┼────■────■────────────
               └───┘┌─┴─┐  │  ┌─┴─┐  │    │    │            
q_data_2: ─|0>──────┤ X ├──┼──┤ X ├──┼────┼────┼────────────
               ┌───┐└───┘  │  └───┘  │    │    │            
q_data_3: ─|0>─┤ H ├───────┼────■────┼────┼────┼────■────■──
               └───┘     ┌─┴─┐┌─┴─┐  │    │    │    │    │  
q_data_4: ─|0>───────────┤ X ├┤ X ├──┼────┼────┼────┼────┼──
                         └───┘└───┘┌─┴─┐┌─┴─┐  │  ┌─┴─┐  │  
q_data_5: ─|0>─────────────────────┤ X ├┤ X ├──┼──┤ X ├──┼──
                                   └───┘└───┘┌─┴─┐└───┘┌─┴─┐
q_data_6: ─|0>───────────────────────────────┤ X ├─────┤ X ├
                                             └───┘     └───┘
reset_and_project — Reset to |0_L> by projection: every data qubit is reset, every X check is measured through one ancilla, and the Z correction given by the syndrome is applied. Not fault-tolerant: the syndrome is measured once. [non-FT]
Syndrome cregs: c_synd → H_X (frame=exit)
Registers
qreg q_data: scope=block, ref=data_qreg
qreg a_synd: scope=scratch, size=3
creg c_synd: scope=output, size=3, purpose=syndrome
QASM source
OPENQASM 3.0;
include "stdgates.inc";
bit[3] c_synd;
qubit[7] q_data;
qubit[3] a_synd;
reset q_data[0];
reset q_data[1];
reset q_data[2];
reset q_data[3];
reset q_data[4];
reset q_data[5];
reset q_data[6];
reset a_synd[0];
reset a_synd[1];
reset a_synd[2];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_synd[0], a_synd[1], a_synd[2];
h a_synd[0];
h a_synd[1];
h a_synd[2];
cx a_synd[0], q_data[1];
cx a_synd[0], q_data[2];
cx a_synd[0], q_data[3];
cx a_synd[0], q_data[4];
cx a_synd[1], q_data[0];
cx a_synd[1], q_data[1];
cx a_synd[1], q_data[3];
cx a_synd[1], q_data[5];
cx a_synd[2], q_data[3];
cx a_synd[2], q_data[4];
cx a_synd[2], q_data[5];
cx a_synd[2], q_data[6];
h a_synd[0];
h a_synd[1];
h a_synd[2];
c_synd[0] = measure a_synd[0];
c_synd[1] = measure a_synd[1];
c_synd[2] = measure a_synd[2];
if (c_synd[0]) {
  z q_data[0];
}
if (c_synd[1]) {
  z q_data[0];
}
if (c_synd[0]) {
  z q_data[1];
}
if (c_synd[2]) {
  z q_data[1];
}
if (c_synd[2]) {
  z q_data[3];
}
Circuit
                ░           ┌───┐                                                            ┌──────     ┌───┐ ───────┐          ┌──────     ┌───┐ ───────┐                                                                                                      
q_data_0: ─|0>──░───────────┤ X ├────────────────────────────────────────────────────────────┤ If-0  ────┤ Z ├  End-0 ├──────────┤ If-0  ────┤ Z ├  End-0 ├──────────────────────────────────────────────────────────────────────────────────────────────────────
                ░      ┌───┐└─┬─┘     ┌───┐                                                  └──╥───     └───┘ ───────┘          └──╥───     └───┘ ───────┘     ┌──────     ┌───┐ ───────┐             ┌──────     ┌───┐ ───────┐                                
q_data_1: ─|0>──░──────┤ X ├──┼───────┤ X ├─────────────────────────────────────────────────────╫───────────────────────────────────╫───────────────────────────┤ If-0  ────┤ Z ├  End-0 ├─────────────┤ If-0  ────┤ Z ├  End-0 ├────────────────────────────────
                ░      └─┬─┘  │  ┌───┐└─┬─┘                                                     ║                                   ║                           └──╥───     └───┘ ───────┘             └──╥───     └───┘ ───────┘                                
q_data_2: ─|0>──░────────┼────┼──┤ X ├──┼───────────────────────────────────────────────────────╫───────────────────────────────────╫──────────────────────────────╫──────────────────────────────────────╫──────────────────────────────────────────────────────
                ░        │    │  └─┬─┘  │  ┌───┐     ┌───┐     ┌───┐                            ║                                   ║                              ║                                      ║                           ┌──────     ┌───┐ ───────┐ 
q_data_3: ─|0>──░────────┼────┼────┼────┼──┤ X ├─────┤ X ├─────┤ X ├────────────────────────────╫───────────────────────────────────╫──────────────────────────────╫──────────────────────────────────────╫───────────────────────────┤ If-0  ────┤ Z ├  End-0 ├─
                ░        │    │    │    │  └─┬─┘┌───┐└─┬─┘     └─┬─┘     ┌───┐                  ║                                   ║                              ║                                      ║                           └──╥───     └───┘ ───────┘ 
q_data_4: ─|0>──░────────┼────┼────┼────┼────┼──┤ X ├──┼─────────┼───────┤ X ├──────────────────╫───────────────────────────────────╫──────────────────────────────╫──────────────────────────────────────╫──────────────────────────────╫───────────────────────
                ░        │    │    │    │    │  └─┬─┘  │  ┌───┐  │       └─┬─┘   ┌───┐          ║                                   ║                              ║                                      ║                              ║                       
q_data_5: ─|0>──░────────┼────┼────┼────┼────┼────┼────┼──┤ X ├──┼─────────┼─────┤ X ├──────────╫───────────────────────────────────╫──────────────────────────────╫──────────────────────────────────────╫──────────────────────────────╫───────────────────────
                ░        │    │    │    │    │    │    │  └─┬─┘  │         │     └─┬─┘          ║                       ┌───┐       ║                              ║                                      ║                              ║                       
q_data_6: ─|0>──░────────┼────┼────┼────┼────┼────┼────┼────┼────┼─────────┼───────┼────────────╫───────────────────────┤ X ├───────╫──────────────────────────────╫──────────────────────────────────────╫──────────────────────────────╫───────────────────────
                ░ ┌───┐  │    │    │    │    │    │    │    │    │  ┌───┐  │  ┌─┐  │            ║                       └─┬─┘       ║                              ║                                      ║                              ║                       
a_synd_0: ─|0>──░─┤ H ├──■────┼────■────┼────■────■────┼────┼────┼──┤ H ├──┼──┤M├──┼────────────╫─────────────────────────┼─────────╫──────────────────────────────╫──────────────────────────────────────╫──────────────────────────────╫───────────────────────
                ░ ├───┤       │         │              │    │    │  ├───┤  │  └╥┘  │  ┌─┐       ║                         │         ║                              ║                                      ║                              ║                       
a_synd_1: ─|0>──░─┤ H ├───────■─────────■──────────────■────■────┼──┤ H ├──┼───╫───┼──┤M├───────╫─────────────────────────┼─────────╫──────────────────────────────╫──────────────────────────────────────╫──────────────────────────────╫───────────────────────
                ░ ├───┤                                          │  └───┘  │   ║   │  └╥┘       ║                         │         ║                              ║                       ┌───┐┌─┐       ║                              ║                       
a_synd_2: ─|0>──░─┤ H ├──────────────────────────────────────────■─────────■───╫───■───╫────────╫─────────────────────────■─────────╫──────────────────────────────╫───────────────────────┤ H ├┤M├───────╫──────────────────────────────╫───────────────────────
                ░ └───┘                                                        ║       ║ ┌──────╨───────┐                    ┌──────╨───────┐               ┌──────╨───────┐               └───┘└╥┘┌──────╨───────┐               ┌──────╨───────┐               
c_synd: 3/═════════════════════════════════════════════════════════════════════╩═══════╩═╡ c_synd_0=0x1 ╞════════════════════╡ c_synd_1=0x1 ╞═══════════════╡ c_synd_0=0x1 ╞═════════════════════╩═╡ c_synd_2=0x1 ╞═══════════════╡ c_synd_2=0x1 ╞═══════════════
                                                                               0       1 └──────────────┘                    └──────────────┘               └──────────────┘                     2 └──────────────┘               └──────────────┘               
mqt_heuristic — Reset of every data qubit followed by the preparation of |0_L> with a circuit from MQT QECC heuristic synthesis. Not fault-tolerant: the circuit is unverified. [non-FT]
Registers
qreg q_data: scope=block, ref=data_qreg
QASM source
OPENQASM 3.0;
include "stdgates.inc";
qubit[7] q_data;
reset q_data[0];
reset q_data[1];
reset q_data[2];
reset q_data[3];
reset q_data[4];
reset q_data[5];
reset q_data[6];
h q_data[0];
h q_data[1];
h q_data[3];
cx q_data[3], q_data[5];
cx q_data[1], q_data[2];
cx q_data[5], q_data[6];
cx q_data[3], q_data[4];
cx q_data[0], q_data[1];
cx q_data[2], q_data[4];
cx q_data[0], q_data[5];
cx q_data[1], q_data[3];
Circuit
               ┌───┐                         
q_data_0: ─|0>─┤ H ├───────■─────────■───────
               ├───┤     ┌─┴─┐       │       
q_data_1: ─|0>─┤ H ├──■──┤ X ├───────┼────■──
               └───┘┌─┴─┐└───┘       │    │  
q_data_2: ─|0>──────┤ X ├───────■────┼────┼──
               ┌───┐└───┘       │    │  ┌─┴─┐
q_data_3: ─|0>─┤ H ├──■────■────┼────┼──┤ X ├
               └───┘  │  ┌─┴─┐┌─┴─┐  │  └───┘
q_data_4: ─|0>────────┼──┤ X ├┤ X ├──┼───────
                    ┌─┴─┐└───┘└───┘┌─┴─┐     
q_data_5: ─|0>──────┤ X ├──■───────┤ X ├─────
                    └───┘┌─┴─┐     └───┘     
q_data_6: ─|0>───────────┤ X ├───────────────
                         └───┘               
References
|+_L⟩ (1 variant, default: css_encoder_conjugate)
css_encoder_conjugate — Reset of every data qubit followed by the preparation of |+_L> with the same CSS encoder applied to H_X extended by the logical X support. Not fault-tolerant: the encoder is unverified. [non-FT]
Registers
qreg q_data: scope=block, ref=data_qreg
QASM source
OPENQASM 3.0;
include "stdgates.inc";
qubit[7] q_data;
reset q_data[0];
reset q_data[1];
reset q_data[2];
reset q_data[3];
reset q_data[4];
reset q_data[5];
reset q_data[6];
reset q_data[0];
reset q_data[1];
reset q_data[2];
reset q_data[3];
reset q_data[4];
reset q_data[5];
reset q_data[6];
h q_data[0];
h q_data[1];
h q_data[2];
h q_data[3];
cx q_data[0], q_data[5];
cx q_data[0], q_data[6];
cx q_data[1], q_data[4];
cx q_data[1], q_data[5];
cx q_data[2], q_data[4];
cx q_data[2], q_data[6];
cx q_data[3], q_data[4];
cx q_data[3], q_data[5];
cx q_data[3], q_data[6];
Circuit
                    ┌───┐                                             
q_data_0: ─|0>──|0>─┤ H ├──■─────────■────────────────────────────────
                    ├───┤  │         │                                
q_data_1: ─|0>──|0>─┤ H ├──┼────■────┼────■───────────────────────────
                    ├───┤  │    │    │    │                           
q_data_2: ─|0>──|0>─┤ H ├──┼────┼────┼────┼────■────■─────────────────
                    ├───┤  │    │    │    │    │    │                 
q_data_3: ─|0>──|0>─┤ H ├──┼────┼────┼────┼────┼────┼────■────■────■──
                    └───┘  │  ┌─┴─┐  │    │  ┌─┴─┐  │  ┌─┴─┐  │    │  
q_data_4: ─|0>──|0>────────┼──┤ X ├──┼────┼──┤ X ├──┼──┤ X ├──┼────┼──
                         ┌─┴─┐└───┘  │  ┌─┴─┐└───┘  │  └───┘┌─┴─┐  │  
q_data_5: ─|0>──|0>──────┤ X ├───────┼──┤ X ├───────┼───────┤ X ├──┼──
                         └───┘     ┌─┴─┐└───┘     ┌─┴─┐     └───┘┌─┴─┐
q_data_6: ─|0>──|0>────────────────┤ X ├──────────┤ X ├──────────┤ X ├
                                   └───┘          └───┘          └───┘
Logical Gates (x, z, cx, h, s)
x operands: [q*], default: transversal
transversal — Transversal logical X: Pauli X on each qubit of the logical X support. [FT]
Registers
qreg q_data: scope=block, ref=data_qreg, block=0
QASM source
OPENQASM 3.0;
include "stdgates.inc";
qubit[7] q_data;
x q_data[0];
x q_data[1];
x q_data[2];
Circuit
          ┌───┐
q_data_0: ┤ X ├
          ├───┤
q_data_1: ┤ X ├
          ├───┤
q_data_2: ┤ X ├
          └───┘
q_data_3: ─────
               
q_data_4: ─────
               
q_data_5: ─────
               
q_data_6: ─────
               
References
z operands: [q*], default: transversal
transversal — Transversal logical Z: Pauli Z on each qubit of the logical Z support. [FT]
Registers
qreg q_data: scope=block, ref=data_qreg, block=0
QASM source
OPENQASM 3.0;
include "stdgates.inc";
qubit[7] q_data;
z q_data[0];
z q_data[1];
z q_data[2];
Circuit
          ┌───┐
q_data_0: ┤ Z ├
          ├───┤
q_data_1: ┤ Z ├
          ├───┤
q_data_2: ┤ Z ├
          └───┘
q_data_3: ─────
               
q_data_4: ─────
               
q_data_5: ─────
               
q_data_6: ─────
               
References
cx operands: [q* (control), b1.q* (target)], default: transversal
transversal — Transversal CNOT between two code blocks: one CNOT on each pair of corresponding qubits. [FT]
Registers
qreg q_data_ctrl: scope=block, ref=data_qreg, block=0
qreg q_data_tgt: scope=block, ref=data_qreg, block=1
QASM source
OPENQASM 3.0;
include "stdgates.inc";
qubit[7] q_data_ctrl;
qubit[7] q_data_tgt;
cx q_data_ctrl[0], q_data_tgt[0];
cx q_data_ctrl[1], q_data_tgt[1];
cx q_data_ctrl[2], q_data_tgt[2];
cx q_data_ctrl[3], q_data_tgt[3];
cx q_data_ctrl[4], q_data_tgt[4];
cx q_data_ctrl[5], q_data_tgt[5];
cx q_data_ctrl[6], q_data_tgt[6];
Circuit
                                                  
q_data_ctrl_0: ──■────────────────────────────────
                 │                                
q_data_ctrl_1: ──┼────■───────────────────────────
                 │    │                           
q_data_ctrl_2: ──┼────┼────■──────────────────────
                 │    │    │                      
q_data_ctrl_3: ──┼────┼────┼────■─────────────────
                 │    │    │    │                 
q_data_ctrl_4: ──┼────┼────┼────┼────■────────────
                 │    │    │    │    │            
q_data_ctrl_5: ──┼────┼────┼────┼────┼────■───────
                 │    │    │    │    │    │       
q_data_ctrl_6: ──┼────┼────┼────┼────┼────┼────■──
               ┌─┴─┐  │    │    │    │    │    │  
 q_data_tgt_0: ┤ X ├──┼────┼────┼────┼────┼────┼──
               └───┘┌─┴─┐  │    │    │    │    │  
 q_data_tgt_1: ─────┤ X ├──┼────┼────┼────┼────┼──
                    └───┘┌─┴─┐  │    │    │    │  
 q_data_tgt_2: ──────────┤ X ├──┼────┼────┼────┼──
                         └───┘┌─┴─┐  │    │    │  
 q_data_tgt_3: ───────────────┤ X ├──┼────┼────┼──
                              └───┘┌─┴─┐  │    │  
 q_data_tgt_4: ────────────────────┤ X ├──┼────┼──
                                   └───┘┌─┴─┐  │  
 q_data_tgt_5: ─────────────────────────┤ X ├──┼──
                                        └───┘┌─┴─┐
 q_data_tgt_6: ──────────────────────────────┤ X ├
                                             └───┘
h operands: [q*], default: transversal
transversal — Transversal Hadamard: H on every qubit. The code is self-dual, so the stabilizer group maps to itself. [FT]
Registers
qreg q_data: scope=block, ref=data_qreg, block=0
QASM source
OPENQASM 3.0;
include "stdgates.inc";
qubit[7] q_data;
h q_data[0];
h q_data[1];
h q_data[2];
h q_data[3];
h q_data[4];
h q_data[5];
h q_data[6];
Circuit
          ┌───┐
q_data_0: ┤ H ├
          ├───┤
q_data_1: ┤ H ├
          ├───┤
q_data_2: ┤ H ├
          ├───┤
q_data_3: ┤ H ├
          ├───┤
q_data_4: ┤ H ├
          ├───┤
q_data_5: ┤ H ├
          ├───┤
q_data_6: ┤ H ├
          └───┘
References
s operands: [q*], default: transversal
transversal — Transversal S: S-dagger on every qubit, which acts as logical S. Every face weight is a multiple of four, so the stabilizer group maps to itself. [FT]
Registers
qreg q_data: scope=block, ref=data_qreg, block=0
QASM source
OPENQASM 3.0;
include "stdgates.inc";
qubit[7] q_data;
sdg q_data[0];
sdg q_data[1];
sdg q_data[2];
sdg q_data[3];
sdg q_data[4];
sdg q_data[5];
sdg q_data[6];
Circuit
          ┌─────┐
q_data_0: ┤ Sdg ├
          ├─────┤
q_data_1: ┤ Sdg ├
          ├─────┤
q_data_2: ┤ Sdg ├
          ├─────┤
q_data_3: ┤ Sdg ├
          ├─────┤
q_data_4: ┤ Sdg ├
          ├─────┤
q_data_5: ┤ Sdg ├
          ├─────┤
q_data_6: ┤ Sdg ├
          └─────┘
References
Logical Measurement (Z)
Z operands: [q0], default: encoded_helper
encoded_helper — Non-destructive measurement of logical Z: a helper block in |0_L> takes a transversal CNOT from the data and is read out qubit by qubit. Not fault-tolerant: the helper block is unverified, and the result bit is the raw parity of that readout, with no correction applied. [non-FT] result_creg: c_result  
Transversal readout cregs: c_check → H_Z (block_index=0)
Registers
qreg q_data: scope=block, ref=data_qreg, block=0
qreg a_check: scope=scratch, size=7
qreg a_result: scope=scratch, size=1
creg c_check: scope=output, size=7, purpose=transversal_readout
creg c_result: scope=output, size=1, purpose=logical_measurement
QASM source
OPENQASM 3.0;
include "stdgates.inc";
bit[7] c_check;
bit[1] c_result;
qubit[7] q_data;
qubit[7] a_check;
qubit[1] a_result;
reset a_check[0];
reset a_check[1];
reset a_check[2];
reset a_check[3];
reset a_check[4];
reset a_check[5];
reset a_check[6];
h a_check[0];
h a_check[1];
h a_check[3];
cx a_check[0], a_check[2];
cx a_check[0], a_check[4];
cx a_check[0], a_check[5];
cx a_check[1], a_check[2];
cx a_check[1], a_check[5];
cx a_check[1], a_check[6];
cx a_check[3], a_check[4];
cx a_check[3], a_check[5];
cx a_check[3], a_check[6];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_check[0], a_check[1], a_check[2], a_check[3], a_check[4], a_check[5], a_check[6], a_result[0];
cx q_data[0], a_check[0];
cx q_data[1], a_check[1];
cx q_data[2], a_check[2];
cx q_data[3], a_check[3];
cx q_data[4], a_check[4];
cx q_data[5], a_check[5];
cx q_data[6], a_check[6];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_check[0], a_check[1], a_check[2], a_check[3], a_check[4], a_check[5], a_check[6], a_result[0];
c_check[0] = measure a_check[0];
c_check[1] = measure a_check[1];
c_check[2] = measure a_check[2];
c_check[3] = measure a_check[3];
c_check[4] = measure a_check[4];
c_check[5] = measure a_check[5];
c_check[6] = measure a_check[6];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_check[0], a_check[1], a_check[2], a_check[3], a_check[4], a_check[5], a_check[6], a_result[0];
reset a_result[0];
if (c_check[0]) {
  x a_result[0];
}
if (c_check[1]) {
  x a_result[0];
}
if (c_check[2]) {
  x a_result[0];
}
c_result[0] = measure a_result[0];
Circuit
                                                               ░                                     ░                       ░                                                                                                         
  q_data_0: ───────────────────────────────────────────────────░───■─────────────────────────────────░───────────────────────░─────────────────────────────────────────────────────────────────────────────────────────────────────────
                                                               ░   │                                 ░                       ░                                                                                                         
  q_data_1: ───────────────────────────────────────────────────░───┼────■────────────────────────────░───────────────────────░─────────────────────────────────────────────────────────────────────────────────────────────────────────
                                                               ░   │    │                            ░                       ░                                                                                                         
  q_data_2: ───────────────────────────────────────────────────░───┼────┼────■───────────────────────░───────────────────────░─────────────────────────────────────────────────────────────────────────────────────────────────────────
                                                               ░   │    │    │                       ░                       ░                                                                                                         
  q_data_3: ───────────────────────────────────────────────────░───┼────┼────┼────■──────────────────░───────────────────────░─────────────────────────────────────────────────────────────────────────────────────────────────────────
                                                               ░   │    │    │    │                  ░                       ░                                                                                                         
  q_data_4: ───────────────────────────────────────────────────░───┼────┼────┼────┼────■─────────────░───────────────────────░─────────────────────────────────────────────────────────────────────────────────────────────────────────
                                                               ░   │    │    │    │    │             ░                       ░                                                                                                         
  q_data_5: ───────────────────────────────────────────────────░───┼────┼────┼────┼────┼────■────────░───────────────────────░─────────────────────────────────────────────────────────────────────────────────────────────────────────
                                                               ░   │    │    │    │    │    │        ░                       ░                                                                                                         
  q_data_6: ───────────────────────────────────────────────────░───┼────┼────┼────┼────┼────┼────■───░───────────────────────░─────────────────────────────────────────────────────────────────────────────────────────────────────────
                 ┌───┐                                         ░ ┌─┴─┐  │    │    │    │    │    │   ░ ┌─┐                   ░                                                                                                         
 a_check_0: ─|0>─┤ H ├──■────■─────────■───────────────────────░─┤ X ├──┼────┼────┼────┼────┼────┼───░─┤M├───────────────────░─────────────────────────────────────────────────────────────────────────────────────────────────────────
                 ├───┤  │    │         │                       ░ └───┘┌─┴─┐  │    │    │    │    │   ░ └╥┘┌─┐                ░                                                                                                         
 a_check_1: ─|0>─┤ H ├──┼────┼────■────┼────■────■─────────────░──────┤ X ├──┼────┼────┼────┼────┼───░──╫─┤M├────────────────░─────────────────────────────────────────────────────────────────────────────────────────────────────────
                 └───┘┌─┴─┐  │  ┌─┴─┐  │    │    │             ░      └───┘┌─┴─┐  │    │    │    │   ░  ║ └╥┘┌─┐             ░                                                                                                         
 a_check_2: ─|0>──────┤ X ├──┼──┤ X ├──┼────┼────┼─────────────░───────────┤ X ├──┼────┼────┼────┼───░──╫──╫─┤M├─────────────░─────────────────────────────────────────────────────────────────────────────────────────────────────────
                 ┌───┐└───┘  │  └───┘  │    │    │             ░           └───┘┌─┴─┐  │    │    │   ░  ║  ║ └╥┘┌─┐          ░                                                                                                         
 a_check_3: ─|0>─┤ H ├───────┼────■────┼────┼────┼────■────■───░────────────────┤ X ├──┼────┼────┼───░──╫──╫──╫─┤M├──────────░─────────────────────────────────────────────────────────────────────────────────────────────────────────
                 └───┘     ┌─┴─┐┌─┴─┐  │    │    │    │    │   ░                └───┘┌─┴─┐  │    │   ░  ║  ║  ║ └╥┘┌─┐       ░                                                                                                         
 a_check_4: ─|0>───────────┤ X ├┤ X ├──┼────┼────┼────┼────┼───░─────────────────────┤ X ├──┼────┼───░──╫──╫──╫──╫─┤M├───────░─────────────────────────────────────────────────────────────────────────────────────────────────────────
                           └───┘└───┘┌─┴─┐┌─┴─┐  │  ┌─┴─┐  │   ░                     └───┘┌─┴─┐  │   ░  ║  ║  ║  ║ └╥┘┌─┐    ░                                                                                                         
 a_check_5: ─|0>─────────────────────┤ X ├┤ X ├──┼──┤ X ├──┼───░──────────────────────────┤ X ├──┼───░──╫──╫──╫──╫──╫─┤M├────░─────────────────────────────────────────────────────────────────────────────────────────────────────────
                                     └───┘└───┘┌─┴─┐└───┘┌─┴─┐ ░                          └───┘┌─┴─┐ ░  ║  ║  ║  ║  ║ └╥┘┌─┐ ░                                                                                                         
 a_check_6: ─|0>───────────────────────────────┤ X ├─────┤ X ├─░───────────────────────────────┤ X ├─░──╫──╫──╫──╫──╫──╫─┤M├─░─────────────────────────────────────────────────────────────────────────────────────────────────────────
                                               └───┘     └───┘ ░                               └───┘ ░  ║  ║  ║  ║  ║  ║ └╥┘ ░           ┌──────     ┌───┐ ───────┐      ┌──────     ┌───┐ ───────┐      ┌──────     ┌───┐ ───────┐ ┌─┐
  a_result: ───────────────────────────────────────────────────░─────────────────────────────────────░──╫──╫──╫──╫──╫──╫──╫──░──|0>──────┤ If-0  ────┤ X ├  End-0 ├──────┤ If-0  ────┤ X ├  End-0 ├──────┤ If-0  ────┤ X ├  End-0 ├─┤M├
                                                               ░                                     ░  ║  ║  ║  ║  ║  ║  ║  ░           └──╥───     └───┘ ───────┘      └──╥───     └───┘ ───────┘      └──╥───     └───┘ ───────┘ └╥┘
                                                                                                        ║  ║  ║  ║  ║  ║  ║         ┌───────╨───────┐               ┌───────╨───────┐               ┌───────╨───────┐                ║ 
 c_check: 7/════════════════════════════════════════════════════════════════════════════════════════════╩══╩══╩══╩══╩══╩══╩═════════╡ c_check_0=0x1 ╞═══════════════╡ c_check_1=0x1 ╞═══════════════╡ c_check_2=0x1 ╞════════════════╬═
                                                                                                        0  1  2  3  4  5  6         └───────────────┘               └───────────────┘               └───────────────┘                ║ 
c_result: 1/═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╩═
                                                                                                                                                                                                                                     0 
bare_ancilla_with_z_checks — Non-destructive measurement of logical Z through one bare ancilla, followed by a measurement of every Z check through one ancilla each. Not fault-tolerant: every measurement uses a single bare ancilla. [non-FT] result_creg: c_result  
Syndrome cregs: c_z_checks → H_Z (block_index=0)
Registers
qreg q_data: scope=block, ref=data_qreg, block=0
qreg a_meas: scope=scratch, size=1
qreg a_check: scope=scratch, size=3
creg c_result: scope=output, size=1, purpose=logical_measurement
creg c_z_checks: scope=output, size=3, purpose=syndrome
QASM source
OPENQASM 3.0;
include "stdgates.inc";
bit[1] c_result;
bit[3] c_z_checks;
qubit[7] q_data;
qubit[1] a_meas;
qubit[3] a_check;
reset a_meas[0];
h a_meas[0];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_meas[0], a_check[0], a_check[1], a_check[2];
cz a_meas[0], q_data[0];
cz a_meas[0], q_data[1];
cz a_meas[0], q_data[2];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_meas[0], a_check[0], a_check[1], a_check[2];
h a_meas[0];
c_result[0] = measure a_meas[0];
barrier q_data[0], q_data[1], q_data[2], q_data[3], q_data[4], q_data[5], q_data[6], a_meas[0], a_check[0], a_check[1], a_check[2];
reset a_check[0];
cx q_data[1], a_check[0];
cx q_data[2], a_check[0];
cx q_data[3], a_check[0];
cx q_data[4], a_check[0];
c_z_checks[0] = measure a_check[0];
reset a_check[1];
cx q_data[0], a_check[1];
cx q_data[1], a_check[1];
cx q_data[3], a_check[1];
cx q_data[5], a_check[1];
c_z_checks[1] = measure a_check[1];
reset a_check[2];
cx q_data[3], a_check[2];
cx q_data[4], a_check[2];
cx q_data[5], a_check[2];
cx q_data[6], a_check[2];
c_z_checks[2] = measure a_check[2];
Circuit
                         ░           ░          ░                                                                           
    q_data_0: ───────────░──■────────░──────────░─────────────■─────────────────────────────────────────────────────────────
                         ░  │        ░          ░             │                                                             
    q_data_1: ───────────░──┼──■─────░──────────░────────■────┼─────────■───────────────────────────────────────────────────
                         ░  │  │     ░          ░        │    │         │                                                   
    q_data_2: ───────────░──┼──┼──■──░──────────░────────┼────┼────■────┼───────────────────────────────────────────────────
                         ░  │  │  │  ░          ░        │    │    │    │                                                   
    q_data_3: ───────────░──┼──┼──┼──░──────────░────────┼────┼────┼────┼────■─────────■────────────■───────────────────────
                         ░  │  │  │  ░          ░        │    │    │    │    │         │            │                       
    q_data_4: ───────────░──┼──┼──┼──░──────────░────────┼────┼────┼────┼────┼────■────┼────────────┼───────■───────────────
                         ░  │  │  │  ░          ░        │    │    │    │    │    │    │            │       │               
    q_data_5: ───────────░──┼──┼──┼──░──────────░────────┼────┼────┼────┼────┼────┼────┼───────■────┼───────┼────■──────────
                         ░  │  │  │  ░          ░        │    │    │    │    │    │    │       │    │       │    │          
    q_data_6: ───────────░──┼──┼──┼──░──────────░────────┼────┼────┼────┼────┼────┼────┼───────┼────┼───────┼────┼────■─────
                   ┌───┐ ░  │  │  │  ░ ┌───┐┌─┐ ░        │    │    │    │    │    │    │       │    │       │    │    │     
      a_meas: ─|0>─┤ H ├─░──■──■──■──░─┤ H ├┤M├─░────────┼────┼────┼────┼────┼────┼────┼───────┼────┼───────┼────┼────┼─────
                   └───┘ ░           ░ └───┘└╥┘ ░      ┌─┴─┐  │  ┌─┴─┐  │  ┌─┴─┐┌─┴─┐  │  ┌─┐  │    │       │    │    │     
   a_check_0: ───────────░───────────░───────╫──░──|0>─┤ X ├──┼──┤ X ├──┼──┤ X ├┤ X ├──┼──┤M├──┼────┼───────┼────┼────┼─────
                         ░           ░       ║  ░      └───┘┌─┴─┐└───┘┌─┴─┐└───┘└───┘┌─┴─┐└╥┘┌─┴─┐  │  ┌─┐  │    │    │     
   a_check_1: ───────────░───────────░───────╫──░──|0>──────┤ X ├─────┤ X ├──────────┤ X ├─╫─┤ X ├──┼──┤M├──┼────┼────┼─────
                         ░           ░       ║  ░           └───┘     └───┘          └───┘ ║ └───┘┌─┴─┐└╥┘┌─┴─┐┌─┴─┐┌─┴─┐┌─┐
   a_check_2: ───────────░───────────░───────╫──░──|0>─────────────────────────────────────╫──────┤ X ├─╫─┤ X ├┤ X ├┤ X ├┤M├
                         ░           ░       ║  ░                                          ║      └───┘ ║ └───┘└───┘└───┘└╥┘
  c_result: 1/═══════════════════════════════╩═════════════════════════════════════════════╬════════════╬═════════════════╬═
                                             0                                             ║            ║                 ║ 
c_z_checks: 3/═════════════════════════════════════════════════════════════════════════════╩════════════╩═════════════════╩═
                                                                                           0            1                 2 
Error Correction Cycle
single_sequential (default) [non-FT]

Sequential syndrome extraction, one round.

Step 1: syndrome_measurement.sequential
repeated_sequential [non-FT]

Sequential syndrome extraction, d rounds.

Step 1: syndrome_measurement.sequential × code.d = 3
single_parallel [non-FT]

Parallel (Landahl-Anderson-Rice) syndrome extraction, one round.

Step 1: syndrome_measurement.parallel
References
  • A. J. Landahl, J. T. Anderson, and P. R. Rice, "Fault-tolerant quantum computing with color codes," arXiv:1108.5738 (2011). Locality-respecting syndrome schedule used in the parallel variant
repeated_parallel [non-FT]

Parallel (Landahl-Anderson-Rice) syndrome extraction, d rounds.

Step 1: syndrome_measurement.parallel × code.d = 3
References
  • A. J. Landahl, J. T. Anderson, and P. R. Rice, "Fault-tolerant quantum computing with color codes," arXiv:1108.5738 (2011). Locality-respecting syndrome schedule used in the parallel variant
steane [non-FT]

Steane-style syndrome extraction, one round.

Step 1: syndrome_measurement.steane_ec
References
knill [non-FT]

Knill-style error correction by teleportation, one round.

Step 1: syndrome_measurement.knill_ec
References
Decoders
Tesseract (tesseract)
Chromobius (chromobius)
color
H_X: [0, 1, 2] (qubit_layout.cell_complex.faces.*.color)
H_Z: [0, 1, 2] (qubit_layout.cell_complex.faces.*.color)
Properties
Author: Haiqu
Creator: qecx-generator (generate_color_code_488.py); qecx
License: CC-BY-4.0
Description: Distance-3 triangular 4.8.8 color code [[7,1,3]]: a self-dual CSS code on a triangular patch with 3 faces (3 of weight 4, 0 of weight 8). Every face weight is a multiple of four, so H, S and CNOT are transversal.
References:
  • H. Bombin and M. A. Martin-Delgado, "Topological quantum distillation," doi:10.1103/PhysRevLett.97.180501 arXiv:quant-ph/0605138 (2006). Defines the color code family (primary reference)
  • A. J. Landahl, J. T. Anderson, and P. R. Rice, "Fault-tolerant quantum computing with color codes," arXiv:1108.5738 (2011). Locality-respecting syndrome schedule used in the parallel variant
  • C. Gidney and N. Jones, "New circuits and an open source decoder for the color code," arXiv:2312.08813 (2023). Chromobius, which consumes the per-face color annotation emitted here
  • T. Peham, L. Schmid, L. Berent, M. Muller, and R. Wille, "Automated Synthesis of Fault-Tolerant State Preparation Circuits for Quantum Error Correction Codes," doi:10.1103/PRXQuantum.6.020330 arXiv:2408.11894 (2025). MQT-QECC Clifford synthesis used by the mqt state-preparation variant
  • "MQT QECC - A tool for Quantum Error Correcting Codes," https://github.com/munich-quantum-toolkit/qecc. Software used for the mqt state-preparation variant
  • A. M. Steane, "Active stabilization, quantum computation, and quantum state synthesis," doi:10.1103/PhysRevLett.78.2252 arXiv:quant-ph/9611027 (1997). Steane-style syndrome extraction through a logical ancilla
  • E. Knill, "Quantum computing with realistically noisy devices," doi:10.1038/nature03350 arXiv:quant-ph/0410199 (2005). Error correction by teleportation through a logical Bell pair

Haiqu's QEC Code Library

Haiqu's QEC Code Library is designed as a place where QECX files are published and exchanged. Its aim is to let QEC researchers make their results available in a form that others can pick up and use directly, and to give application researchers ready-to-use implementations of the codes they want to try. The library thus links QEC research more closely to its applications. Like existing code catalogs, it organizes codes by family and lists their properties, but entries can also include QECX files, so a code can be put to use instead of only being looked up.

From the start, the library holds a collection of files prepared by Haiqu for common codes that are practical in the early fault-tolerant era. Application researchers can begin right away, without writing files themselves, and compare codes before deciding on one.

Fig5 code library

The figure above shows the library's overview page. Codes can be searched by name and filtered by family, and each entry shows the code type, the range of parameters it covers, and a picture of its qubit layout. Entries marked as runnable come with ready-to-use QECX files. These files can be downloaded and used with the qecx package, with Orqid, or with any other tool that reads QECX. As a next step, we plan to let researchers share their own files publicly in the library, together with a certification process for submitted files.

What's next

Version 0.1 of QECX covers the codes and fault-tolerance techniques described above. Planned additions for future versions include further classes of codes, heralded operations, logical dynamic circuits, and code deformation methods such as code switching and lattice surgery. Together with partners from academia and industry, we intend to develop these extensions and to promote QECX as a standard. We invite everyone interested to read the specification, try the qecx package and the library, and share their feedback with us. Dedicated channels for discussing and contributing to the standard are in preparation. Until then, the contact form on our website is open for all inquiries, including partnerships.

Wave Asanoha 2x

Introducing Orqid: Haiqu’s software framework for research and simulation of early fault tolerant algorithms

Blog

We take the near-infallibility of the classical computers which power our digital world for granted, but this is only possible thanks to an invisible layer of error correction. As quantum processors begin to incorporate quantum error correction (QEC), we are entering the era of Early Fault Tolerant Quantum Computing (EFTQC). In this extended regime both limited-scale error correction and NISQ methods like error mitigation must coexist, but currently quantum application developers lack tools to experiment, simulate and optimize their algorithms for EFTQC devices, while QEC researchers cannot easily make their codes widely usable. With Orqid, Haiqu is introducing an open QECX standard for code sharing, a public code library, and a modular framework for EFTQC algorithm research and simulation which uses them. 

Pipeline guided

Introduction: early fault tolerant quantum computing (EFTQC)

Trillions of operations on endless strings of ones and zeros: sent, received, modified, all without fault. This infallibility is an illusion. Errors in classical computations do happen constantly, bits “flip” seemingly spontaneously, and left unattended they’d turn any data into meaningless gibberish. What keeps them in check, from writing data on your laptop’s SSD to communicating with the Voyager probe at the far reaches of the Solar System, is error correction. Error correcting codes redundantly express information using auxiliary bits, and through constant check and correction operations catch and repair errors as they appear.

 

Quantum computing also requires error correction. In fact, much more so than any classical devices, as, in contrast to the classical bits, the quantum states in which data is encoded are extremely fragile. While we currently use the pioneering “Noisy Intermediate Scale Quantum” (NISQ) devices, the very noise in their name limits the complexity and accuracy of the problems they can solve. 

Quantum computing at scale, with its flagship quantum algorithms such as Shor’s or Quantum Signal Processing, and commercial and scientific advantages they promise, is not possible without quantum error correction (QEC).

The very fact that Quantum Error Correction works at all, is a small miracle. Simple generalizations of classical error correction are fundamentally not possible, as quantum states cannot be duplicated or “cloned”, and it took none other than Peter Shor himself to show that truly quantum codes exist. But a quantum code means encoding logical information in (many) more physical qubits and using (many) more quantum gates, all of which are noisy themselves. A foundational result by Knill, Laflamme and Zurek is a “threshold theorem” which shows it is possible to essentially outrun the noise: If the noise of a physical quantum gate can be brought below a small, but finite value, then, as the power (or “distance”) of an error correcting code is increased, it removes more errors than are introduced by the increased number of qubits and gates it requires. You don’t have to build a perfectly noiseless computer – just good enough, and then quantum error correction will do the rest!

 

There is a catch, though: ever more physical qubits are required to bring the “logical” error rate even further down. How many? Thousands per a single logical qubit to run the Shor’s algorithm for cryptographic problems, for instance. The technological regime when this is possible is the large-scale fully Fault Tolerant Quantum Computing, or FTQC. With mere hundreds of physical qubits comprising a whole quantum processor (QPU) today, we are a long way off from fully corrected large-scale logical computations, even though the groundbreaking experiments of Google, QuEra and Quantinuum demonstrated below threshold error scaling on QPUs. Large scale FTQC is thus the long-term goal, and useful theoretical model, but not a near-term reality. 

Early Fault Tolerant Quantum Computing, or EFTQC, in contrast, describes the regime when error correction is possible, but the QPUs architectures only allow a small number of logical qubits, or smaller-distance codes providing moderately reduced error rates, or only for some operations. 

It describes, in other words, the computational model of the next generations of actual, rather than idealised, QPUs, which any researcher and quantum application developer will have to contend with.

 

For quantum algorithms EFTQC means that the errors cannot be simply abstracted away: quantum operations may be better than those on bare physical qubits, but they are not perfect, and resources are finite, imposing tradeoffs between accuracy and size of problems possible to solve. Rather than treating NISQ and FTQC as diametrically opposed and their toolboxes incompatible, it is now understood that the gradual transitionary EFTQC regime requires careful tradeoffs, and combinations of error correction with NISQ techniques, such as error mitigation (EM), to best use the limited quantum resources.

Orqid: a modular framework for EFTQC algorithm simulation

To take advantage of the EFTQC devices a quantum application researcher needs to understand the performance, and optimize their algorithm taking into account all the elements of the error correcting stack: the QPU with its detailed physical noise, distinct error correcting codes with their distance and implementation variants, different decoders and, finally, possible error mitigation methods. Likewise, a QEC researcher may want to investigate the performance of implementation variants of their code, or under different detailed noise models. This is a daunting number of moving parts typically requiring custom code, and while some of them are partially covered by the existing FTQC frameworks, none of them allows to easily end-to-end simulate such scenarios, or even execute them on device.

EFTQC poster 3

This is precisely what Orqid is designed to do. Its modular structure has three levels. First, the open QECX standard for sharing error correcting codes we introduce, which contains their definitions and circuit-level implementations. Second, a QEC compiler, which uses the QECX file to convert arbitrary logical circuits into encoded, physical level ones supplemented by additional information useful downstream. Finally, the simulator module: with the help of compiler information it can apply detailed noise modes, execute the algorithm using different decoders and physical simulators, and return complete physical and logical measurement records, as extracted from an actual QPU. This allows Orqid to integrate with the existing Haiqu quantum middleware, applying e.g. error mitigation, T-gate compression, or state preparation routines, but also, in the future, to execute the circuits on real error corrected processors.

The QECX code exchange standard is at the heart of Orqid, and addresses one of the biggest practical obstacles for anyone exploring error correction: non-existent, incomplete, or hard-coded and incompatible code implementations. 

To apply a QEC code its mathematical description is not sufficient. A usable implementation requires specifying all the qubits and classical registers used, and the quantum circuits for all the “gadgets” such as state preparation, logical measurement, error syndrome extraction, and logical operations. Each of these gadgets, fault-tolerant or not, may have different realizations, scattered in separate papers, or hardcoded in incompatible libraries and research codes. A QECX file provides a complete, consistent and directly usable specification of a QEC code, with all its gadgets or their variants and any code-specific information necessary for decoders. It allows a QECX compatible compiler to return the physical circuits for the input logical algorithm. Comparing different codes is as simple as loading their corresponding QECX files and compiling the algorithm with each of them in a few lines of code, with no arduous re-implementation. The current QECX standard supports stabilizer, CSS and subsystem CSS codes; the standard is being actively extended.

 

To facilitate sharing and using the QECX code files, but also authoring them, we have created a public QECX library. It allows exploring codes and their mathematical properties, downloading and using them directly in simulations. Quantum Error Correction is an active research area, and new codes or implementations are being developed by researchers – to help them share their inventions with the community in a form suited to immediate experimentation we also provide tools to verify the correctness of the files, and of the constructions. With the open specification of the QECX researchers are not locked to a proprietary compiler, they can either use the Orqid one, or build their own.

Library image

Orqid contains a dedicated QECX-compatible compiler as its second layer. For any logical circuits it returns annotated physical circuits giving their physical realization with the selected code or its variant. The annotations preserve the logical identity of different fragments of the physical circuit identifying them, for instance, as a syndrome extraction gadget. This information is both useful for subsequent decoding, but also gives Orqid its unique EFTQC capabilities: annotations can also be used to impose detailed and heterogeneous noise models on different parts of the circuit. Specifying some qubits as error corrected while others noisy to simulate a FTQC device coupled to a NISQ one, or assuming entirely different types of noise on some logical subcircuits to isolate their performance only requires invoking their annotation labels.

Finally, Orqid's simulating layer tackles the task of sampling the physical circuit produced by the compiler, decoding it and returning the physical and logical measurement counts. It uses the compiler annotations to apply the noise model supplied in an external file, and executes the circuits on one of the supported simulator backends: the first release supports Clifford simulation with Stim, but in the near future will also integrate near-Clifford and other simulators. Orqid's modular nature allows also to use and compare different decoding backends, for example the MWPM, BP-OSD, Chromobius or Tesseract decoders, and to integrate with further ones.

EFTQC poster 2

The image above illustrates the use of Orqid in a simple but important example. Imagine you want to verify, or find, the “threshold” of an error correcting code, that is the physical noise strength below which enlarging the code (increasing the distance) methodically decreases the logical error. It depends on the code implementation and the noise type, and is a key figure in understanding the potential performance of the QPU, code and algorithm. To measure it, you need to run a sequence of simulations, preparing physical circuits representing the test logical one compiled with different distance versions of the code, simulate them with different noise strengths, decode and compute the logical error rates. 

With Orqid a threshold experiment as simple as supplying the logical test circuit, selecting or providing your own noise model, and letting it iterate over QECX files for different code distances, with the compilation, simulation and decoding all taken care of!

Here we do that for a two-qubit logical Bell state and the triangular 4.8.8 color code for distances d=3,5,7. We selectively chose e.g. not to apply the noise on state preparation and to use the Stim backend with the Tesseract decoder. The bottom left panel shows a neat crossing point of the logical-physical error curves for different distances, indicating the threshold noise strength, while the right one shows the convergence of the measured distribution to the expected one for the Bell state.

 

This is one of the simplest possible experiments, but Orqid allows much more, with equal ease. We will detail its capabilities, particularly different modularity features, resource estimation capabilities, the QECX standard and the integration with NISQ tools critical to EFTQC in the next blogs, and you can also explore them on our website.

The next steps

Orqid is by design modular, and in the coming months we will be extending the range of functionalities, codes and backends it supports. The QECX standard and the compiler currently, for instance, allow transversal and teleportation-based logical gates, but lattice surgery support is planned in the near future. Likewise, the range of supported simulation backends is scheduled to be expanded to near-Clifford and Tensor Network based ones, and we are working on integrating new decoders as well. Finally, Orqid is natively integrated with the remainder of Haiqu SDK quantum software stack, and error corrected execution on actual QPUs will be introduced in the next stages (though it is already possible to export the physical circuits).

The QECX standard is purposefully open to allow QEC researchers to build and verify their own code files. At Haiqu we believe that the practical progress in EFTQC requires a closer and more obstacle-free collaboration between error correction experts, algorithm researchers and quantum applications developers, and this is what Orqid and the QECX facilitates.

To learn more about Orqid and QECX visit our webpage and the code library. The full Orqid and access to the complete Haiqu SDK software stack is available to academic researchers free of any charge via the Haiqu Academic Program, which we encourage you to apply for!

Haiqu News 04

Haiqu Launches Agentic Quantum Operating System for Enterprise Applications R&D

Blog

Full-stack platform combines agentic AI with proprietary middleware that helps build and solve complex problems faster with fewer computational resources

AgenticOS screenshot

NEW YORK CITY, NY, UNITED STATES, May 6, 2026 -- Haiqu, a leading developer of quantum middleware, today announced the launch of its Agentic Quantum Operating System (OS), the first full-stack quantum intelligence platform for enterprise and scientific quantum R&D.

Currently, quantum development is impeded by the time and costs it takes to design the right application, execute the experiment, and iterate on the results.

Haiqu’s Agentic Quantum OS is designed to bring new performance standards to quantum R&D teams. It combines quantum research agents with Haiqu’s proprietary software stack to help teams identify the right problem, design executable quantum experiments, and run them efficiently on real quantum hardware.

Coupled with additional performance and execution layers, the platform is designed to help enterprise R&D teams get usable results faster, spend less money per experiment, train new researchers more easily, and turn early ideas into testable prototypes faster.

“The bottleneck for quantum R&D teams is often not access to a QPU. It is the time and expertise required to identify the right problem, structure the work and get credible application prototypes,” said Richard Givhan, CEO and Co-founder of Haiqu. “With our first Agentic Operating System, we are giving R&D teams effective tools to achieve commercial applications as systems become more powerful.”

Haiqu’s end-to-end platform equips quantum engineers to guide application development using natural language through business questions or exploratory research ideas to produce an execution-ready quantum application plan using three key pillars:

- Agentic Intelligence — built on Haiqu's proprietary quantum algorithm research, domain-specific workflows, and a curated quantum theory knowledge base, that automates application design and guides users to optimal approaches.

- Haiqu SDK — developer tools built using agents with users in mind that can be easily deployed in agentic development workflows to maximize performance through data loading, algorithmic optimization and error mitigations, enabling users to extract more value from every quantum operation.

- Haiqu Runtime — an orchestration engine that streamlines how applications execute with an optimal infrastructure layer, reducing cost and time required to iterate on quantum applications.

In recent tests completed by the company on a quantum system, a molecular dynamics simulation that previously required $30,000 and more than nine hours to run was reproduced for about $25 in roughly 30 seconds by optimizing execution on the Haiqu platform. Similar results or better were found for optimization algorithms, quantum machine learning models, and probability distributions.

HaiquOS also demonstrated that agentic quantum workflows can translate advanced scientific problems into executable experiments. The system prepared simulations of the single-impurity Anderson model, a foundational model for strongly correlated electron systems, from scratch and built a Haiqu OS/SDK pipeline for simulating neutron-scattering experiments on one-dimensional quantum magnets. The pipeline reproduced experimentally observed signatures of magnetic materials, showing that today’s quantum computers, when paired with the right software stack, can already support meaningful scientific simulations. Learn more about these results here.

A number of enterprises have already received early access to the OS, including Capgemini and Deloitte.

Dr. Kristin Milchanowski, Chief AI & Quantum Officer at BMO and Founding Director of the BMO Institute for Applied Artificial Intelligence & Quantum, said research into emerging quantum software platforms can help inform how the industry addresses foundational scalability challenges.

“As quantum hardware continues to evolve, foundational challenges such as data loading and efficient utilization of limited qubits remain critical hurdles,” said Milchanowski. “Observing research into tools like Haiqu’s middleware allows for a deeper understanding of how these bottlenecks might eventually be addressed. These early-stage, research-driven insights are vital for informing the long-term direction of the quantum landscape and understanding the future scalability of the technology.”

About Haiqu
Haiqu is an emerging leader in quantum software that supports the notion that near-term, commercially viable quantum applications are achievable with the right software, even on current hardware. Haiqu’s hardware-agnostic software can run applications with up to 100x more operations on current devices compared to competitors. Headquartered in New York City in the United States, Haiqu’s expert team operates from US, Canada, Ukraine, UK, EU, and Singapore, contributing to the company’s mission to make quantum computing practical as soon as possible.

Taylor White
HKA, Inc. Marketing Communications
+1 714-426-0444

Haiqu Life Sciences

Haiqu’s Agentic Research Workflow helps Reconstruct Quantum Materials’ Fingerprints

Blog

Two early demonstrations show how agentic quantum workflows can turn advanced material design problems into executable experiments on today’s quantum hardware.

Book a Demo

Advanced quantum simulations should not require a months-long custom engineering effort each time. That is the central idea behind Haiqu’s Agentic Quantum OS. Frontier quantum R&D can become a structured workflow: from research problem formulation to baselines to optimized quantum execution to interpretable scientific results.

As we built some of the most advanced tools to execute quantum algorithms, we learned that the R&D process matters. The hard part of quantum computing is often not sending a quantum algorithm to a quantum processor, but rather deciding what to compute, how to build and validate a quantum application, how to make the circuit survive hardware noise, and how to interpret the output once the hardware returns data.

Agentic blog hero2
From a research or business question to a hardware-backed quantum result.

In chemistry and material science applications, that challenge is especially sharp. A serious calculation needs a physical model, numerical and theoretical baselines, initial state preparation, time evolution or sampling, hardware-aware optimization, error handling, and scientific interpretation. Combining all of these in an orchestrated workflow is not trivial.


In this blog, Haiqu has tested its Agentic Quantum OS on two advanced quantum workflows for material physics and chemistry, demonstrating that we are now entering a new era in building advanced quantum applications. In one example, we looked for the low-energy structure of a strongly correlated electron model. The other reconstructed a magnetic excitation spectrum. Both of these fingerprints are used by scientists to understand the properties of real materials.
 

Why quantum materials are a strong test?

Materials are quantum systems. Their useful properties — conductivity, magnetism, superconductivity, optical response, transport — come from how quantum particles organize and behave collectively.

That is why materials simulation is one of the natural long-term targets for quantum computing.

But the useful study object is rarely a single algorithmic circuit. It is a physical quantity in the target system, in whose computation circuit, executions are only one step. It's computation requires setting up a model, approximation choices, validation path, hardware execution, and finally physical interpretation.

In the following demonstrations, Haiqu’s system did not merely produce quantum programs. It helped assemble the chain of decisions needed to make the result testable and executable on real quantum hardware.
 

Case 1: Low-energy physics of correlated electrons

The first workflow targeted the single-impurity Anderson model. This is a minimal model with nontrivial many-body physics. It describes one interacting electronic site — the impurity — coupled to a surrounding bath of electrons. Electrons can move through the bath and hop onto the impurity. When two electrons occupy the impurity, they interact strongly.


That local interaction is enough to produce correlated-electron behavior that is difficult to simulate.


The model is important because it captures a basic motif in quantum matter: how a local interacting degree of freedom behaves inside a larger electronic environment. This connects to magnetic impurities, correlated conductors, superconducting systems, and quantum devices.


To simulate the low-energy physics of the model, our goal was to build a workflow around sample-based Krylov quantum diagonalization, or SKQD, and use Haiqu’s OS to extend and improve its performance.

SKQD scheme

At a high level, SKQD uses the quantum processor to sample a sequence of related quantum states. A classical solver then operates within that smaller, sample-selected space to identify the low-energy states, rather than attacking the full, exponentially large Hilbert space. 
 

The workflow had to assemble the full calculation: model construction, basis choice, initial state preparation, time-evolution circuits, Krylov sampling, noisy bitstring recovery, projected diagonalization, and comparison against classical exact diagonalization and DMRG references at small scales.


The final computation ran a 40-qubit hardware experiment to find the ground-state of a strongly correlated 20-site single impurity Anderson model (SIAM), and to build a direct comparison with the results of an independent application of the SKQD approach to SIAM.

SKQD main result
Haiqu compression helped preserve SKQD convergence on hardware while reducing the classical post-processing burden.

Hardware experiments gave insights into how noise affects the performance of the method, and how compression may alleviate this problem. In principle, adding more Krylov states should improve the ground state estimate, but these require deeper circuits which are more affected by the noise on real hardware, slowing down the convergence of the method.

 

SKQD subspace25

With Haiqu’s compression stack applied to the Krylov states, the expected convergence behavior was recovered. The compressed workflow also reduced the dimension of the subspace used in the classical post-processing  by roughly 2–4× at matched accuracy.


That is not just about a nicer plot or faster convergence. In SKQD, the classical post-processing becomes a scaling bottleneck as it involves large-scale classical diagonalization, preventing the method's ability to attack larger system sizes. Making the resulting subspace dimension smaller, while maintaining comparable accuracy, directly improves the method's practicality. In practice, it also allows for making the method less reliant on advanced HPC backends. In this demonstration, the workflow ran locally on an ordinary laptop, and the quantum execution required only a few seconds of QPU time.
 

Case 2: Reconstructing a magnetic fingerprint

The second workflow examined a different kind of material signature: how a magnetic system responds to perturbations, which is how most physical properties are probed. 

In experiments, one of the main tools for this is inelastic neutron scattering. Scientists send neutrons into a crystal and measure how energy and momentum are exchanged with the material. The result is a map of magnetic excitations, called the excitation spectrum.

For a theorist, reproducing the excitation spectrum from a microscopic model is a serious test: it means the model captures the structure and physics of the material. The quantity behind that map is the dynamical structure factor. It connects a Hamiltonian to the magnetic-scattering signal that an experiment should observe.

We used Haiqu’s Agentic Quantum OS to build and execute a workflow to reconstruct the dynamical structure factor for real quasi-one-dimensional magnetic materials.

DSF intro plots
Dioxane is a real quasi-one-dimensional magnetic material. Its copper ions form spin chains that can be modeled as a spin-1/2 Heisenberg antiferromagnet. We reproduce the two-spinon continuum spectra characteristic of the compound on the IBM Boston quantum computer.

For this workflow, we focused on 2Dioxane·2H₂O·CuCl₂, often abbreviated as CuDCl, as a reference material. It is a metal-organic copper chloride material whose copper ions form nearly one-dimensional magnetic chains.

This quasi-linear structure allows the compound to be modelled by a spin-1/2 Heisenberg chain, a foundational model for quantum magnetism. In this system, the excitations are not simple classical spin waves, but a broad two-spinon continuum — a characteristic signature of a material's magnetic structure.

The agentic flow first helped to set up a stack of analytical and numerical benchmarks and validation tests. With their help, it then proceeded to build the complete computation, including the required quantum circuits and their hardware execution.

This computation is more challenging than the previous SKQD example, which only involved ground state, or zero-temperature, properties. At low temperature, the system sits close to its ground state, and the relevant physics is governed by how that state responds to small disturbances. The ground state is only the starting point. To reproduce a neutron-scattering-like observable, we need to disturb the system and follow how it evolves.

The complete quantum pipeline constructed by the Agentic OS involves ground-state preparation, its perturbation and time evolution, circuit optimizations and depth reduction, hardware execution, error shielding, and spectrum reconstruction.

Hardware experiments on a real quantum processor recovered the key physical feature in the relevant spectral window: spectral weight near the antiferromagnetic zone boundary, consistent with the expected two-spinon continuum. 

This demonstration is particularly important because it uses quantum hardware to compute a physically meaningful observable. The output is not only a bitstring distribution or an abstract benchmark. It is a neutron-scattering-like spectrum — the type of object materials scientists use to investigate the properties of real compounds.

The resource footprint was modest: the classical work ran on an ordinary MacBook Air M4 laptop. The quantum execution used less than 10 minutes of QPU (IBM Boston) time to produce a full energy spectrum from a batch of 160 circuits (some as large as 2380 two-qubit operations, and up to 14261 total operations). 

This makes a similar kind of simulation readily accessible to ordinary academic groups rather than only national-lab-scale teams.

What made this agentic, and why does this matter?
 

Haiqu OS

In both cases, Haiqu’s AI did not replace the physicist, but it helped to reduce the hidden engineering burden around quantum research while the human researcher supplied scientific supervision.


The agentic workflow helped structure the work, prepare implementation plans, assemble modules, track baselines, connect execution, and organize the result into something that could be checked.


Quantum R&D often fails at transitions: between theory and code, between an algorithm and its circuit implementation, between a simulator and hardware, and between raw measurements and physical interpretation. Haiqu’s Agentic Quantum OS is designed to make those transitions explicit, inspectable, executable and reproducible.


With these demonstrations, we aim to show something practical for the near term: with the right agentic workflow and software stack, today’s quantum hardware can already participate in meaningful scientific simulation workflows.


That is the role of Haiqu’s Agentic Quantum OS.
 

Haiqu Aerospace

Quantum CFD on Real Hardware: From Linear Transport to Nonlinear Flow Around Obstacles

Blog

How a new quantum lattice Boltzmann algorithm and Haiqu's execution stack produced the first nonlinear Navier-Stokes flow with geometry on a quantum processor: a technical perspective from Haiqu on the Quanscient–Haiqu paper (arXiv:2603.02127, March 2026).


 

The invisible simulations behind everyday engineering

Every time an aircraft wing is shaped, a car body is profiled, or a gas turbine is optimized, the design passes through computational fluid dynamics (CFD) simulation. These simulations solve the equations governing how fluids move: where pressure builds, where flow separates, where turbulence forms. CFD is one of the most compute-intensive workloads in industrial engineering. A full-fidelity aeroacoustic simulation of a commercial aircraft can require billions of mesh points and weeks on the largest supercomputer clusters. Even with extraordinary classical HPC progress, many problems in turbulence, multiphase flow, and coupled multiphysics remain intractable at the resolutions engineers actually need.
Quantum computing enters the CFD conversation because of a structural advantage: a quantum computer can represent spatial grids whose size is exponential in the number of qubits, potentially enabling simulations at scales inaccessible to classical machines. Realizing that potential requires overcoming significant technical challenges, and the field's credibility depends on demonstrating progress on the right kind of problems.

 

"Progression landscape" from 1D linear transport → 2D advection-diffusion in empty domains → 2D nonlinear flow around an obstacle. 
 

 

Why the lattice Boltzmann method suits quantum computing

The lattice Boltzmann method (LBM) models fluid dynamics not by solving the Navier-Stokes equations directly, but by evolving mesoscopic particle distributions on a discrete lattice through two local operations — collision and streaming — from which macroscopic quantities such as fluid pressure and velocity emerge. This structure is already massively parallel on classical hardware; landmark LBM simulations have reached trillions of lattice cells on GPU clusters.

The same structure maps naturally to quantum algorithms, forming the quantum lattice Boltzmann method (QLBM). Streaming becomes a quantum walk. Collision is local and independent of lattice size. And the heavy memory requirements that bottleneck classical LBM become a non-issue when the grid is encoded logarithmically in qubits.

So far, the complete record of QLBM on actual quantum processors — including our own earlier work with Quanscient on IonQ Aria (2024, the largest QLBM grid demonstrated on hardware) — has been limited to linear dynamics on 1D, 2D, and 3D grids. No obstacles. No boundaries beyond periodic conditions. No coupled velocity fields. Each result was an important milestone but the physics that makes real CFD hard was entirely absent from the hardware record.

Until now.

 

 

What does this paper demonstrate?

Our joint paper with Quanscient introduces a new quantum algorithm for the lattice Boltzmann method based on the one-step simplified LBM (OSSLBM) and validates it across several cases, culminating in a nonlinear laminar flow benchmark on real quantum hardware.

The benchmark: a D2Q9 lattice on an 8×8 grid with a 2×2 immersed square obstacle, inlet-outlet boundary conditions, and zero Dirichlet walls. Flow is driven by a fixed inlet velocity, deflects around the obstacle, and evolves through a 15-step hybrid quantum-classical loop on IBM's ibm_boston processor (Heron R3, 156 qubits).

 

Domain schematic: 8×8 lattice with 2×2 obstacle
 

Three features distinguish this from all prior QLBM hardware demonstrations.

Nonlinear Navier-Stokes physics. The incompressible Navier-Stokes equations govern the evolution. The nonlinear equilibrium terms are recomputed classically at each step and re-encoded into the quantum state; the quantum processor handles the structured linear update. This hybrid strategy keeps circuits shallow enough for current hardware while accommodating physics that cannot be implemented unitarily.

An immersed obstacle with boundary conditions. No prior QLBM hardware run included any internal geometry. The boundary treatment uses multi-controlled gates that are backpropagated and applied classically to the measured bitstrings — substantially reducing circuit depth.

Coupled full-field recovery over 15 time steps. The experiment recovers density and both velocity components (ρ, u_x, u_y) at each step, with the mean squared error relative to a steady-state reference decreasing over the evolution. While a steady state is not reached within the 15 steps executed on the quanutm device, the results show a convergence towards it.

 

Left: Ideal vs. hardware field maps after 15 time steps for ρ, u_x, u_y Right: MSE convergence plot (statevector, ideal + shot noise, IBM QPU). The IBM QPU execution is noisier but continues to reduce error with subsequent steps — evidence that hardware preserves the convergence physics.

 

The algorithmic advance: OSSLBM

Our paper's contribution extends beyond the hardware benchmark. Traditional QLBM approaches treat collision and streaming as separate operations on distribution functions. The OSSLBM restructures this into a single-step update operating on macroscopic fields: density, velocity, and pressure, with distribution functions appearing only in the propagation subroutine.

This gives OSSLBM more flexibility to accommodate different physics (acoustics, diffusion, nonlinear Navier-Stokes) within one framework, while keeping the core gate and qubit complexity efficient. For linear problems, it supports multi-step evolution without intermediate measurement — a prerequisite for any future quantum advantage.

 

 

Making it run: Haiqu's hardware-enabling stack

A well-designed quantum algorithm is one thing. Getting it to run on hardware is another. Haiqu closed the engineering gap and enabled on-hardware execution thanks to the compilation, state preparation, tomography, and noise-mitigation stack that made the nonlinear obstacle benchmark practical on IBM's superconducting hardware.

The compilation challenge was substantial. A direct, unoptimized implementation produces approximately 1,825 two-qubit gates after transpilation to the Heron R3 heavy-hex connectivity. This is far beyond what today's error rates allow to execute accurately enough. Haiqu's optimization pipeline brought this down to around 540 two-qubit gates through several coordinated approaches.

 

Gate-count reduction pipeline
 

Several techniques contributed to the reduction. The QLBM collision step was combined with initial state preparation, strongly compressing the circuit at the cost of only two extra qubits. The state preparation itself was optimized to take advantage of QPU's near-linear qubit layout. Furthermore, commutation of circuit parts implementing boundaries and obstacles with the final measurement was exploited to offload some computation to classical post-processing, shortening the circuit. Finally, all gate sequences were compressed using optimized decompositions of multi-qubit operations.

Noise mitigation was equally important. The execution combined several standard techniques like dynamical decoupling to protect idle qubits, Pauli twirling to symmetrize noise, and operator decoherence renormalization to correct the recovered field norms. With only 3–6% of the 30,000 shots per step surviving post-selection, induced by the QLBM unitary construction, the usable data for field reconstruction was thin. At these margins, every compilation and mitigation choice matters directly.

Finally, recovering full flow fields is required on each step as a part of QLBM’s hybrid pipeline, which is a major bottleneck, since standard tomography has prohibited scaling. We developed a novel variational function tomography method, allowing us to recover near-ideal field values with only a handful of shots. Previous demonstrations were focused on toy examples, where solutions are trivial and known, hence the readout problem did not arise. On the contrary, we demonstrated the most complex readout so far in the quantum CFD, applied to realistic flows.

This is an essential part of a realistic quantum computing workflow. The middleware layer: compilation, transpilation, error mitigation, readout, and runtime orchestration, determines whether a given algorithm produces meaningful results on a given hardware.

 

Orchestrating that full-stack end-to-end is what Haiqu's platform is built for, and experiments like this one are where it proves its value.

 

Honest scope: what this does and does not show

This paper demonstrates that QLBM can encode, evolve, and reconstruct a nonlinear Navier-Stokes flow field with an internal obstacle on a real quantum processor, preserving qualitative physics across 15 time steps. That is a material advance over every prior QLBM hardware run.

Whether QLBM can move to deeper end-to-end evolution remains open, depending on both hardware progress and fundamental algorithmic constraints.

The honest framing: this is the most physically complex QLBM simulation run on a real quantum processor in the public record. The advance is in the class of problems, not the immediate scale. The distance between that breakthrough and practical engineering application is still significant. But it is shrinking specifically in the areas where middleware investment pays off: compilation, noise mitigation, and orchestration.

 

Why should the industry pay attention now?

For R&D leaders in aerospace, automotive, and energy, the significance is strategic rather than operational.

Turbulence alone scales as O(Re³) with the Reynolds number; full-scale aircraft simulations at Re ~ 10⁸ imply roughly 10²⁴ floating-point operations. Quantum computing is one of the very few plausible paths to fundamentally different scaling for these workloads. But that path's credibility depends on the field solving the right kind of problems, not just bigger grids for linear transport.

These results are important because they demonstrate QLBM on real quantum processors, moving toward the very features that make real CFD hard: obstacles, boundaries, coupled fields, and nonlinear dynamics. The grid size is still very small, but the problem difficulty is a qualitative leap.

 

For organizations evaluating quantum simulation readiness, the practical takeaway is that the gap between a quantum algorithm on paper and a working hardware result is where most efforts stall. Closing that gap requires compilation respecting real device topology, noise mitigation tuned to the application, and runtime orchestration for hybrid loops. That stack is what Haiqu provides, and this paper is a concrete demonstration of its value.

 

From Haiqu's perspective, the paper validates a thesis we have held from the start: the path to practical quantum scientific computing runs through the execution layer. Better qubits and better algorithms are both necessary but not sufficient. Getting real physics onto real hardware requires an optimization and runtime stack that adapts to the realities of current devices. We will continue building that stack, and we look forward to the experiments it enables next.

The paper "Quantum Algorithm for the Lattice Boltzmann Method with Applications on Real Quantum Devices" by Bastida-Zamora, Budinski, Kerppo, Lahtinen, Niemimäki, Steadman, Zamora-Zamora, Sagaut, Bohun, Koch-Janusz, and Lukin is available at arXiv:2603.02127.

Haiqu Aerospace

Quantum CFD for realistic geometries of obstacles

Blog

From wind-turbine blades to jet engines, unwanted aerodynamic noise reduces efficiency, increases fuel burn, and is subject to regulatory limits. Engineers address these issues using computational fluid dynamics (CFD), which is the numerical solution of partial differential equations (PDEs) on a spatial grid that describes how pressure and velocity evolve in a flowing gas. CFD is everywhere — in aerospace, automotive, energy, climate research, and even consumer-electronics cooling — but it is notoriously expensive. Each increase in spatial resolution dramatically increases both the required memory and the run time. For high-fidelity aero-acoustic simulations, the computational grids easily require billions of points, which challenges even the largest HPC clusters.

 

Quantum CFD may accelerate these computations exponentially, but encoding realistic geometries while preserving the advantage is a problem in itself. Haiqu researchers have shown how to overcome this challenge for quantum acoustic simulations.
If you're exploring quantum-ready simulations beyond classical HPC limits, Haiqu can help you evaluate what’s possible today and what’s coming next.

Book a demo

 

The Quantum Leap

Quantum computers offer a potential breakthrough: since the entire spatial grid can be encoded with logarithmically many qubits and the PDE simulated in time polynomial in qubit numbers, an exponential advantage over classical CFD simulations could be achieved!

 

One of the recent approaches to solving the PDE itself is by mapping it to a quantum system evolving under a Hamiltonian, which can very naturally be simulated on a quantum computer. However, in order to apply to realistic problems, such as sound scattering from an aircraft wing, the appropriate fluid equations and boundary conditions that describe arbitrary geometries and obstacles must  be included in the quantum Hamiltonian, which is highly nontrivial.

This is precisely the problem that the Haiqu researchers addressed in their work, “Quantum Hamiltonian simulation of linearised Euler equations in complex geometries”. They showed how classical CFD equations for sound propagation can be directly mapped to a quantum computation, particularly when including complex obstacles (like wings!), in a way which preserves the exponential advantage of the quantum approach.

 

Turning Everyday Air Flow into a Quantum Algorithm

The air particles behave according to three simple bookkeeping rules: mass is never lost, momentum changes only when forces act, and energy has to go somewhere (it cannot appear or vanish). Writing those ideas down for every tiny parcel of air gives a system of linked equations—one for each rule—so that changes in pressure, density, and velocity stay consistent everywhere in the flow. For real-world viscous fluids, these equations are the famous Navier–Stokes equations.

To simplify the problem, we use the approximation that air is an inviscid fluid (no stickiness) and does not exchange heat. Under those two assumptions, the Navier–Stokes equations collapse into the much simpler Euler equations. Imagine now a smooth and uniform background flow of a fluid - picture a steady breeze moving in a single direction. The sound waves we care about are tiny ripples on top of that steady breeze, and we can therefore linearise the Euler equations: keep only the terms that describe these small disturbances and drop all higher-order contributions.

The linearised Euler (LE) equations so obtained (here: in two dimensions) describe how pressure and fluid velocity components evolve while being carried downstream by the uniform flow with speed u in x direction:
 

Above, u,v,p denote, respectively, the velocities in the x,y directions and the pressure deviation from the average, while is the density of the environment, and c is the speed of the sound.

As sound is a pressure wave, the LE equations model the propagation of noise through the air. In the absence of background flow (u=0) they reduce to a simple wave equation.

 

While approaches for solving the simpler wave equation on a quantum computer have been shown, until now, this was not the case for more complex linearized Euler equations. One of the ways quantum computers can be used to solve such classical problems is by looking at them as a kind of quantum evolution — that is, interpreting them as describing how a quantum system changes over time.

 

We can generally write our classical PDE system as df/dt=Af with f=(p,u,v), for a linear operator A. Interestingly, when A has certain properties — in particular, when it is made up of real numbers and is antisymmetric — we can rewrite this problem in a way that looks just like how quantum systems evolve. In quantum physics, the evolution of a system over time is described by the Schrödinger equation df/dt=-iHf, which depends on the Hamiltonian operator H. You can think of the Hamiltonian as the "energy operator", it prescribes how the system behaves, controlling its evolution. If we can rewrite our classical problem in terms of a Hamiltonian — by formally setting H=iA (where i is the square root of -1) — then solving the original problem becomes like simulating a quantum system over time. As Hamiltonian operators obey certain mathematical properties (hermiticity), such rewriting is only sometimes possible, and depends on the details not only of the equation, but also of the boundary conditions, all of which determine the structure of the matrix A.

Haiqu researchers have shown how this can be achieved for the linearized Euler equations, even when arbitrarily complex boundary conditions, describing obstacles such as wings, pipes, constructions etc. are included. This allows modeling aero-acoustic phenomena in realistic scenarios. Since the ultimate goal is the simulations of these systems on real quantum devices, an important contribution of the work is the detailed construction of explicit quantum circuits, which can be executed on typical QPU architectures, for example superconducting devices. 

Figure 1 - Ideal quantum simulation of the quantum circuits derived by Haiqu for the 2D pressure wave propagation on a constant background flow in the x direction with an impenetrable obstacle (colored in darkgreen). One can observe how the wave, starting from a single point source, propagates and moves with the flow, bending the object and reflecting from it.

 

💡 What makes this work special is that these complex boundary conditions, key to solving realistic problems, are shown to be implementable without breaking the simulation’s efficiency.

That is, including obstacles in the flow does not lead to an asymptotically higher computational cost or increase the simulation error.

 

From Research to Real Quantum CFD

Haiqu researchers have developed a novel quantum algorithm for simulating the linearized Euler equations. The approach demonstrates a clear potential for quantum advantage by leveraging exponential grid encoding with only polynomial quantum resources, and allows to construct simulations of real-world aero-acoustic problems, thanks to an efficient implementation of complex obstacles and boundary conditions in the equation.

 

Move from insight to execution. See how Haiqu turns quantum CFD research into runnable workflows on today’s quantum hardware.

Talk to the Haiqu team

 

Download our research paper for more information.

Interested in more Quantum CFD research? Explore the AWS blog post about our work with Quanscient on running the largest-grid Quantum CFD simulation on a real QPU, as finalists in the Airbus & BMW quantum challenge.

Haiqu News 07

Haiqu raises $11M seed round led by Primary

Blog

Haiqu keeps the party going. 

Thank you to our new investors: Primary Venture Partners, Collaborative Fund, Alumni Ventures, Qudit Ventures, Silicon Roundabout Ventures, Harlow Capital, and Hyperion Capital. 

Thank you to our returning investors: MaC Venture Capital & Toyota Ventures.

Thank you to our champions across the industry.

Now Phase II begins: our Product phase.

Don't be a classicist. Try our beta. 

Read the full press release here.

Haiqu News 08

Haiqu claims advance in fraud detection technology

Blog

Quantum software startup Haiqu announced results from a trial this week demonstrating that current quantum computers could detect subtle financial anomalies that could indicate fraud more efficiently than purely classical systems.

The research, which used a hybrid computing approach pairing quantum processing power with traditional machine learning models, revealed performance gains that suggest a near-term path toward achieving "quantum advantage" for large-scale, real-world problems.

Read full article here.

Haiqu News 06

Haiqu and HSBC research team encodes ‘largest financial distributions to date’ on quantum computers

Blog

A team of Haiqu-led researchers have developed a new approach to encoding complex financial data into quantum circuits, pushing the limits of IBM’s quantum processors, according to a paper published on the pre-print server arXiv. The team reports that the method, which focuses on shallow and efficient circuit designs, could advance the use of quantum computing in finance and other industries.

In a recent LinkedIn post on the paper, the team writes: “Quantum computing cannot achieve wide utility in the near term until we can efficiently load classical data onto quantum hardware. Now, we can.”

Read full article here.

Haiqu News 05

Haiqu recognized by Sifted as an emerging top quantum computing startup

Blog

Sifted asked investors in the field who they think is the next big thing in quantum computing.

European quantum startups are on the rise. Last year, while many VC-backed companies in the region were struggling to raise funds, Europe’s quantum startups actually saw investments grow by 3% to reach $781m — more than three times the amount raised in the sector in North America ($240m).

It also made Europe the only region to see funding for quantum startups increase, while investments in North America dropped by 80%, and by 17% in Asia-Pacific.

With strong support from governments — the UK has committed $4.3bn to quantum technologies, while Germany has pledged over $3.7bn — and burgeoning interest from VCs, Europe’s quantum scene is growing steadily. 

Read full article here.

Haiqu News 03

Haiqu and Perimeter Institute forge new model for quantum computing research

Blog

The Perimeter Institute has established a new partnership with quantum software startup Haiqu (pronounced as ˈhaɪku) that will bring fundamental research and technological innovation closer together. Haiqu has established operations in the US, UK, and Ukraine. Through this partnership, the company will base its first Canadian hire, Dmitri Iouchtchenko, at the Perimeter Institute Quantum Intelligence Lab (PIQuIL).

Read full article here. 

Haiqu News 02

Haiqu presents at Creative Destruction Lab’s super session as top graduating venture

Blog

Graduating Ventures Took to the Main Stage at Super Session, Sharing Their CDL Journeys

Founders and speakers representing four graduating ventures and three CDL alumni companies got onstage in front of a thousand of their peers, mentors and investors to share their inspiring stories of success, and reflect on their takeaways from the CDL program.

The concluding main stage event at June’s Super Session was a showcase of some of the incredible talent that’s recently been nurtured within the 24 global streams that make up the Creative Destruction Lab (CDL) program...Another venture invited to the main stage was quantum computing company Haiqu. Unlike other streams, applicants being considered for fall admission into the Quantum program travel to Toronto for several weeks between July and August for a bootcamp. That’s where this graduating company’s co-founders, Richard Givhan and Mykola Maksymenko, met last year.

Read full article here.

Haiqu News 01

Haiqu Raises $4M Pre-Seed to Boost Quantum Computing Adoption

Blog

Haiqu Raises $4 Million in Pre-Seed Funding to Boost Adoption of Near-term Quantum Computing

Haiqu, a startup building software to enhance the performance of quantum processors, today announced it has closed a $4 million financing round led by MaC Venture Capital, with participation from Toyota Ventures, SOMA capital, u.ventures, SID Venture Partners and Roosh Ventures. The round also included private contributions from Paul Holland, Alexi Kirilenko and Gordy Holterman.

“We are accelerating the timeline to practical quantum computing by developing novel software that can extract value out of clumsy near-term quantum hardware, enabling quantum applications that were previously impossible.” said Richard Givhan, co-founder and CEO at Haiqu. “We are proud to be backed by investors with remarkable deep-tech ecosystems and a track record of supporting the commercialization of breakthrough tech.“

Read full article here.

Read Banner

Quantum embeddings for anomaly detection

Blog
Overview

Detecting rare or unusual patterns requires working with large, complex data.

Traditional machine learning loses accuracy when data has many features but few examples.

Quantum machine learning can uncover patterns classical methods miss, but is limited by low qubit counts to low-dimensional datasets.

Haiqu’s new quantum encoding solution packs hundreds of features into just a few qubits and scales efficiently, removing a major barrier to real-world data processing on a quantum computer.

Anomalies are the world’s early warning systems. They appear as subtle ripples before an earthquake, a sudden deviation in a patient’s vital signs, or a single fraudulent transaction hidden among millions of legitimate ones. Detecting such rare events is essential for safety, trust, and reliability in modern data-driven systems. Still, it remains one of the hardest problems in machine learning.

The reason lies in their rarity. By definition, anomalies are statistical outliers, making up only a fraction of a dataset. Classical models must learn to recognize these events despite being trained predominantly on normal examples. And in practice, the data itself compounds the difficulty. Hundreds of correlated features, nonlinear dependencies, and limited examples make it hard for algorithms to find meaningful structure.

Classical approaches like decision trees, logistic regression, and deep neural networks have achieved remarkable progress, but even the best of them eventually plateau. Particularly at high dimensionality and low sample size, they begin to lose their footing. This is where quantum computing, with its fundamentally different way of representing and processing information, may offer a new path forward.

“The ability to encode high dimensional data with hundreds and even thousands of features enables applications of a new scale, as what the team at Haiqu has experimentally shown on our hardware. Advances like this are what push the industry towards achieving a quantum advantage in the near term.”
 

Jay Gambetta, Director of IBM Research

Where Classical Representations Fall Short


Machine learning is dependent upon how we represent data. The features describing the data determine what a model can perceive, and, as a result, what it can learn. The goal of kernel methods and, more broadly, of representation learning is to construct new data features, often by embedding in larger spaces, which “expose” the inherent patterns in the data1. This allows downstream machine learning models to achieve better performance in e.g. classification tasks. In most real-world data, however, the relations between these features are nonlinear and strongly correlated, which poses a major challenge to classical methods.

Quantum systems, by contrast, naturally take advantage of superposition and entanglement to process unstructured feature vectors2. This allows both to embed data in an exponentially larger space of multi-qubit states and to reveal its structure through the use of quantum dynamics, enabling efficient classification. In other words, mapping classical data into this space effectively expands the representational canvas and allows the discovery of patterns that classical embeddings may flatten or miss entirely.

This concept is central to quantum machine learning. Through quantum embeddings, data is transformed into quantum states, and similarities between samples are evaluated via quantum kernels, comparable to kernel methods in classical machine learning but powered by the physics of interference. Even when run in simulation, these quantum representations reveal how computation in Hilbert space can enrich classical preprocessing2.

"Understanding and implementing quantum embedding is an essential part of data analysis on quantum devices. Ultimately, they define the complexity of models and their performance. [...] Anomaly detection is a very suitable target, since even a smaller improvement in scores can lead to crucial detections or elimination of false positives."

Prof. Oleksandr Kyriienko
Professor and Chair in Quantum Technologies at the University of Sheffield.

Encoding Data of Previously Impossible Size


The first step to constructing a quantum embedding is to encode the original data in a quantum state, which is then transformed using e.g. quantum dynamics. While many existing studies rely on angular encodings, such methods quickly reach their limits as the number of qubits required grows linearly with the number of data features 3, 4. Most near-term quantum devices have fewer than 150 qubits, yet anomaly-detection and other real-life datasets can easily contain hundreds or thousands of features. This creates a dimensionality gap that makes naïve quantum feature maps impractical.

The Problem

Near-term quantum devices have fewer than 150 qubits, making naïve feature encodings impractical for real-world datasets with hundreds or thousands of features.

To address this challenge, we developed a novel data encoding method, which allows us to encode polynomially more features with the same number of qubits. Moreover, our method awards control over the complexity of the resulting quantum state and of the quantum circuit creating it. This permits adjusting the embedding to both the number of features in the data, as well as to the parameters of the QPU. Our dataset contained 506 classical features which we mapped onto 128 qubits, but the same QPU could be used to encode an order of magnitude larger feature numbers with our technique.

The Solution

We develop an encoding solution that allows an order of magnitude more features to be loaded on a QPU.

The resulting embeddings can be used as feature transformations in any machine-learning pipeline, feeding quantum-enriched data into classical models. This hybrid structure of classical models trained on quantum-preprocessed data forms the foundation of our experiment.

“Haiqu’s scalable embedding technology marks a turning point for quantum machine learning, making complex, high-dimensional data practical at scale. This innovation doesn’t just advance research; it accelerates the shift toward real-world impact in industries like finance, where precision and insight redefine what’s possible.”

Dr. Kristin Milchanowski, Chief AI and Data Officer, BMO

A Head-to-Head Comparison


To test the performance of our quantum embeddings against their classical counterparts task we designed an experiment with two parallel pipelines: a hybrid one (quantum+classical), and a fully classical one, as shown in Figure 1. The inputs to both are constructed from the Multivariate Time Series Anomaly benchmark used to evaluate the detection of rare events in temporal data. Our dataset consists of a smaller and balanced subset of 250 samples of coarse-grained time-series, where time-points within time windows in the original data have been merged together to form high-dimensional vectors of 506 features.

This reduced sample size enables easy reproducibility of our experiments—including the costly QPU runs—while still capturing the complexity of real-world scenarios.

Fairness of comparison was central to our evaluation of the potential of quantum embeddings. In both pipelines, data is embedded into an enlarged space. In the quantum setting, we apply our novel data encoding, evolve the system under a parameterized quantum circuit implementing Heisenberg dynamics with randomly chosen parameters, and measure the resulting state to obtain new classical features. This is a form of projected quantum kernel (PQK) [3, 4]. In the classical pipeline, we tested two forms of embeddings with the same number of parameters as the quantum model: neural networks with random parameters, and random Fourier features. These embeddings produced new classical features of the same dimensionality as those generated by the quantum feature map.

Both the quantum-processed and classically-generated features were then input into the same families of classical classifiers, such as random forests and logistic regression. The hyperparameters of each classifier were independently optimized to ensure the best possible performance within each pipeline. We employed an 80/20 train–test split and evaluated performance using the F1 score, which balances precision and recall for imbalanced classification tasks.

 

 

Figure 1: Quantum versus classical embeddings experiment pipeline. Both process the same dataset, but use different feature construction methods before feeding it into classical classifiers. The input data has 506 features per data point (see the main text for details). The quantum embedding uses Haiqu's proprietary data loading to encode each point in a quantum state over 128 qubits, which is then transformed through an evolution circuit with random parameters, and, finally, read out with 1024 measurement shots. These measurements are used to compute the expectation values of 8256 observables. On the classical side, random neural networks and random Fourier Features are used to construct features, also of 8256 dimensions. Classical classifiers (see Fig.2) are then trained separately for the classical and quantum features (we selected the best quantum, and the best classical features) and their performance compared.

Results: Quantum-Enhanced Preprocessing Works

The results show a consistent trend: quantum-preprocessed features outperform classical ones across multiple models. Crucially, this is the case both in simulation and on real QPUs.

In ideal simulations, our projected quantum kernel (PQK) achieved an F1 score of 0.98, outperforming classical baselines of around 0.90–0.93. Even on real quantum hardware, in this case an IBM Quantum Heron processor, where noise and gate infidelity introduce imperfections, the model retained an impressive 0.96 F1, showing that the method is both effective and robust under realistic device conditions.

 

 

Figure 2. Top: The F1 score of different classical classifiers using either the classical (black) or the quantum (blue) features obtained on the IBM Quantum Heron processor. For most classifiers the quantum features provide better performance. Bottom: A more detailed comparison for the Logistic Regression Classifier. The classifier with original input data achieves an F1 score of 0.91, while the random classical embeddings essentially do not improve the score (0.92). In contrast, using the random quantum embedding a score of 0.98 is obtained when simulated without noise, and 0.96 when executed on the real noisy quantum processor.

The largest relative improvements appeared in tree-based models such as Decision Trees and Random Forests, which benefited most from the richer feature representations. Across the board, these results suggest that quantum embeddings can serve as a general-purpose preprocessing layer, improving performance without changing model complexity or parameter count. In other words, quantum systems need not replace classical models, but augment them.

A Glimpse of the Future
 

The importance of our findings is threefold:

— First, it shows that quantum-enhanced features can achieve superior performance over classical embeddings in complex data.

— Second, that extremely high-dimensional data can be embedded using our methods on existing QPUs.

— Third, we show that this superior performance is present both in idealized simulation that validates the pipeline, and on real noisy quantum hardware.

Taken together, the results provide an empirical signal that quantum advantage with QML may be possible to achieve in full-fledged industrial deployment to complex high-dimensional problems, and that investigating efficient quantum data embeddings on real datasets is a promising path towards realizing that advantage.

This holds even without training the embedding weights, which should further improve the features, and thus the final performance.

Importantly, while our experiment scale still allowed for a classical simulation to validate the results, its complexity was already such that sampling on the QPU was actually faster than running the classical simulations. 

With increasing problem size (and thus qubit numbers and circuit depth) classical simulations will become completely infeasible, but already at smaller scales it may become advantageous to use the QPU at least for the inference from a trained kernel.

Thus, a hybrid QML pipeline which achieves superior performance in a complete end-to-end industrial deployment will likely involve a classical pre-training step of the quantum embedding using large scale simulation, followed by an optional fine-tuning step on a QPU, and finally, an inference step performed at test time on a QPU.

This hybrid workflow could extend beyond anomaly detection into fields like cybersecurity, financial modeling, predictive maintenance, and health diagnostics, all domains where interpretability and early warning signals matter most.

A Call To Explore
 

Our anomaly-detection study provides early evidence that quantum-enhanced preprocessing is practically meaningful even on today’s noisy hardware. Out study demonstrates how hybrid pipelines can achieve measurable gains without increasing model complexity, parameter count, or data requirements.

We are now preparing to share interactive notebooks that allow verified beta users to reproduce this experiment using Haiqu’s embedding technology. These tools will enable researchers and developers to explore quantum preprocessing within their own domains, from time-series analysis to computer vision, and benchmark their results against classical baselines.

We invite the community to join this exploration: replicate, challenge, and build upon our results. Each successful reproduction strengthens the case for a future where quantum and classical computation work hand in hand, and where models understand data more deeply. 

Footnotes

  1. Shawe-Taylor, John, and Nello Cristianini. Kernel methods for pattern analysis. Cambridge university press, 2004.
  2. Schuld, Maria, and Francesco Petruccione. Machine learning with quantum computers. Vol. 676. Berlin: Springer, 2021.
  3. Schnabel, J., and M. Roth. "Quantum kernel methods under scrutiny: A benchmarking study (2024)." arXiv preprint arXiv:2409.04406.
  4. D'Amore, Francesco, Luca Mariani, Carlo Mastroianni, Francesco Plastina, Luca Salatino, Jacopo Settino, and Andrea Vinci. "Assessing Projected Quantum Kernels for the Classification of IoT Data." arXiv preprint arXiv:2505.14593 (2025).
Chladni still

Efficient computation of PEPS gradients for optimized quantum state preparation on 2D topologies

Publications

We propose an efficient method for computing gradients of parametrized quantum circuits on PEPS simulator, a key computation in variational and quantum-classical hybrid pipelines such as quantum machine learning, ground state search or data loading. PEPS simulator enables these routines to follow limited device topology precisely avoiding routing costs, which allows to prepare shallower circuits on current hardware. We demonstrate the method on preparing ground state and evolution states at utility scale following connectivity of IBM’s heavy hex and square lattice superconducting devices, and show an improvement upon previously available methods.

Date: 12 Nov 2026

Authors: Illia Lukin, Vladyslav Bohun, Maciej Koch-Janusz

1794868044702
Computing the overlap between different bra and ket PEPS states, with the physical indices at one site left open, using a boundary matrix product state (bMPS) contraction. (a) Tensor network for the overlap with two open physical indices at one site. (b) The leftmost column of the tensor network defines the first left bMPS |L₁⟩. (c) The remaining columns are absorbed into the bMPS, yielding the left bMPS |Lₖ⟩ and right bMPS |Rₖ⟩. (d) The central column containing the open physical indices is sandwiched between the left and right bMPS. (e) The resulting sandwich tensor network is divided into rows T₁, T₂, …. (f) The first row T₁ defines the first bottom tensor |b₁⟩. Subsequent bottom tensors are obtained by contracting successive rows: |bₖ⟩ = Tₖ|bₖ₋₁⟩. The top tensors |tₖ⟩ are defined analogously. (g) The final contraction yields the tensor ρ, a matrix with two open physical indices.
1794868044438
Computing the gradient (Algorithm 2) using two PEPS sweeps through the disentangling circuit. Blue sublayers contain parametrised single-qubit gates R (products of Rᵧ and R𝓏), while grey sublayers contain only CX gates. The forward state |lₖ⟩ and the backward state ⟨rₖ| meet at the cut directly after each parametrised sublayer. Contracting them with the physical indices of qubit j left open (red circle) yields ρⱼₘ and, via Eq. (3), the gradients of the angles in that sublayer. The overlaps at different k are independent (∥) and computed in parallel; the loss is computed from the overlap at the left boundary.
Chladni still

Reducing quantum and classical resources for quantum-centric supercomputing workloads on near-term hardware

Publications

We study analytically and experimentally the performance of Sample-based Krylov Quantum Diagonalization, on current noisy quantum computers. We show that noise imposes strong constraints on the convergence of the algorithm, but that Haiqu’s compression tool allows one to recover the theoretical convergence guarantee in real experiments. We demonstrate this on a 40-qubit experiment by recovering the ground state of the Anderson impurity model, a paradigmatic example of strongly-correlated systems, using IBM quantum computers.

Date: 15 September 2026
Journal/conference link and reference: Paper link not yet available.
QCE26 Workshop on Advancing Hybrid Computing Through Shared Challenges in 2026 IEEE International Conference on Quantum computing and Engineering (QCE’26)

Chladni still

What Symmetry Buys on Hardware: Compressing an SU(2)-Equivariant Ansatz for the Kagome Heisenberg Antiferromagnet

Publications

Working with researchers at the Perimeter Institute, we asked what a quantum circuit's built-in symmetry is actually worth on today's noisy hardware, rather than on paper. Exploiting the rotational symmetry of a frustrated magnet, we cut a trained circuit's most expensive gates by nearly three quarters, turned the symmetry into a free filter against measurement noise, and reached excited states by re-initialising the same circuit. We then ran it on an IBM processor. Pushing demanding condensed-matter problems inside the limits of the machines that exist today is how quantum computers start doing useful science before full fault tolerance arrives. 


Date: 13 September 2026
Journal/conference link and reference: Paper link not yet available.
4th International Workshop on Quantum Machine Learning,  in 2026 IEEE International Conference on Quantum computing and Engineering (QCE’26)
 

Haiqu News 04

Solving Virtual Backbone Problems with Digitized Cyclic Annealing on Near-Term Quantum Computers

Publications

Current quantum computers are limited in the number of operations they can execute, which can limit the performance of certain algorithms such as the Quantum Approximate Optimization Algorithm (QAOA). We show that we can circumvent this limitation by iteratively improving the quality of the solutions we obtained from a depth-limited QAOA circuit by using insights from the phase diagrams of the related spin system. We apply this Cyclic annealing technique to identify the virtual backbone of a unit-disk graph, a problem encountered in network design and antenna placement.


 

Read on arXiv 


Journal/conference link and reference: Published in 2026 35th International Conference on Computer Communications and Networks (ICCCN) 
DOI : 10.1109/ICCCN69946.2026.11662952 
 

DQC 1
Wireless mesh, IoT and ad-hoc networks relay traffic through a virtual backbone: a small, connected set of relay nodes (blue) that every other node can reach. Finding the smallest such set, the minimum connected dominating set, is NP-hard. Network shown is illustrative.
DQC algorithm
Digitized Cyclic Annealing. Left: one annealing cycle in the transverse (Bx) and longitudinal (Bz) field plane; the tunable longitudinal field balances exploring new configurations with refining the current solution. Right: parameters learned on small instances (5–10 nodes) transfer to the 73-node problem, removing the need for variational training on quantum hardware.
DQC 2
Haiqu's hardware-aware circuit optimization and tensor-network compression cut the two-qubit gate count from 6,648 to 2,002 (−70%) and the two-qubit depth from 980 to 335 (−66%) relative to the raw circuit, making a 73-qubit run on IBM Quantum Kingston practical.
DQC 3
Left: backbone sizes sampled by DCA and linear-ramp QAOA on the 73-node instance. DCA finds smaller backbones on average, competitive with a classical greedy heuristic (dashed). Right: energy distributions across DCA iterations on noisy hardware; low-energy sampling improves with each cycle. Redrawn from Figs. 6 and 7 of the paper.
Chladni still

Entanglement scaling in matrix product state representation of smooth functions and their shallow quantum circuit approximations

Publications

We show how using Haiqu’s Tensor Network tools extremely shallow and accurate quantum circuits encoding data such as probability distributions can be prepared for large qubit numbers. Such circuits are required in quantum finance applications, where naive data loading may ruin any chance of quantum advantage. In our work we analyse theoretical properties of such encodings and demonstrate our algorithm loading the largest to-date examples of financial distributions on up to 156 qubits.

Date: 20 April 2026 
Journal/conference link and reference: Phys. Rev. Research 8, 023062 (2026)
https://journals.aps.org/prresearch/abstract/10.1103/yyvr-dtsb


 

Read on arXiv 

Chladni still

Quantum algorithm for the lattice Boltzmann method with applications on real quantum devices

Publications

In collaboration with Quanscient, Haiqu demonstrated the first non-linear simulation of 2D Navier-Stokes (NS) equations with obstacles on an IBM quantum processor. This is an important milestone, as this quantum computational fluid dynamics (CFD) problem exhibits all the key features of real industrial applications, such as calculating the airflow around an airplane wing, that is both the presence of non-linearities and complex boundary conditions. 

Date: 2 March 2026
Journal/conference link and reference: N/A

Read on arXiv 

Chladni still

Quantum Hamiltonian simulation of linearised Euler equations in complex geometries

Publications

We extended a promising quantum algorithm for solving partial differential equations (PDE), key to modelling fluid, heat, and radiation flows in industrial and scientific applications, to a much broader and realistic class of systems. In particular we showed how to efficiently include obstacles, representing e.g. aircraft wings, or fluid nozzles, in the algorithm, without compromising the potential quantum advantage. We demonstrated the method by generating and executing quantum circuits for a simulation of acoustic wave propagation.

Date: 20 October 2025
Journal/conference link and reference: N/A

Read on arXiv 

Chladni still

Computational access to lattice and long-wavelength physics in quantum mutual information

Publications

Quantities like Quantum Mutual or Renyi Information are important in studying quantum systems, but are very difficult to experimentally or numerically evaluate. We investigate the computational and theoretical properties of many of their variants, identifying preferred ones, which are the least sensitive to physically unimportant simulation details.

Date: 2 October 2025
Journal/conference link and reference: N/A


 

Read on arXiv 

Chladni still

Accelerating Transpilation in Quantum Machine Learning with Haiqu’s Rivet-transpiler

Publications

Quantum programs need to be translated into hardware-compatible instructions before they can run, a process known as transpilation. In applications such as quantum machine learning, circuits may change repeatedly during training, normally requiring them to be transpiled again after each modification; Haiqu’s Rivet transpiler avoids much of this repeated work by reusing already-translated parts of the circuit. In our experiments, this reduced transpilation time by up to 6x, enabling faster iteration and making larger, more complex quantum models more practical to train.

Date: 29/08/2025
Journal/conference link and reference: N/A


 

Read on arXiv 

Chladni still

Beyond Penrose tensor diagrams with the ZX calculus: Applications to quantum computing, quantum machine learning, condensed matter physics, and quantum gravity

Publications

Working with researchers at Quantinuum, the Universities of Oxford and Cambridge, and the Perimeter Institute, we introduced Spin-ZX, a graphical language for reasoning about quantum systems with spin. By making complex spin structure easier to represent, manipulate, and connect to quantum circuits, the framework expands the tools available for designing and analysing more expressive quantum algorithms, setting the stage for new capabilities in quantum computing and quantum machine learning.

Date: 08/11/2025
Journal/conference link and reference: N/A
 

Read on arXiv 

Chladni still

A graphical diagnostic of topological order using ZX calculus

Publications

Working with researchers at the CNRS and the Donostia International Physics Center, we developed a graphical way to identify topological order using ZX calculus, without relying on traditional entanglement-entropy calculations. Understanding and diagnosing these robust forms of quantum order is an important step toward controlling complex quantum systems, helping develop the foundations for fault-tolerant quantum computation and the quantum resources needed for useful computation.

Date: 15/01/2025
Journal/conference link and reference: N/A

Read on arXiv 

Chladni still

Machine Learning the Operator Content of the Critical Self-Dual Ising-Higgs Gauge Model

Publications

We combine AI with information theoretic tools to discover the physical theory underlying an important condensed matter model. Lattice gauge theories such as the Self-Dual Ising Higgs gauge model are central to current research on phase transitions in strongly interacting systems and materials, and are also important in high-energy physics. 

Date: 25 December 2024
Journal/conference link and reference: Phys. Rev. Research 6, 043322 (2024)
https://journals.aps.org/prresearch/abstract/10.1103/PhysRevResearch.6.043322


 

Read on arXiv 

Chladni still

Efficient Hamiltonian Simulation: A Utility Scale Perspective for Covalent Inhibitor Reactivity Prediction

Publications

We demonstrate how Haiqu’s optimized execution enables the dynamical simulation of the electronic structure of pharmaceutically-relevant molecules. Previously unavailable due to extremely deep quantum circuits being corrupted by the hardware noise, these results, in combination with classical machine learning, enable prediction of reactivity of the studied molecules. This property is a key metric in drug discovery research. Following a 15x reduction of the quantum circuit depth compared to baseline, we recovered the relevant signal from the quantum computer with high accuracy, while the bare execution produced uniform noise.

Date: 2024/12/20
Journal/conference link and reference: Accepted to Royal Society’s Phil. Trans. A., as part of a bigger paper. 


 

Read on arXiv 

Chladni still

Compression theory for inhomogeneous systems

Publications

We show how graph-based machine learning (ML) combined with information theory tools allows to automatically build and discover the properties of complex physical systems with irregular structure, such as quasicrystals. This is very important as many real materials, such as glasses, lack any regular crystalline structure.

Date: 25 November 2024
Journal/conference link and reference: Nature Communications 15, 10214 (2024)


 

Read on arXiv 

Chladni still

Efficient Training of Layerwise-Commuting PQCs with Parallel Gradient Estimation

Publications

Training variational quantum algorithms is normally expensive because each step requires repeated measurements on the quantum device to find the gradient. There exists a shortcut to bypass this cost, but it only works for circuits that are too simple to be useful. By building up and training the circuit one layer at a time, we keep the power of more expressive circuits while still cutting the number of measurements needed.

Date: 15 September 2024
Journal/conference link and reference: 2024 IEEE International Conference on Quantum Computing and Engineering (QCE’24) https://ieeexplore.ieee.org/document/10821191


 

Chladni still

Distributed Quantum Dynamics on Near-Term Quantum Processors

Publications

Quantum simulations of dynamics, key to materials science, are hindered both by limitations of qubit numbers and executable circuit depth. Here we combine two distinct methods alleviating each of them separately. By combining quantum circuit cutting with projected Variational Quantum Dynamics we are able to execute a deeper and wider quantum circuit, distributed across two separated quantum processors, than would have otherwise been possible.

Date: 5 Feb 2024
Journal/conference link and reference: N/A. 

Read on arXiv 

Chladni still

Approaching Quantum Utility by Leveraging Quantum Software Stack

Publications

This paper examines how software can help improve the practical performance of quantum computers and accelerate progress toward useful quantum computing.

It focuses on quantum middleware: the software layer between high-level quantum algorithms and the underlying hardware. This layer can optimize circuits, map computations onto physical qubits, reduce the impact of noise and errors, and provide more direct control over how quantum programs are compiled and executed.

The paper introduces the concept of Quantum Computing Optimization Middleware (QCOM) as a reference architecture for combining these capabilities in a structured way. It reviews optimization opportunities across different parts of the software stack, including circuit simplification, qubit mapping and routing, error suppression and mitigation, and lower-level machine instructions.

It also discusses tools such as Qiskit, Q#, and OpenQASM that can be used to experiment with these approaches. The main argument is that advances in middleware can significantly expand what can be achieved with existing quantum hardware, while also providing a foundation for more capable quantum systems in the future.

Date: 26 September 2023
Journal/conference link and reference: 2023 IEEE 13th International Conference on Electronics and Information Technologies (ELIT) https://ieeexplore.ieee.org/document/10310743