Home · ASPLOS 2024 · Quantum Computing

FMCC: Flexible Measurement-based Quantum Computation over Cluster State

Yingheng Li, Aditya Pawar, Zewei Mo, Youtao Zhang, Jun Yang and Xulong Tang

Conference
ASPLOS 2024
Published
2024
Pages
111-126
Citations
5

Photonic quantum computers do not run gates the way a normal quantum computer does — instead they prepare a big mesh of entangled photons up front and then compute purely by measuring the photons one at a time, and how deep that mesh has to be sets both how long the computation takes and how much error it accumulates; this work from the University of Pittsburgh builds FMCC, a compiler that uses dynamic programming with heuristics to lay out a program on the mesh with far less depth, cutting it by roughly half over the best prior compilers.

The argument in one glance

  1. Problem

    Photonic quantum computing runs by measuring an entangled mesh

    Measurement-based quantum computing (MBQC) computes not by applying gates but by preparing a large entangled resource — a cluster state — and then measuring its qubits one at a time in an adaptive order. This is the natural paradigm for photonic quantum computing, where the cluster state is a two-dimensional mesh of entangled photons. The length of that one-way measurement sequence, the cluster state depth, sets both the execution time and the accumulated error, so keeping it small is essential.

  2. What people did

    Compile the program onto a cluster state with existing MBQC compilers

    To run a quantum program on such a machine, a compiler must translate it into a cluster state plus a pattern of adaptive measurements. State-of-the-art MBQC compilers map the computation onto the entangled mesh and produce a working measurement schedule.

  3. Why it fell short

    Existing compilations leave the cluster state far too deep

    Many different cluster-state realizations implement the same program, and they differ widely in depth, yet existing compilers do not search that space well — they leave the cluster state much deeper than necessary. Because depth drives both how long the computation runs and how much error it accumulates as photons decohere and measurements pile up, an unnecessarily deep cluster state means a slower, less accurate computation.

  4. This paper's idea

    Search the layout space with dynamic programming to minimize depth

    FMCC is a compilation framework that treats the choice of cluster-state layout as an optimization and searches it with dynamic programming guided by heuristics, efficiently finding a realization with far smaller depth. By building a shallow arrangement from optimal sub-arrangements and steering the search with heuristics so it stays fast at large qubit counts, FMCC cuts cluster state depth by roughly half compared to state-of-the-art MBQC compilers, reducing both runtime and error.

Why this problem is worth solving

To see why depth is the thing to minimize, it helps to understand how this style of quantum computing works at all.

The familiar picture of quantum computing is the gate model: qubits are acted on by a sequence of quantum gates, like a classical circuit. Measurement-based quantum computing turns this inside out. It begins by preparing one enormous, highly entangled resource state — the cluster state — in which many qubits are entangled together in a fixed pattern, typically a regular two-dimensional lattice. No further entangling operations are performed after that. Instead, the entire computation is carried out by measuring the individual qubits one at a time, in a chosen order and a chosen basis, where the basis of each measurement can depend on the outcomes of earlier ones. Because each measurement irreversibly collapses its qubit and consumes the entanglement, this is called one-way computation. The cluster state is a universal resource: any quantum computation can be realized as some pattern of adaptive single-qubit measurements on a large enough cluster. This paradigm is especially attractive for photonic quantum computers, where entangling two photons on the fly (a two-qubit gate) is very hard, but preparing a mesh of entangled photons ahead of time and then measuring them one by one is feasible. So in photonic quantum computing the cluster state is a two-dimensional mesh of entangled photons, and the program is a schedule of measurements over it.

Given that structure, the cost of a computation is not counted in gates but in the length of the measurement schedule.

Since the computation proceeds as a sequence of measurements across the cluster, the natural measure of its size is the cluster state depth — roughly, the length of that one-way measurement sequence, or how many measurement steps deep the cluster must be along the direction of computation. This single quantity governs the two things that matter most on real hardware. First, execution time: a deeper cluster means a longer sequence of measurements to perform, so the computation takes longer. Second, and just as important, error: quantum states are fragile, and the longer a computation runs, the more the photons decohere and the more measurement imperfections accumulate, so a deeper cluster produces a noisier, less reliable result. On today’s error-prone quantum hardware, where only shallow computations survive long enough to give a usable answer, this makes depth the dominant cost. Two compilations of the same program that differ in cluster state depth can differ substantially in both how fast they run and how accurate they are. Minimizing cluster state depth is therefore not a minor tuning knob but the central optimization for making measurement-based photonic quantum computing practical — which is exactly what FMCC sets out to do.

What people did before, and where it broke

  • Gate-model compilation. Compile quantum programs for the standard gate model, minimizing gate count and circuit depth. Where it broke. It targets a different machine entirely; a photonic MBQC computer has no gates to schedule, only a cluster state to prepare and a measurement pattern to run, so gate-model compilation does not apply.
  • Naive cluster-state mapping. Translate a program into some valid cluster state and measurement pattern without optimizing its depth. Where it broke. It produces a working but needlessly deep cluster state, inflating both execution time and the error the computation accumulates.
  • State-of-the-art MBQC compilers. Map the computation onto the entangled mesh with heuristics aimed at a reasonable schedule. Where it broke. They do not search the large space of valid cluster-state layouts thoroughly, so they leave the depth far larger than necessary — the gap FMCC closes by roughly half.
  • The gap. No compiler efficiently found a low-depth cluster-state realization of a program: something that explores the many valid layouts and picks a shallow one, while staying tractable at large qubit counts. Casting that search as a dynamic-programming optimization guided by heuristics is what FMCC contributes.

How FMCC works

From a needlessly deep cluster state to a shallow one

  1. new

  2. new

  3. new

  4. new

  5. new

The idea

Minimize the one metric that governs both time and error. In measurement-based photonic computing the cost is not gate count but cluster state depth, and depth sets both how long the computation runs and how much error it picks up — so FMCC makes depth the explicit optimization target rather than a byproduct. Choosing the single cost metric that determines downstream time and fidelity and optimizing it directly is the same move the fermion-to-qubit encoding work covered elsewhere on this site makes, minimizing a compact proxy (the Pauli weight of the encoding) precisely because it is roughly proportional to the gate count and error of the compiled quantum circuit.

Tame the search with dynamic programming. The space of valid cluster-state layouts is far too large to enumerate, so FMCC builds an optimal shallow arrangement out of optimal solutions to smaller sub-arrangements, letting dynamic programming find a low-depth realization without brute force. Turning an intractable combinatorial compilation problem into a dynamic-programming recurrence that composes small optimal pieces is exactly the technique the flexible-sequence-parallelism work covered elsewhere on this site uses, shrinking an otherwise explosive optimization with a dynamic-programming step so a search that could never finish becomes one that completes in seconds.

Exploit the flexibility in how a program lays out on the resource. The same computation can be realized by many different cluster states, and that freedom is exactly what makes a shallow one findable — FMCC searches those rearrangements rather than accepting the first valid mapping. Exploiting the latitude to rearrange a quantum computation into a cheaper equivalent form is the same principle the permutable-operator quantum-compilation work covered elsewhere on this site is built on, using the freedom to reorder equivalent operations to reach a layout with far lower depth and cost than a fixed arrangement would give.

Following a program through FMCC

Compiling a program to a shallow cluster state

Tracing the compilation shows depth minimization at each step.

Step 1 of 5

Start from a quantum program

A quantum program that needs to run on a photonic measurement-based machine must be turned into an entangled cluster state plus a pattern of adaptive single-qubit measurements — there are no gates to schedule, only a mesh to prepare and measure.

The photonic cluster state is a two-dimensional mesh of entangled photons.

Why it works

  • Depth is the true cost of MBQC. A photonic measurement-based computation is carried out by measuring a fixed entangled mesh → so its cost is set not by gate count but by how deep the measurement sequence is → so minimizing cluster state depth is the right target for both speed and accuracy.
  • Halving depth helps time and fidelity together. Cluster state depth drives both execution time and accumulated error → so cutting the depth shortens the runtime and shrinks the error the computation picks up → so a depth-minimizing compiler improves fidelity as well as speed.
  • The savings live in the layout choice. Many valid cluster-state layouts realize the same program → but they differ widely in depth → so searching that space for a shallow one is where the improvement comes from.
  • Dynamic programming beats brute force. The layout space is far too large to search exhaustively → but dynamic programming builds an optimal shallow arrangement from optimal sub-arrangements → so it finds low-depth solutions without enumerating everything.
  • Heuristics keep it tractable at scale. Dynamic programming alone can still grow expensive as qubit counts rise → but heuristics steer it toward promising arrangements → so the compiler stays efficient at large scale, where it still cuts depth by more than half.

What it costs (trade-offs and scope)

  • It optimizes one metric, cluster state depth. FMCC targets depth as the proxy for time and error; other costs of a photonic realization — the number of entangled photons, resource-state preparation overhead, or hardware-specific error sources — are not the objective and could trade against depth.
  • Heuristic search is not guaranteed optimal. Dynamic programming with heuristics finds low-depth compilations efficiently, but the heuristics that keep it tractable at scale mean the result is near-optimal rather than provably minimal.
  • It targets the MBQC and photonic paradigm. The approach is specific to measurement-based computation over cluster states; it does not apply to gate-model quantum computers, whose compilation problem is different.
  • Depth is a proxy for real error. Reducing the measurement-sequence length reduces accumulated error in the model, but actual fidelity on hardware also depends on device-specific noise, photon loss, and measurement imperfections not fully captured by depth alone.
  • The gains are reported against specific baselines and applications. The roughly 51 to 57 percent depth reductions are over prior MBQC compilers on six quantum applications; other programs, baselines, or hardware would need their own evaluation.
  • It is a compile-time optimization. FMCC improves the compiled cluster state, but the end-to-end benefit still depends on the photonic hardware’s ability to prepare and measure that cluster state as modeled.

The evaluation

Three ways to realize a program on a photonic cluster state

PropertyNaive mappingPrior MBQC compilersFMCC
Optimization goalReduce cluster state depth
How the layout is chosenFixed or ad-hocHeuristic mapping
Resulting depthLower
Effect on time and errorSlow, error-proneBetter
Three ways to realize a program on a photonic cluster state, from the paper's reported results on six quantum applications. By casting the choice of cluster-state layout as a depth-minimizing optimization solved with dynamic programming and heuristics, FMCC reduces cluster state depth by an average of 51.7, 57.4, and 56.8 percent at small, medium, and large qubit counts respectively, compared to state-of-the-art MBQC compilers — cutting both execution time and accumulated error, and holding its advantage as the program grows. (This explainer is drawn from the paper's abstract and standard background on measurement-based and photonic quantum computing; the full text was not available.)Underlined values explain themselves when clicked.

Check yourself

Check your understanding

  1. 1. How does measurement-based quantum computing (MBQC) differ from the familiar gate model?

  2. 2. Why is cluster state depth the metric that FMCC minimizes?

  3. 3. What is FMCC's approach to minimizing cluster state depth?

  4. 4. Which statement best reflects FMCC's results and scope?

Sources

The paper is “FMCC: Flexible Measurement-based Quantum Computation over Cluster State” by Yingheng Li, Aditya Pawar, Zewei Mo, Youtao Zhang, Jun Yang, and Xulong Tang, published at ASPLOS 2024, DOI 10.1145/3622781.3674185. The authors are at the University of Pittsburgh.

This explainer is marked as a draft because the full text was not accessible: the paper is gold open access (Creative Commons) on the ACM Digital Library, but that page was protected by an anti-bot challenge that blocked automated retrieval, and no arXiv preprint, author-hosted copy, or repository version could be found. The account above is written from the paper’s published abstract together with standard, well-established background on measurement-based quantum computing and photonic quantum computing — how a cluster state is a large entangled resource, how one-way computation proceeds by adaptive single-qubit measurements, why photonic hardware favors this paradigm, and how cluster state depth (the length of the measurement sequence) drives execution time and error. The specific claims attributed to the paper — that measurement-based quantum computing is used in photonic quantum computing over photonic cluster states (a two-dimensional mesh of entangled photons), that cluster state depth plays an important role in overall execution time and circuit error, that FMCC is a compilation framework employing dynamic programming with heuristics to efficiently minimize cluster state depth, and that it achieves 51.7, 57.4, and 56.8 percent average depth reductions at small, medium, and large qubit counts across six quantum applications compared to state-of-the-art MBQC compilations — come directly from the abstract. The precise compilation algorithm (the dynamic-programming formulation and the heuristics) is described only at the level the abstract supports and should be confirmed against the full paper.

Related papers on Quantum Computing

See all 51 →