Optimal Scheduling of Graph States via Path Decompositions
Abstract
We study the optimal scheduling of graph states in measurement-based quantum computation, establishing an equivalence between measurement schedules and path decompositions of graphs. We define the spatial cost of a measurement schedule based on the number of simultaneously active qubits and prove that an optimal measurement schedule corresponds to a path decomposition of minimal width. Our analysis shows that approximating the spatial cost of a graph is NP-hard, while for graphs with bounded spatial cost, we establish an efficient algorithm for computing an optimal measurement schedule.
I Introduction
Measurement-based quantum computation is an approach to quantum computation where adaptive measurements are performed on an initially prepared entangled resource state [1, 2]. In this paper, we study the optimal scheduling of measurement-based quantum computation on a class of resource states known as graph states. Specifically, we establish an equivalence between measurement schedules and path decompositions of graphs.
Previous work has studied the optimisation of measurement-based quantum computation by designing graph states specific to the computation [3, 4]. The choice of graph state has a natural associated cost in terms of the number of qubits and entangling gates. However, the entanglement structure of graph states implies that the entire state may not need to be prepared simultaneously [5]. Consequently, we consider the spatial cost, based on the number of simultaneously active qubits.
Our results imply that the spatial cost of a measurement-based quantum computation scales with the pathwidth of the graph. Further, our analysis implies that approximating the spatial cost of a graph is NP-hard. For graphs with bounded spatial cost, we establish an efficient algorithm for computing an optimal measurement schedule.
We explore the implications of our results for implementations of fault-tolerant quantum computation. We argue that a low-degree graph, facilitating only nearest neighbour interactions such as the square lattice, is a suitable choice for reducing spatial resources.
This paper is structured as follows. In Section II, we introduce the necessary framework for our work. Then, in Section III, we prove our main result, which establishes an equivalence between measurement schedules and path decompositions of graphs. Then, in Section IV, we explore the computational complexity of the spatial cost and optimal measurement schedules. In Section V, we explore the implications of our results for implementations of fault-tolerant quantum computing. Finally, we conclude in Section VI with some remarks and open problems.
II Framework
In measurement-based quantum computation, a register of qubits is initially prepared in an entangled resource state and quantum operations are executed by performing measurements on individual qubits within this state [1, 2]. The focus of this work is on graph states, a type of resource state, which are represented by graphs with vertices corresponding to qubits and the edges denoting entanglement between them. Formally, for a graph , the graph state is defined by
(1) |
Measurements of individual qubits project the graph state into an eigenstate of the measurement observable. When these measurement observables are Pauli matrices, measurements are equivalent to performing Clifford operations. Alternatively, an appropriate choice of measurement observables allows for arbitrary single-qubit operations to be performed. The inherent randomness of quantum measurement necessitates an adaptive approach, meaning the measurement operations are decided based on the outcomes of previous measurements.
A measurement sequence is an ordering of the qubits, denoting the sequence in which they are measured. The entanglement structure of graph states implies that the entire state may not need to be prepared simultaneously [5]. Consequently, qubits can be sequentially initialised and entangled, ensuring only those necessary for the subsequent measurement are prepared. After a qubit has been measured, its physical manifestation can be reinitialised to represent a different vertex in the graph state. We consider a measurement schedule that encompasses the initialisation and measurement of qubits within the graph state.
Definition 1 (Measurement schedule).
A measurement schedule on a graph state is a sequence of initialising and measuring qubits, such that:
-
M1.
A qubit is initialised exactly once.
-
M2.
A qubit is measured only after all neighbouring qubits are initialised.
We say that a qubit is active if it has been initialised but not yet measured. We shall represent a measurement schedule as a sequence of subsets of vertices , with each subset corresponding to the qubits that are active at a given step. The cost of a measurement schedule is . The spatial cost of a graph state is the minimum cost over all possible measurement schedules on . We say that a measurement schedule is optimal if its cost is equal to the spatial cost. Note that there may be multiple optimal measurement schedules for a given graph state.
Since measurement-based quantum computing is capable of universal quantum computation, any quantum computation can be represented as a set of measurements on a particular graph state. Notably, the graph state enabling a specific quantum computation is not unique. The original concept of measurement-based quantum computation involved the use of a universal cluster state, represented by a graph state structured as a square lattice [1]. However, it is possible to optimise the graph state to minimise the number of qubits. This optimisation is achieved by designing a graph state that is specific to the computation.
There are several methods for designing these specific graph states. One approach involves initially performing all Pauli measurements, resulting in the formation of an alternative graph structure [3]. Note that since these are Pauli measurements, the resulting graph can be precomputed, thereby facilitating the application of a measurement schedule. Another approach for designing these specific graph states involves decomposing the computation in terms of magic-state teleportation [4].
We now define the concept of a path decomposition of a graph.
Definition 2 (Path decomposition).
A path decomposition of a graph is a sequence of subsets of , such that:
-
P1.
For each , there exists an such that .
-
P2.
For each , there exists an such that .
-
P3.
For all , if , then .
The width of a path decomposition is . The pathwidth of a graph is the minimum width over all possible path decompositions of [6].
III Optimal Scheduling
In this section, we establish an equivalence between measurement schedules and path decompositions. Consequently, we find that an optimal measurement schedule is determined by a path decomposition of minimal width. Our main result is as follows.
Theorem 1.
Let be a graph and let be a sequence of subsets of . The following statements are equivalent:
-
1.
is a measurement schedule on .
-
2.
is a path decomposition of .
Proof.
Let be a measurement schedule. Condition M1 implies that for each , there exists an such that , which is condition P1. Let be an edge and let and be the maximum indices such that and . These indices are guaranteed to exist by condition M1 and we assume without loss of generality that . By condition M2, it follows that , and so . Therefore, conditions M1 and M2 imply that for each , there exists an such that , which is condition P2. Conditions M1 and M2 imply that for all , if , then , which is condition P3. Hence, is a path decomposition.
Now, let be a path decomposition. Conditions P1 and P3 imply that a qubit is initialised exactly once, which is M1. Let be a vertex and let be the maximum index such that , which is guaranteed to exist by condition P1. By condition P2, the neighbourhood of is contained in . Therefore, conditions P1 and P2 imply that a qubit is measured only after all neighbouring qubits are initialised, which is condition M2. Hence, is a measurement schedule. This completes the proof. ∎
We note this result can be considered an application of the node searching game from algorithmic graph theory [7]. We have the immediate corollary.
Corollary 2.
Let be a graph. An optimal measurement schedule on is determined by a path decomposition of of minimal width, i.e., .
This result shows that the spatial cost of a measurement-based quantum computation scales with the pathwidth of the graph.
IV Computational Complexity
In this section, we explore the computational complexity of the spatial cost and optimal measurement schedules. We first show that approximating the spatial cost is NP-hard. Bodlaender et al. [8] showed that the problem of approximating the pathwidth up to an additive error is NP-hard. This gives rise to the following corollary.
Corollary 3.
Let be a graph. It is NP-hard to approximate up to an additive error of for .
Proof.
While approximating the spatial cost is NP-hard, we shall see there is an fixed-parameter tractable algorithm when parameterised by the spatial cost. This follows from results on the fixed-parameter tractability of the pathwidth [9, 10]. We obtain the following corollary.
Corollary 4.
Let be a graph. The spatial cost of and a corresponding measurement schedule can be computed in time .
Proof.
This result implies that an optimal measurement schedule can be efficiently computed for graphs with bounded spatial cost. However, as we shall see, there exists an efficient classical algorithm for simulating measurement-based quantum computation in such cases. Markov and Shi [11] showed that there is an efficient algorithm for simulating a measurement-based quantum computation for graphs with bounded treewidth. We apply their result to obtain the following corollary.
Corollary 5.
Let be a graph. A measurement-based quantum computation on the graph state can be simulated by a randomised algorithm in time .
V Implementations
We now explore the implications of our results for implementations of fault-tolerant quantum computing. Markov and Shi [11] showed that a high treewidth is a necessary condition for a quantum computation to be hard to simulate classically. It follows from Corollary 2 that the spatial cost is at least the treewidth plus one. This suggests that the most efficient use of a quantum computer may be realised with graph states in which these two values are equal. Examples of such graphs include the complete graph on vertices, for which , and the square lattice , for which .
Ceteris paribus, our results suggest that the complete graph represents an optimal structure for quantum computation in the complexity-theoretic sense. However, quantum devices are constrained by the limitations of their implementation. Therefore, identifying the optimal structure requires considering a specific implementation.
Scalable quantum information processing devices are likely to require a significant level of active error correction. By encoding logical information in many physical qubits with an error-correcting code, it is possible to correct errors through measurement [12, 13]. The most suitable codes are those that are compatible with the constraints of physical devices. The surface code is a prominent choice for such a code, due to its favourable threshold-to-resource ratio and low-weight stabilisers, which make it experimentally feasible [14, 15]. Although the surface code does not support fault-tolerant application of non-Clifford operations, these operations can be facilitated by preparing magic states in separate magic-state factories and subsequently teleporting them into the qubit register.
We consider an architecture where physical qubits are arranged in a regular two-dimensional lattice. These physical qubits are partitioned into logical surface code patches, quantum bus channels, and magic-state factories [16, 17]. In the context of measurement-based quantum computation, logical qubits encoded into surface code patches are assigned to qubits of the graph state. The entangling operations used to prepare the graph state are performed using lattice surgery [18, 19, 20]. Measurements involve initially applying logical single-qubit rotations on the surface code patches, followed by Pauli measurements. It is also possible to initialise a logical surface code patch in a magic state prior to entangling the qubit into the graph state.
Graph states with higher-degree vertices necessitate more entangling gates being applied to the same logical qubit. Additionally, non-nearest neighbour entangling gates require quantum bus channels, resulting in an additional space requirement. Note that graphs of degree higher than four also require quantum bus channels. Therefore, a low-degree graph that facilitates only nearest neighbour interactions, such as the square lattice, is a suitable choice for reducing spatial resources.

The implementation of the square lattice graph state with a specified measurement schedule allows for the assignment of physical qubits in a two-dimensional array to logical qubits. This approach eliminates the need for quantum bus channels and ensures that each logical qubit is adjacent to a magic-state factory (see Fig. 1), thereby optimising the ratio of active logical to physical qubits. Additionally, employing transversal injection methods [21, 22] for magic-state preparation may further reduce spatial resources compared to distillation methods [23].
VI Conclusion & Outlook
We have established an equivalence between the scheduling of graph states in measurement-based quantum computation and path decompositions of graphs. Consequently, we have shown that an optimal measurement schedule is given by a path decomposition of minimal width. Further, we have shown that approximating the spatial cost of a graph is NP-hard, while for graphs with bounded spatial cost, we established an efficient algorithm for computing an optimal measurement schedule. Finally, we discussed the implications of our results for implementations of fault-tolerant quantum computing.
It would be interesting to compare the spatial cost of implementing measurement-based quantum computing in the fault-tolerant setting discussed in Section V with an inbuilt error-correcting scheme such as in Refs. [24, 25]. It would also be interesting to explore the time efficiency of measurement-based quantum computation. While a square lattice may be less temporally efficient than a specifically designed graph state, this does not take into account the costs associated with transporting logical qubits and performing error correction.
Acknowledgements
We thank Michael Bremner, Simon Devitt, Salini Karuvade, Thinh Le, Luke Mathieson, and Jannis Ruh for helpful discussions. SJE was supported with funding from the Defense Advanced Research Projects Agency under the Quantum Benchmarking (QB) program under award no. HR00112230007, HR001121S0026, and HR001122C0074 contracts. JG and RLM were supported by the ARC Centre of Excellence for Quantum Computation and Communication Technology (CQC2T), project number CE170100012. The views, opinions and/or findings expressed are those of the authors and should not be interpreted as representing the official views or policies of the Department of Defense or the U.S. Government.
References
- Raussendorf and Briegel [2001] R. Raussendorf and H. J. Briegel, Physical Review Letters 86, 5188 (2001).
- Hein et al. [2006] M. Hein, W. Dür, J. Eisert, R. Raussendorf, M. Nest, and H.-J. Briegel, arXiv e-prints (2006), arXiv:quant-ph/0602096 .
- Sunami and Fukushima [2022] S. Sunami and M. Fukushima, arXiv e-prints (2022), arXiv:2212.11975 .
- Vijayan et al. [2022] M. K. Vijayan, A. Paler, J. Gavriel, C. R. Myers, P. P. Rohde, and S. J. Devitt, arXiv e-prints (2022), arXiv:2209.07345 .
- Raussendorf et al. [2003] R. Raussendorf, D. E. Browne, and H. J. Briegel, Physical Review A 68, 022312 (2003), arXiv:quant-ph/0301052 .
- Robertson and Seymour [1983] N. Robertson and P. D. Seymour, Journal of Combinatorial Theory, Series B 35, 39 (1983).
- Kirousis and Papadimitriou [1985] L. M. Kirousis and C. H. Papadimitriou, Discrete Mathematics 55, 181 (1985).
- Bodlaender et al. [1995] H. L. Bodlaender, J. R. Gilbert, H. Hafsteinsson, and T. Kloks, Journal of Algorithms 18, 238 (1995).
- Bodlaender [1993] H. L. Bodlaender, in Proceedings of the Twenty-Fifth Annual ACM Symposium on Theory of Computing (1993) pp. 226–234.
- Fürer [2016] M. Fürer, in International Workshop on Combinatorial Algorithms (Springer, 2016) pp. 385–396, arXiv:1606.06566 .
- Markov and Shi [2008] I. L. Markov and Y. Shi, SIAM Journal on Computing 38, 963 (2008), arXiv:quant-ph/0511069 .
- Terhal [2015] B. M. Terhal, Reviews of Modern Physics 87, 307 (2015), arXiv:1302.3428 .
- Campbell et al. [2017] E. T. Campbell, B. M. Terhal, and C. Vuillot, Nature 549, 172 (2017), arXiv:1612.07330 .
- Kitaev [2003] A. Y. Kitaev, Annals of Physics 303, 2 (2003), arXiv:quant-ph/9707021 .
- Fowler et al. [2012] A. G. Fowler, M. Mariantoni, J. M. Martinis, and A. N. Cleland, Physical Review A 86, 032324 (2012), arXiv:1208.0928 .
- DiVincenzo [2000] D. P. DiVincenzo, Fortschritte der Physik: Progress of Physics 48, 771 (2000), arXiv:quant-ph/0002077 .
- Litinski [2019a] D. Litinski, Quantum 3, 128 (2019a), arXiv:1808.02892 .
- Herr et al. [2017] D. Herr, F. Nori, and S. J. Devitt, New Journal of physics 19, 013034 (2017), arXiv:1608.05208 .
- Yoder and Kim [2017] T. J. Yoder and I. H. Kim, Quantum 1, 2 (2017), arXiv:1612.04795 .
- Erhard et al. [2021] A. Erhard, H. Poulsen Nautrup, M. Meth, L. Postler, R. Stricker, M. Stadler, V. Negnevitsky, M. Ringbauer, P. Schindler, H. J. Briegel, et al., Nature 589, 220 (2021), arXiv:2006.03071 .
- Gavriel et al. [2023] J. Gavriel, D. Herr, A. Shaw, M. J. Bremner, A. Paler, and S. J. Devitt, Physical Review Research 5, 033019 (2023), arXiv:2211.10046 .
- Gidney [2023] C. Gidney, arXiv e-prints (2023), arXiv:2302.12292 .
- Litinski [2019b] D. Litinski, Quantum 3, 205 (2019b), arXiv:1905.06903 .
- Raussendorf et al. [2006] R. Raussendorf, J. Harrington, and K. Goyal, Annals of Physics 321, 2242 (2006), arXiv:quant-ph/0510135 .
- Raussendorf and Harrington [2007] R. Raussendorf and J. Harrington, Physical Review Letters 98, 190504 (2007), arXiv:quant-ph/0610082 .