Relating Measurement Patterns to Circuits via Pauli Flow
Abstract
The one-way model of Measurement-Based Quantum Computing and the gate-based circuit model give two different presentations of how quantum computation can be performed. There are known methods for converting any gate-based quantum circuit into a one-way computation, whereas the reverse is only efficient given some constraints on the structure of the measurement pattern. Causal flow and generalised flow have already been shown as sufficient, with efficient algorithms for identifying these properties and performing the circuit extraction. Pauli flow is a weaker set of conditions that extends generalised flow to use the knowledge that some vertices are measured in a Pauli basis. In this paper, we show that Pauli flow can similarly be identified efficiently and that any measurement pattern whose underlying graph admits a Pauli flow can be efficiently transformed into a gate-based circuit without using ancilla qubits. We then use this relationship to derive simulation results for the effects of graph-theoretic rewrites in the ZX-calculus using a more circuit-like data structure we call the Pauli Dependency DAG.
1 Introduction
There are numerous approaches to quantum computation that differ in how problems are encoded and how the system evolves over time. The one-way model [32] is a variant of Measurement-Based Quantum Computing (MBQC) where the inputs are embedded into a general graph state, and the chosen computation is specified by a sequence of single-qubit measurements to apply, consuming the state and inducing a desired output state on the remaining qubits. In contrast, the gate-based model[30] applies unitary gates from some universal gateset to the input qubits directly. Gate-based circuits may use ancilla qubits and measurements, though they are only necessary for expanding to a larger state space for outputs and reading out final data.
There is a wide literature on rewriting both measurement patterns [17, 33, 18] and circuits [26, 19, 22, 35, 3, 12] to reduce the resource cost. Of particular interest here is the use of graph-theoretic rewrites of ZX-diagrams (in close correspondence with measurement patterns [17]) by Kissinger and van de Wetering [22], and of representations focussed on sequences of rotations about Pauli tensors such as by Zhang and Chen [35] herein referred to as Pauli Dependency DAGs (PDDAGs) as they capture the temporal dependencies between these rotations. Both works presented these as techniques for gate reduction with identical performance. The extraction method in this paper maps a measurement pattern/ZX-diagram directly into the form of a PDDAG, allowing us to formally demonstrate that each of the graph-theoretic rewrites can be simulated by moving Clifford-angled rotations through the PDDAG. This complements existing work on deriving equivalences between the PathSum formalism and the ZH calculus [5, 4, 24] and between different graphical calculi [29, 23] which have shown to provide useful insight on the semantics of operations for the more abstract calculi.
Previous work in this area has given algorithms for extracting circuits from measurement patterns that satisfy flow properties which describe how the errors from unwanted measurement outcomes can be corrected using the stabilizers of the graph state [8, 6]. The weakest such property that allows for interesting (i.e. non-Pauli) measurements is generalised flow (gflow) for which the single-plane form exactly describes the set of patterns that are uniformly, strongly, and stepwise deterministic [10]. Pauli flow [10] weakens the uniformity condition by labelling some of the measurements as being in a Pauli basis rather than at some arbitrary angle in a plane of the Bloch sphere. This allows for more interesting corrections that make use of Pauli projections to absorb some terms of the graph state stabilizers. This paper directly extends the works of Mhalla and Perdrix [28] and Backens et al. [6] for gflow to handle this wider class of measurement patterns.
This paper starts by laying out the key definitions and concepts behind measurement patterns and existing results on causal flow and gflow in Section 2. Section 3 will give a short overview of the Pauli Dependency DAG structure and how it can be used to rewrite circuits. We will then introduce the notion of Pauli flow and decompose the circuit extraction problem to generate a procedure that works for any measurement pattern with Pauli flow in Section 4. Then Section 5 will cover a number of methods of rewriting measurement patterns in turn and investigate their effects on the PDDAG extracted to show how they can be simulated.
2 Measurement-Based Quantum Computing
The one-way model follows the typical structure of MBQC of building some resource state which is then consumed by single-qubit measurements. The particular resource considered is a graph state, constructed by matching qubits (inputs and ancillas prepared in the state) with vertices in a graph, and entangling them (with a gate) according to the edges. Measurements are generally non-deterministic so, in order to have a deterministic effect overall, local gates can be applied to the remaining qubits to counteract the difference between the projectors for each outcome, giving the net effect of post-selecting the desired outcome. The introduction of such correction gates can be viewed as adapting the choice of basis for the future measurements.
Single qubit measurements are characterised by the bases they project into, which themselves can be described by a vector in the Bloch sphere. For MBQC, we conventionally restrict measurements into a plane of the Bloch sphere spanned by two of the Pauli bases. Such planar measurement bases are described by the following for :
(1) | ||||||
with the following special cases for Pauli measurements for ():
(2) | ||||||
For any measurement basis, the negative outcome at angle is equivalent to the positive outcome at angle . We usually treat the positive measurement outcome as the desired branch, i.e. the projector we want to apply to achieve our desired end state.
Formally, measurement patterns (i.e. MBQC programs) are defined as follows:
Definition 2.1 (Measurement pattern).
A measurement pattern consists of a collection of qubits with distinguished subsets of inputs and outputs, and a sequence of commands from:
-
•
Preparations , initialising qubit to ;
-
•
Entangling operators , applying a gate between distinct qubits ;
-
•
Destructive measurements , projecting qubit onto either with outcome or with outcome ;
-
•
Corrections or , conditionally applying an gate or a gate to qubit if the outcome of the measurement for qubit was .
A measurement pattern is runnable if additionally:
-
•
All non-input qubits are prepared exactly once;
-
•
A non-input qubit is not acted on by any other command before its preparation;
-
•
All non-output qubits are measured exactly once;
-
•
A non-output qubit is not acted on by any other command after its measurement;
-
•
No correction depends on an outcome not yet measured.
The intended branch of a measurement pattern (where all measurement outcomes are and hence no corrections are required) can be summarised by a tuple of a labelled open graph describing the entanglement and measurement planes, and an assignment of measurement angles .
Definition 2.2 (Labelled open graph).
A labelled open graph is a tuple where is an undirected graph, are (possibly overlapping) subsets of vertices for inputs and outputs respectively, and is a labelling function assigning a measurement plane or Pauli to each non-output vertex.
Remark 2.3.
To fix notation, we will use for non-input (prepared) vertices and for non-output (measured) vertices. denotes vertices being adjacent in . Neighbour sets are and odd neighbourhoods are , writing when the choice of graph is obvious. The symmetric difference of sets is written as . When drawing diagrams for measurement patterns, we will distinguish between measured and output vertices as filled and unfilled points respectively, and inputs are specified by boxes around the vertices. For linear maps, subscripts may be used to specify that a map acts on some given qubit(s) and is the identity on all others, such as or for some Pauli .
Each branch (combination of measurement outcomes) gives rise to a linear map from the inputs to the outputs based on the commands run and the projections observed. The overall channel from considering all branches is a completely-positive trace-preserving map whose Kraus maps are exactly the branch maps. When we have a strongly deterministic pattern (all branches are equal up to global phase), we just associate it with the linear map of the intended branch. Since runnable patterns can be standardised to perform all initialisations first, then all entangling gates, and finally alternate measurements and corrections, this linear map also has a standard representation.
Definition 2.4 (Linear map of a pattern).
The linear map associated with a measurement pattern is given by
(3) |
where entangles pairs of adjacent qubits in the graph with gates and initialises every non-input in the state.
Interpreting the graph state as gives rise to a stabilizer per initialised vertex :
(4) |
Since the linear map of a pattern is not just a simple graph state but a projected graph state, it is possible for some Pauli terms introduced by graph state stabilizers to be absorbed by the Pauli projections:
(5) |
These stabilizers and Pauli absorptions are practical for deriving possible means of correcting for unwanted measurement outcomes.
The intention behind different types of flow conditions is to capture the ability to propagate errors from unwanted measurement outcomes forward to the rest of the circuit in order to correct them, aiming for stepwise determinism (each measurement can be corrected independently). Causal flow is the simplest case where we suppose all vertices are measured in the basis and each error can be corrected by considering a single stabilizer of the graph state.
Definition 2.5 (Causal flow [14]).
Given a labelled open graph such that , a causal flow for is a tuple of a map and a strict partial order over such that for all :
-
•
-
•
-
•
The idea here is that from the graph stabilizer will eliminate the effect of the measurement error on qubit , meaning we can correct the error by applying and implicitly invoking the stabilizer. The partial order indicates a required order of the measurements, ensuring that none of the vertices required for correcting have been measured yet.
Generalised flow takes a similar approach, but allows us to take combinations of the basic stabilizers. If the stabilizer of a candidate would require a correction on some that has already been measured, there may exist some other stabilizer we can apply that cancels out the for us. Now, instead of the stabilizer being determined by a single vertex , we have a set giving up to phase. By relaxing these restrictions on the stabilizers used, we can also generate or on the measured vertex, allowing the correction of measurements in the and planes respectively.
Definition 2.6 (Generalised flow [10]).
Given a labelled open graph such that , a generalised flow (or gflow) for is a tuple of a map and a strict partial order over such that for all :
-
•
-
•
-
•
-
•
-
•
3 Pauli Dependency DAGs
The Pauli Dependency DAG is a data structure for representing the action of a pure quantum circuit that abstracts away gate set, Clifford gates, and gate commutations. This was notably covered in the work of Zhang and Chen [35] where it was used to identify possible pairs of gates which could be merged through some sequence of gate commutations and Clifford gate relations in order to reduce the number of gates in the circuit. Similar structures are also covered by Litinski [25] for compiling circuits for lattice surgery and by Gosset et al. [20] as an intermediate for synthesis of Clifford+ circuits.
The Clifford group is the group of linear maps that can be formed from , Hadamard, and with qubit initialisation in the state. These hold a special place in quantum theory as the maximal group of actions under which the Pauli group is closed. Their behaviour is conveniently captured by the stabilizer framework, allowing for canonical representations like the stabilizer tableau [34, 2]. They are often viewed as the “easy” gates in a circuit because of their simple algebra, efficient simulation [21, 2], and low resource cost in many error correction schemes [11].
Most common gate types can be expressed as (combinations of) Pauli exponentials ( for some ), which also benefit from elegant relations with stabilizers.
Lemma 3.1 (Product Rotation Lemma).
Let and be commuting operators such that for some linear map . Then .
Proof.
For any analytic function , we can expand its Taylor series in , then introduce and commute in each term to form the Taylor series for . ∎
Gate | Equivalent Pauli exponentials |
---|---|
Pauli exponentials where the coefficient is an integral multiple of correspond to Clifford gates. The action of Clifford gates on both Paulis and arbitrary Pauli exponentials can be summarised in a few equations.
Lemma 3.2 (Reorder Rules).
For any Pauli strings and angles , if and commute, then
(6) | ||||
(7) |
and otherwise (i.e. they anticommute)
(8) | ||||
(9) |
Proof.
Any operator satisfying and real permit the decomposition by grouping terms in the Taylor expansion. Each equation follows from decomposing one of the exponentials in this way. Whilst the right-hand side of Equation 9 appears to contain a real exponent, remember that is a real Pauli string when and anticommute. ∎
We can represent any circuit as a set of qubit initialisations followed by a sequence of Pauli exponentials by decomposing each gate in turn. The above rules can then be used to move any Clifford-angled exponentials to the start of the circuit, resulting in the product form where is a stabilizer process and each is not an integral multiple of . Previous presentations [25, 35] collected the Clifford gates at the end of the circuit rather than at the start. When considering unitary circuits, the choice of direction is arbitrary, but in the general case we may not always be able to transport qubit initialisations through the Pauli exponentials to the end.
can be expressed canonically by its stabilizer tableau. Specifically, since we could have an arbitrary number of inputs we need a variant mixing the extremes of the unitary case [2] and the usual state case [34] to capture both how Paulis over the inputs are transformed to Pauli strings over the outputs and additional generators for free stabilizers over the outputs. In examples, we will describe this by the stabilizers of the Choi operator of (which we shall refer to as an isometry tableau for clarity), from which it is simple to convert it to any binary matrix format of choice. Such tableaux can be identified and synthesised by embedding them into unitary tableaux by breaking down the isometry into an initialisation of qubits in the state followed by a unitary circuit which maps on the initialised qubits to each of the free output stabilizers and to any choice of operators that extend our generators to span the full Pauli group. Since the rows are just generators for the stabilizer group, we still have the notion of “free actions” given by reordering rows or multiplying two rows together.
For the rotation list, there is still some obvious redundancy in the product form resulting from commutations. Because anticommuting Pauli strings prevent commutation of their exponentials, any valid ordering of the rotations will preserve the relative order of rotations with anticommuting strings, inducing a temporal dependency between them. Taking the transitive closure of these dependencies gives a partial order between the exponentials which represents up to any number of commutations.
Definition 3.3 (Pauli Dependency DAG).
A Pauli Dependency DAG (PDDAG) for a circuit is a pair of an isometry tableau for a Clifford map and a directed acyclic graph for a partial order over terms (, ) such that the linear map of the circuit is given by 111The convention of using rather than is to give a closer semblance to the definitions of usual rotation gates like and their multi-qubit counterparts from literature on Pauli gadgets [12, 13] and to make the notation easier when we come to discuss extraction but is just a notational choice. up to global phase.
Since the full relation is rather large, we use the minimal representation/Hasse diagram which includes edges in the DAG for immediate successors (those pairs of exponentials whose strings anticommute and could appear adjacent to one another in some valid topological ordering).
Ins | Outs | Sign | ||
---|---|---|---|---|
Rewrite rules for PDDAGs change the structure but preserve the linear map. The most useful rewrite for circuit reduction is rotation merging: two nodes in the graph can be merged to give a single node with if and both and (i.e. there is some valid topological ordering of the graph which puts these rotations together).
The PDDAG definition permits Clifford-angled rotations, allowing the movement of Clifford rotations through the circuit via the 3.2 to be an explicit rewrite. Combining this with merging/splitting of phases and eliminating rotations with angle permits a more rigid canonical form where the range of angles for each rotation is reduced from to .
When the initial Clifford process includes some qubit initialisations, it will have some free stabilizers over its outputs that can be used to change the Pauli strings of rotations in the DAG using the 3.1. We can use the 3.2 to propagate the stabilizers beyond the initial rotations to find more places to perform this rewrite. Changing the Pauli strings of rotations in this way can affect how they commute/anticommute with their neighbours, modifying the dependency relation .
Extracting a circuit back out of an arbitrary PDDAG can be naively done by synthesising the stabilizer tableau [2, 27] and each of the Pauli exponentials in turn according to some topological ordering using some standard decompositions [7, 12] although this will typically add an extremely high amount of redundant Clifford gates. More efficient synthesis can be performed using techniques for synthesising pairs of rotations simultaneously [12] or by diagonalising sets of mutually commuting rotations [9, 13]. It is also possible that future architectures may find efficient ways to perform each Pauli rotation natively or employ lattice surgery where it is practical to just perform them directly [25].
Alternatively, similar to the action of phase teleportation in ZX-diagram rewriting [22], one can also retain the structure of a circuit and just use the PDDAG structure to spot where non-adjacent gates can be merged via the rotation merging rewrites. This is typically good when the original circuit already has a relatively low density of Clifford gates when it is unlikely that resynthesis will give as efficient a circuit structure.
4 Circuit Extraction
The goal of circuit extraction is to identify a sequence of gates that implements the same linear map as a given measurement pattern. Simply calculating the linear map and using standard matrix decomposition techniques is not sufficient since it will scale exponentially with the size of the pattern, making it impractical in the long-run. The method presented here will make use of a Pauli flow to determine the effect that each measurement angle has on the outputs. Doing so will yield the PDDAG representation directly, giving a rotation per planar measurement and a stabilizer process.
To motivate our method, recall the possible measurement bases from Section 2. Each planar basis projection can be constructed as a basic rotation of some Pauli basis:
(10) |
The key idea driving this method of circuit extraction is to apply the 3.1 to alter these rotations and move them to onto the output qubits, but this requires identifying an appropriate stabilizer of the graph state to use. In a similar way, flow conditions already describe stabilizers for propagating errors onto other qubits. Pauli flow is one such example which can handle both planar measurements and special cases for Pauli measurements . Similar to gflow, it gives a stabilizer that applies a Pauli to vertices in and a Pauli to vertices in . However, because Equation 5 means Pauli corrections have no observable effect if the qubit is measured in the same basis, it doesn’t matter if, for example, a vertex with has already been measured before .
(11) |
Definition 4.1 (Pauli flow [10, 31]).
Given a labelled open graph , a Pauli flow for is a tuple of a map and a strict partial order over such that for all :
where .
Definition 4.2 (Extraction string).
Let describe a measurement pattern with Pauli flow and some chosen measured vertex . A Pauli string over the outputs is a -extraction string () for if is a stabilizer of the linear map :
(12) |
A primary extraction string for is a -extraction string where
(13) |
Relating this definition to the goal of using the 3.1, the cases for match the rotations in Equation 10. The fact that the rest of the stabilizer is over the outputs means we are successfully removing it from the scope of the pattern. For the purposes of extraction, we can assume all measurement angles of future vertices have already been extracted, making them Pauli projections. The notion of a focussed flow [28, 6] then guarantees that all Pauli terms are absorbed, leaving something in the form of an extraction string.
Definition 4.3 (Focussed).
Given a labelled open graph , a set is focussed over if:
A focussed set for is focussed over . A Pauli flow is focussed if is focussed over for all .
Lemma 4.4.
Let be a labelled open graph with some measurement angles and a focussed Pauli flow . Then for any vertex , determines a -extraction string.
Proof.
Proof in Appendix (Lemma C.2). ∎
To make this extraction technique practical, we need to be able to find a focussed Pauli flow when one exists. This follows similarly to the corresponding results for causal flow and gflow.
Theorem 4.5.
(Generalisation of [28, Theorem 2], [6, Theorem 3.11]) There exists an algorithm that decides whether a given labelled open graph has a Pauli flow, and that outputs such a Pauli flow if it exists. Moreover, this output is maximally delayed, and the algorithm completes deterministically in time that grows polynomially with the number of vertices in the graph.
Proof.
Proof in Appendix (Theorem A.6). ∎
Lemma 4.6.
(Generalisation of [6, Proposition 3.14]) If a labelled open graph has a Pauli flow, then it has a maximally delayed, focussed Pauli flow.
Proof.
Proof in Appendix (Lemma B.5). ∎
We are now in the position where we can take any Pauli flow and extract all of the planar measurement angles from a measurement pattern. This just leaves a Clifford process which can be characterised completely by stabilizer theory. The rows of the isometry tableau describing how inputs are mapped are given by extraction strings of the inputs (taking input extensions of the measurement pattern as appropriate), and the remaining generators over the outputs are obtained from extraction strings.
Theorem 4.7.
(Generalisation of [6, Theorem 5.5]) Let describe a measurement pattern where has a Pauli flow. Then there is an algorithm that identifies an equivalent circuit requiring no ancillae which completes in time polynomial in the number of vertices in .
Proof.
Proof in Appendix (Theorem C.12). ∎
5 Relating Rewrites
The most common rewrites in PDDAGs are merging terms and moving Clifford rotations, most notably moving a Clifford phase between a node in the DAG and the initial Clifford process. The structure or redundancy being exploiting for optimisation is very clear and easy to understand. On the other hand, graph-theoretic rewrites used for measurement patterns or ZX-diagrams have less obvious interpretations in how they relate to optimisations in the gate-based model. To compare the two, we consider extracting a PDDAG from a measurement pattern before and after a rewrite to observe the changes in the order, Pauli strings, and phases of the rotations from each measurement or tableau row, and then find a sequence of simple PDDAG rewrites that produces the same effect. Detailed proofs and examples can be found in Appendix D.
Given the special treatment of Pauli measurements in our representation of measurement patterns, the simplest rewrite we can do is to relabel a vertex measured in a Pauli basis between a planar label and a Pauli label, without changing the graph or other vertices.
Theorem 5.1.
Let describe a measurement pattern with some vertex such that and . Relabelling to the equivalent Pauli label corresponds to pushing the rotation from to the start of the PDDAG and absorbing it into the initial stabilizer process.
Proof.
Proof in Appendix (Theorem D.4). ∎
Removing vertices from the measurement pattern typically involves reducing a vertex’s measurement to the basis, at which point it no longer needs to be entangled with the other qubits. We can consider doing this both when the vertex is labelled as a Pauli measurement and as a planar measurement in the or planes.
Theorem 5.2.
Let describe a measurement pattern with some vertex such that and . Eliminating from the graph corresponds to the following sequence of actions on the PDDAG:
-
1.
If has a planar ( or ) label, then its rotation is pulled from the rotation DAG into the stabilizer block;
-
2.
For each neighbour of that is an output, a rotation of is pulled from the stabilizer block through the entire rotation DAG to the end of the circuit;
-
3.
For each neighbour of with , a rotation of is pulled from the stabilizer block and merged with the existing rotation for .
Proof.
Proof in Appendix (Theorem D.9). ∎
Here, we have a slightly different effect for planar labels compared to the Pauli label, though this can be thought of as a combination of the previous rewriting rule and the basic case for Pauli elimination. The additional rotations generated are exactly the gates introduced on neighbouring qubits to preserve the semantics (Lemma D.6).
One of the more interesting rewrites on measurement patterns is performing local complementation about some vertex . This inverts the connectivity between each pair of vertices neighbouring . To preserve the semantics, we also update the labels and measurement angles of and its neighbours. Combining this with vertex elimination allows the elimination of vertices measured in the basis.
Theorem 5.3.
Performing local complementation about a vertex corresponds to the following sequence of actions on the PDDAG:
-
1.
For each output neighbouring , a rotation is pulled from the initial stabilizer block all the way to the end of the rotation DAG;
-
2.
If is an output, a rotation is pulled from the initial stabilizer block all the way to the end of the rotation DAG;
-
3.
For each vertex neighbouring with , and for itself if is planar, we pull a rotation from the initial stabilizer block to merge it into the existing rotation for or . We do this in -order over such vertices.
Proof.
Proof in Appendix (Theorem D.17). ∎
Another similar operation to local complementation is the act of pivoting a diagram about an edge, which can be used to prepare a Pauli measurement for elimination. This action can be decomposed into a sequence of local complementations about each end of the edge, so this can also be simulated by some sequence of Clifford transformations in the PDDAG.
In each of the above, we assume that a particular transformation is made to the focussed Pauli flow and focussed sets for the measurement pattern based on the rewrite chosen, as detailed in Appendix D. In truth, focussed Pauli flows need not be unique for a measurement pattern. We can view the map between focussed Pauli flows as a rewrite on the measurement pattern that changes the corrections applied after each measurement, keeping the labelled open graph and measurement angles the same. We can compare the differences to the focussed sets for the pattern to obtain our final correspondence theorem:
Theorem 5.4.
Let describe a measurement pattern with some focussed Pauli flow , a focussed set , and some vertex such that . Updating to corresponds to a free action on the isometry tableau if is an input, and applying the 3.1 to the rotation from with the stabilizer of if has a planar label.
Therefore, any two focussed Pauli flows for the same labelled open graph yield PDDAGs that are related by a sequence of applications of the 3.1 and free actions on the isometry tableau.
Proof.
Proof in Appendix (Theorem D.23). ∎
An interesting consequence of this result is the uniqueness of focussed Pauli flow for unitary patterns (up to weakening of the partial order), since there are no free stabilizers with which to apply the 3.1.
6 Conclusion
We have investigated the significance of Pauli flow in the extraction of gate-based reversible circuits from measurement patterns, demonstrating that it is sufficient. This weakens the requirements for circuit extraction from universal measurement patterns compared to previous results. The principal contributions are a polynomial-time algorithm for identifying a Pauli flow for a measurement pattern (if one exists) and using this to construct an equivalent circuit without using ancillas or measurements.
The subsequent investigation using this map formally demonstrated that the effects of common graph-theoretic rewrites on measurement patterns/ZX-diagrams can be simulated via movement of Clifford rotations in a Pauli Dependency DAG. We know that the reverse simulation must be possible from the completeness of the ZX-calculus.
There are a number of possible avenues for future development regarding the topics of this paper:
-
•
The simulation of rewrites demonstrates that ZX-calculus and PDDAGs can perform equivalent effects, but analysis of the computational complexities is needed to determine preferences for practical usage such as the actual data structure of choice for quantum circuit compilation. This will be heavily dependent on the choice of the graph structure used in each case and how this can capture the dependency relation in the PDDAG.
-
•
Given a PDDAG (or generic gate-based circuit), the work here provides some practical constraints on Pauli flows that any equivalent measurement pattern should admit. This could give rise to a reverse construction to find a minimal measurement pattern for a given PDDAG, allowing for explicit simulations for any PDDAG rewrite in measurement patterns.
-
•
The flexibility of the PDDAG structure could be extended by incorporating measurements, discards or decoherence, conditional gates, and more elaborate rewrites aiming for completeness for deciding circuit equivalence.
References
- [1]
- [2] Scott Aaronson & Daniel Gottesman (2004): Improved Simulation of Stabilizer Circuits. Physical Review A 70(5), p. 052328, 10.1103/PhysRevA.70.052328.
- [3] Matthew Amy (2019): Formal Methods in Quantum Circuit Design. Ph.D. thesis. Available at http://hdl.handle.net/10012/14480.
- [4] Matthew Amy (2019): Towards Large-scale Functional Verification of Universal Quantum Circuits. Electronic Proceedings in Theoretical Computer Science 287, pp. 1–21, 10.4204/EPTCS.287.1.
- [5] Miriam Backens & Aleks Kissinger (2019): ZH: A Complete Graphical Calculus for Quantum Computations Involving Classical Non-linearity. Electronic Proceedings in Theoretical Computer Science 287, pp. 23–42, 10.4204/EPTCS.287.2.
- [6] Miriam Backens, Hector Miller-Bakewell, Giovanni de Felice, Leo Lobski & John van de Wetering (2021): There and back again: A circuit extraction tale. Quantum 5, p. 421, 10.22331/q-2021-03-25-421.
- [7] Panagiotis Kl Barkoutsos, Jerome F. Gonthier, Igor Sokolov, Nikolaj Moll, Gian Salis, Andreas Fuhrer, Marc Ganzhorn, Daniel J. Egger, Matthias Troyer, Antonio Mezzacapo, Stefan Filipp & Ivano Tavernelli (2018): Quantum algorithms for electronic structure calculations: Particle-hole Hamiltonian and optimized wave-function expansions. Physical Review A, 10.1103/PhysRevA.98.022322.
- [8] Niel De Beaudrap (2010): Unitary-circuit semantics for measurement-based computations. International Journal of Quantum Information, 10.1142/S0219749910006113.
- [9] Ewout van den Berg & Kristan Temme (2020): Circuit optimization of Hamiltonian simulation by simultaneous diagonalization of Pauli clusters. Quantum 4, p. 322, 10.22331/q-2020-09-12-322.
- [10] Daniel E Browne, Elham Kashefi, Mehdi Mhalla & Simon Perdrix (2007): Generalized flow and determinism in measurement-based quantum computation. New Journal of Physics 9(8), pp. 250–250, 10.1088/1367-2630/9/8/250.
- [11] A. R. Calderbank, E. M. Rains, P. W. Shor & N. J.A. Sloane (1997): Quantum error correction and orthogonal geometry. Physical Review Letters, 10.1103/PhysRevLett.78.405.
- [12] Alexander Cowtan, Silas Dilkes, Ross Duncan, Will Simmons & Seyon Sivarajah (2020): Phase gadget synthesis for shallow circuits. In: Electronic Proceedings in Theoretical Computer Science, EPTCS, 10.4204/EPTCS.318.13.
- [13] Alexander Cowtan, Will Simmons & Ross Duncan (2020): A Generic Compilation Strategy for the Unitary Coupled Cluster Ansatz. Available at http://arxiv.org/abs/2007.10515.
- [14] Vincent Danos & Elham Kashefi (2006): Determinism in the one-way model. Physical Review A 74(5), 10.1103/PhysRevA.74.052310.
- [15] Niel De Beaudrap (2008): Finding flows in the one-way measurement model. Physical Review A - Atomic, Molecular, and Optical Physics 77(2), p. 022328, 10.1103/PhysRevA.77.022328.
- [16] Ross Duncan, Aleks Kissinger, Simon Perdrix & John Van De Wetering (2020): Graph-theoretic Simplification of Quantum Circuits with the ZX-calculus. Quantum 4, p. 279, 10.22331/q-2020-06-04-279.
- [17] Ross Duncan & Simon Perdrix (2010): Rewriting Measurement-Based Quantum Computations with Generalised Flow. In: Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), pp. 285–296, 10.1007/978-3-642-14162-1_24.
- [18] Maryam Eslamy, Mahboobeh Houshmand, Morteza Saheb Zamani & Mehdi Sedighi (2018): Optimization of One-Way Quantum Computation Measurement Patterns. International Journal of Theoretical Physics, 10.1007/s10773-018-3844-x.
- [19] Andrew Fagan & Ross Duncan (2019): Optimising Clifford Circuits with Quantomatic. Electronic Proceedings in Theoretical Computer Science 287, pp. 85–105, 10.4204/EPTCS.287.5.
- [20] David Gosset, Vadym Kliuchnikov, Michele Mosca & Vincent Russo (2014): An algorithm for the T-count. Quantum Information and Computation 14(15&16), pp. 1261–1276, 10.26421/QIC14.15-16-1.
- [21] Daniel Gottesman (1998): The Heisenberg Representation of Quantum Computers. Available at http://arxiv.org/abs/quant-ph/9807006.
- [22] Aleks Kissinger & John van de Wetering (2020): Reducing the number of non-Clifford gates in quantum circuits. Physical Review A 102(2), p. 022406, 10.1103/PhysRevA.102.022406.
- [23] Stach Kuijpers, John van de Wetering & Aleks Kissinger (2019): Graphical Fourier Theory and the Cost of Quantum Addition. Available at http://arxiv.org/abs/1904.07551.
- [24] Louis Lemonnier, John van de Wetering & Aleks Kissinger (2020): Hypergraph simplification: Linking the path-sum approach to the ZH-calculus. Available at http://arxiv.org/abs/2003.13564.
- [25] Daniel Litinski (2019): A Game of Surface Codes: Large-Scale Quantum Computing with Lattice Surgery. Technical Report, 10.22331/q-2019-03-05-128.
- [26] Dmitri Maslov (2017): Basic circuit compilation techniques for an ion-trap quantum machine. Technical Report, 10.1088/1367-2630/aa5e47.
- [27] Dmitri Maslov & Martin Roetteler: Shorter stabilizer circuits via Bruhat decomposition and quantum circuit transformations. Technical Report, 10.1109/TIT.2018.2825602.
- [28] Mehdi Mhalla & Simon Perdrix (2008): Finding Optimal Flows Efficiently. In: Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 5125 LNCS, Springer, Berlin, Heidelberg, pp. 857–868, 10.1007/978-3-540-70575-8_70.
- [29] Kang Feng Ng & Quanlong Wang (2017): A universal completion of the ZX-calculus. Available at http://arxiv.org/abs/1706.09877.
- [30] Michael A. Nielsen & Isaac L. Chuang (2010): Quantum Computation and Quantum Information. 10.1017/cbo9780511976667.
- [31] Simon Perdrix & Luc Sanselme (2017): Determinism and Computational Power of Real Measurement-Based Quantum Computation. In: Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 10472 LNCS, Springer Verlag, pp. 395–408, 10.1007/978-3-662-55751-8_31.
- [32] Robert Raussendorf & Hans J. Briegel (2001): A one-way quantum computer. Physical Review Letters, 10.1103/PhysRevLett.86.5188.
- [33] Raphael Dias da Silva, Einar Pius & Elham Kashefi (2013): Global Quantum Circuit Optimization. Available at http://arxiv.org/abs/1301.0351.
- [34] Maarten Van den Nest, Jeroen Dehaene & Bart De Moor (2004): Graphical description of the action of local Clifford transformations on graph states. Physical Review A - Atomic, Molecular, and Optical Physics, 10.1103/PhysRevA.69.022316.
- [35] Fang Zhang & Jianxin Chen (2019): Optimizing T gates in Clifford+T circuit as rotations around Paulis. Available at http://arxiv.org/abs/1903.12456.
Appendix A An Algorithm for Identifying Pauli Flow
Here we will build up to an algorithm for identifying a Pauli flow from a graph, which follows the key principle of previous algorithms for causal flow and gflow [28, 6] of delaying measurements as long as possible in order to have as many vertices available for corrections as possible at each step. This is achieved by working backwards from the outputs and calculating the sets of vertices of a given “correction depth”.
Definition A.1.
For a given labelled open graph and a given Pauli flow , for each we define the vertices at depth under by
(14) |
the cumulative vertices up to depth by
(15) |
and the vertices in each plane correctable at depth by
(19) | ||||
(23) | ||||
(27) |
where .
The sets , , capture the vertices at correction depth for which the component of the correcting stabilizer is , , or respectively. These definitions are intended to mirror the Pauli flow conditions, with the restrictions on matching - and the other conditions capturing - using for and to represent the future vertices under .
Definition A.2 (Delayed).
Given two Pauli flows and for the same labelled open graph, is more delayed than if for all ,
(28) |
and there exists a for which this inequality is strict. A Pauli flow is maximally delayed if there exists no Pauli flow over the same labelled open graph that is more delayed.
Remark A.3.
If a labelled open graph admits a Pauli flow, then there must be a maximally delayed Pauli flow since the delayed relation is a strict partial order and there are only finitely many possible Pauli flows (the graph is finite, so there are only finite possible choices of maps and orders ). Any sequence of increasingly delayed flows must be finite, so we can always reach a maximal point. We will freely assume this without statement in subsequent proofs.
For causal flow and gflow, the set for a maximally delayed flow is exactly the set of outputs [28, 6] since every measured vertex needs corrections. However, since Pauli flow allows some corrections to be effectively applied in the past of a vertex, we may now have some measured vertices in . An example is given in Figure 2.
Lemma A.4.
Proof.
: Since the output case is trivial, suppose is a non-output. We start by showing that . from the definition of Pauli flow, since . By definition , so we just require which is given by condition . It remains to show that is a suitable choice for for at least one of the three sets.
Every vertex satisfies (), so condition becomes . Condition gives . We can rewrite these to the appropriate form from the definition of the sets based on whether or not is in and . As the cases are mutually exclusive, we only place into a single set with conditions - restricting as needed.
: We will assume that there is some but and aim for a contradiction by generating a new Pauli flow that is more delayed than . If , then we can simply construct the new Pauli flow . This is still a Pauli flow since the conditions only concern the measured vertices . This is also more delayed since and no vertex is made deeper.
For the remaining case, we shall suppose that instead. Let be a witness for . We define and be the map and partial order:
(29) |
(30) |
For , each of the Pauli flow conditions is trivially preserved, but we need to show they hold for .
This satisfies condition from . For each of the options, we get , so we can show . Similarly, we get in each of the options, so condition also follows.
The membership of in and is decided by which of the it belongs to, which also restricts to the compatible planes according to conditions -.
By assumption, for some . By construction, the depth of every vertex under is no larger than its depth under and . This means and , so is a more delayed Pauli flow than . ∎
Lemma A.5.
Proof.
For any given , the proof of this follows the same strategy as Lemma A.4. When constructing the more delayed flow given a counterexample , we need to adapt the definition of to . Vertices in are not covered by the constraints in the definitions of , so we add them all to the future of to make sure we satisfy conditions -. ∎
These characterisations of the sets give us an iterative method of identifying them since we can simply search for possible witness sets for each vertex.
Theorem A.6.
(Restatement of Theorem 4.5) There exists an algorithm that decides whether a given labelled open graph has a Pauli flow, and that outputs such a Pauli flow if it exists. Moreover, this output is maximally delayed, and the algorithm completes deterministically in time that grows polynomially with the number of vertices in the graph.
Proof.
The function in Algorithm 1 takes sets and of vertices, an adjacency matrix over and a basis labelling function and returns “” with a Pauli flow if one exists and “” otherwise.
To see this, we consider the auxilliary method which aims to identify , given sets of possible correctors and () of solved vertices, and then proceed recursively over the remainder of the graph for higher depths. For the case of , has already been handled by the setup in so it is sufficient to just find due to Lemma A.4. For , so we are just finding in accordance with Lemma A.5. In each recursive call, it examines each candidate vertex in turn and looks for a witness set for membership into either , , or , from which we can identify a valid correction set. The global variables and map vertices to their correction sets and depths from the output (this defines the order over vertices with ).
This algorithm is guaranteed to terminate because is finite and strictly grows with each call for , so will eventually be an empty set.
The resulting Pauli flow must be maximally delayed because we are constructing the largest set possible at each value of . If there were a more delayed Pauli flow , there must be some minimal for which is non-empty. However, if a vertex belonged in this set then a suitable correction set for must exist. Algorithm 1 would find this when testing and place it in .
For a given vertex , finding the witness set in each of the three possible search cases can be achieved by solving the linear equation system in defined by:
(33) | ||||
(34) |
where is the set of possible elements of the witness set , is the set of vertices in the past/present which should remain corrected afer measuring and correcting , is the set of vertices we have to consider for condition , denotes which of the three cases we are considering, and is the column vector with in the position of if and a otherwise.
Taking as an example, the top block of equations encodes and the lower block encodes , so the solutions to these equations are exactly the possible witness sets . Such solutions can be identified by Gaussian elimination and back substitution in time.
This part of the algorithm is hit at most times per call to PauliFlowAux, which may be called at most times, hence the overall complexity of this algorithm is . ∎
The complexity of this algorithm is higher than the for the equivalent method for identifying gflow [6] 222It should be noted that Eslamy et al. provide an even more efficient algorithm for finding gflow in time [18]. It may be possible to generalise this to Pauli flow in search of a more efficient routine.. This is because we can no longer do a single gaussian elimination per depth round because the matrix and the range of the witness set are both dependent on the particular vertex under consideration.
Appendix B Focussed Sets and Pauli Flows
Even though the Pauli flow generated by Algorithm 1 is guaranteed to be maximally delayed, the correction sets may not be unique as the back substitution step may not have a single solution. In this section, we will investigate some transformations on Pauli flows resulting from this freedom to show that we can always reach a focussed Pauli flow.
Lemma B.1.
Given a Pauli flow for a labelled open graph with two vertices such that , then is a Pauli flow where and . Moreover, if is maximally delayed, then so is .
Proof.
The Pauli flow conditions hold trivially for any vertex in since the correction sets have not changed, so it is sufficient to show they are preserved for . We should first observe that .
: For any with , we also must have since . Hence by , and the same for . Therefore, we find that as required.
The maximally delayed property of a Pauli flow only concerns the partial order between the vertices, so since and both use the property is trivially preserved. ∎
This gives us a mechanism to generate new Pauli flows by adding correction sets together. We now show that this can help us to make progress towards satisfying the focussed property.
Lemma B.2.
For any labelled open graph , if sets are focussed over , then so is .
Proof.
Lemma B.3.
For any labelled open graph , if sets are not focussed over (), then is focussed over .
Proof.
We consider each case for and how the focussed conditions could fail for and :
Combining these two lemmas, we can find combinations of correction sets that fix unfocussed vertices whilst preserving those we have already focussed.
Lemma B.4.
(Generalisation of [6, Lemma 3.13]) Let be a labelled open graph with a Pauli flow and some vertex . Then there exists such that:
-
1.
;
-
2.
is focussed over ;
-
3.
is a Pauli flow for .
Proof.
Let be some indexing of the vertices that respects the order (). We define a sequence of functions as:
(35) | ||||
(36) |
1 is satisfied for all by construction, and 3 is also satisfied for all by Lemma B.1. To work towards 2, we proceed inductively with hypothesis . The case holds vacuously.
Suppose we have . If , then and is an immediate consequence of . If is focussed over , then , so follows from this assumption and . If, on the other hand, is not focussed over , we have . From conditions -, is also not focussed over , so by Lemma B.3 we have is focussed over . For any of the remaining (where ), says that is focussed over . Since respects the order , we also have , and hence conditions - imply that is focussed over . We combine these with Lemma B.2 to deduce that is also focussed over .
At the end of this chain, we have where is focussed over . ∎
Lemma B.5.
(Restatement of Lemma 4.6) If a labelled open graph has a Pauli flow, then it has a maximally delayed, focussed Pauli flow.
Proof.
For general measurement patterns, even focussed Pauli flows may not be unique. However, given multiple focussed Pauli flows, the differences between their correction sets are given by the focussed sets of the graph.
Lemma B.6.
Let be a labelled open graph with a focussed Pauli flow and a focussed set . Let be a vertex such that . Then is a focussed Pauli flow, where:
(37) |
and is the transitive closure of .
Proof.
Firstly, is still a strict partial order. Transitivity is immediate from the definition as a transitive closure. For antisymmetry (and similarly for strictness), suppose on the contrary that we have some and (or directly ). This gives a transitive loop where each step is either in or . Since is a strict partial order, we cannot have such a loop where every step is in , so at least one step must be some such . We can freely eliminate inner loops around , so we can assume wlog that only appears once in the loop. This means the rest of the loop is only from , so by transitivity. However, we assumed that since and , giving us the contradiction we need.
Conditions - are preserved from the extension to covering planar labels and the focussed property covering Pauli labels.
For conditions -, the correction amounts to saying that is not focussed over . If this were not the case, then would be focussed over by Lemma B.2, contradicting the corresponding Pauli flow condition for .
Finally, is focussed over using Lemma B.2, so is focussed. ∎
Lemma B.7.
Let be a labelled open graph with two focussed Pauli flows and . Then for any vertex , is a focussed set.
Proof.
Each of and are focussed over , so their combination must also be by Lemma B.2. For each case of , the corresponding condition from - is then enough to show that is also focussed over . ∎
An important consequence of this result is that in order to fully identify the space of all focussed Pauli flows for a given labelled open graph, it is sufficient to find one using Algorithm 1 that we focus with Lemma 4.6, and find all of the focussed sets. The following proofs show that the focussed sets form a group, allowing us to only need some generating set, and giving an algorithm for finding such generators.
Lemma B.8.
The focussed sets of a labelled open graph form a group under .
Proof.
Closure is a direct consequence of Lemma B.2 with . We then extend this to a group with identity and each focussed set is self-inverse. ∎
Lemma B.9.
Any labelled open graph with a focussed Pauli flow has distinct focussed sets.
Proof.
We can find the number of subsets of that are focussed over some inductively over the size of using the following induction hypothesis:
(38) |
For , we only have to consider . Any subset of satisfies the required properties, so there are many such sets, so holds.
Suppose holds for some . Suppose is of size and choose any vertex . Let , so . implies there are subsets of that are focussed over . The subsets focussed over are those that are focussed over both and .
Let be some focussed Pauli flow for , so is focussed over , and hence for . Lemma B.2 implies the sets focussed over are closed under symmetric difference with . However, Lemma B.3 implies is focussed over if and only if is not because corrects the measurement at . This means taking the symmetric difference with defines a bijection between the sets that are focussed for and those that are focussed for but not for . Since these are disjoint and partition the that are focussed over , we must have that are focussed over , giving .
Focussed sets are those that are focussed over the entirety of , so tells us that there are focussed sets. ∎
Lemma B.10.
Given a labelled open graph with focussed Pauli flow, there exists an algorithm that identifies independent generators for the group of focussed sets of . Furthermore, this algorithm completes in time polynomial in the number of vertices in .
Proof.
Similar to Theorem 4.5, we can encode the conditions for focussed sets into a linear equation system in which can be solved by Gaussian elimination and back substitution to obtain a single focussed set.
(41) | ||||
(44) | ||||
(45) | ||||
(46) | ||||
(47) |
In the above, we let stand for the adjacency matrix of its graph. We define to be the set of vertices that could be included in a focussed set and the set of vertices that could be in the odd neighbourhood. Solutions satisfy since only ranges over . The top block of the system encodes since multiplying by in gives the odd neighbourhood, and similarly the bottom block encodes .
We need to add additional conventions to make sure that the focussed sets we obtain are non-empty and independent. Since this system is underconstrained (when there exist non-empty focussed sets), there will always be some freedom of choice during the back substitution step. Since every focussed set must be a solution, these free substitutions must generate the full set. Hence we can obtain independent, non-empty focussed sets by taking a single free substitution for each focussed set, iterating through each free substitution in turn.
Since both and are at most , the Gaussian elimination takes time. Each back substitution takes time, which we must repeat times giving again. ∎
It should be noted that similar conditions can be incorporated into Algorithm 1 to directly obtain focussed Pauli flows by imposing further restrictions on the vertices that can be included in the correction sets and adding extra equations to restrict the odd neighbourhood.
A final comment we will make about the focussed conditions is that it removes the need for any ordering relation between Pauli vertices. When the measurement pattern uses only Pauli measurements, all of them can be measured simultaneously, giving a single round of corrections on the outputs. When there are additional planar measurements, we can do all Pauli measurements in a single layer before considering any of the planar measurements.
Lemma B.11.
If a labelled open graph has a Pauli flow, then there exists a Pauli flow which satisfies .
Proof.
Given a Pauli flow , we can assume wlog that it is focussed from Lemma 4.6. Let . By construction, this satisfies . To show that is a valid Pauli flow, we just need to show that - are unaffected which all follow from the focussed conditions. ∎
Appendix C Proofs for Circuit Extraction
This section will explore how to identify extraction strings and their properties, building up to a proof of Theorem 4.7 for circuit extraction. As dicussed in Section 4, the key principle is to extract planar measurement angles as rotations over the outputs, to leave behind a stabilizer process. We start by building up an explicit construction for extraction strings from a focussed Pauli flow.
Lemma C.1.
Given a Pauli flow for a labelled open graph , for any vertex the size of is even.
Proof.
Let and define the subgraph . For any vertex , if and only if has odd degree in . Since the sum of the vertex degrees must equal times the number of edges in , there must be an even number of vertices with odd degree. ∎
Lemma C.2.
(Restatement of Lemma 4.4) Let be a labelled open graph with some measurement angles and a focussed Pauli flow . Then for any vertex , determines a -extraction string.
Proof.
Consider an arbitrary measured vertex .
Since each correction set is a subset of the non-input vertices, we can combine the graph state stabilizers. We may reorder the and terms with the possible introduction of a .
(48) |
where is the number of edges in the subgraph of , since for each edge here we have to reorder the and terms on exactly one of the two vertices.
There are an even number of vertices with both an and a (see Lemma C.1), so we can apply on all such instances, again introducing a possible term.
(49) |
where .
Since is a Pauli flow, every vertex in or is either a Pauli measurement or greater than in (from conditions and ). To fit the form from Equation 12, we consider adding the corresponding projections. Since is focussed, each vertex (besides outputs and ) in is projected into an basis eigenvector, and similarly into and into . This means we can absorb these Pauli operators into the projections, again with the possible introduction of a .
(50) |
where .
This is now a Pauli operator with on and remainder over only the outputs, making it a valid primary extraction string. ∎
Recall that the 3.1 can use these extraction strings to remove the measurement angles. We can summarise Equation 10 by
(51) | ||||
(52) |
where dictates the direction of rotation about the Bloch sphere. This means the rotation we extract over the outputs is .
After extracting all planar measurement angles, we are left with the following stabilizer process:
(53) |
We can characterise this by finding its isometry tableau. Recall from Section 3 that the isometry tableau generalises variants of the stabilizer tableau representation from previous literature for both stabilizer states [34], where the rows represent generators for the stabilizer group, and unitaries [2], where the rows represent the actions of the unitary on and for each input - that is, the operator such that . It is enough for us to find such and actions for each input along with generators for the free stabilizers over the outputs.
Since on an input will commute through the gates, we can get the corresponding stablizer row from the primary extraction string assuming for this input. This is guaranteed since the correction set cannot contain any inputs, including itself.
We can use the same trick to obtain the rows from primary extraction strings. In this case, we find an altered pattern such that . The Hadamard maps to a , meaning we can use the extraction string with respect to . One way to achieve this is by input extension.
Definition C.3 (Input Extension).
Given an open graph , input extension about adds a new vertex that is only connected to and replaces in the input set. Formally, , , .
Lemma C.4.
Let describe a measurement pattern with some chosen input . Taking an input extension about gives an equivalent measurement pattern assuming , , and a Hamadard gate is applied to input before the start of the pattern.
Proof.
It is enough to verify the following equation:
(54) |
∎
In order to actually use this, we need to show that Pauli flows are preserved by input extensions.
Lemma C.5.
(Generalisation of [6, Lemma 3.8]) Let and be labelled open graphs related by an input extension on vertex (generating ). If has a Pauli flow, then so does .
Proof.
Suppose has a Pauli flow . Let and be the transitive closure of .
For any , and since its only neighbour is an input in which could not appear in any correction sets from . This allows us to inherit all of the Pauli flow properties from for as they have remained unchanged.
The remaining stabilizer generators can be obtained from the focussed sets of the measurement pattern.
Lemma C.6.
Given a measurement pattern where the labelled open graph has a focussed set , then determines a stabilizer of the linear map:
(55) |
Proof.
This follows similarly to Lemma 4.4. After applying the measurement projections, the only Pauli terms that are not absorbed into the projections are over the output qubits. ∎
Lemma B.9 implies that we can get generators for the group of focussed sets, and we are looking for generators for the free stabilizers. For this to work, we need the map from Lemma C.6 to be a bijection (i.e. the generators for the focussed sets don’t degenerate when mapped into stabilizers). We go one step further by showing that it also preserves the group action as a result of Lemmas C.7 and C.8.
Lemma C.7.
Let be a labelled open graph. For any set of vertices , denote the output substring of the stabilizer as . Then for any we have .
Proof.
This follows from the anticommutativity of and and .
(56) |
∎
Lemma C.8.
For any non-zero linear map with stabilizers and , if and share the same Pauli string then .
Proof.
If and share the same Pauli string, they can only differ by phase, so . Since stabilizers form a group, is also a stabilizer, i.e. . implies is a zero map, so we must have . ∎
Because the groups of focussed sets and free stabilizers have the same finite cardinality, injectivity is enough to show that we have an isomorphism. We can prove this by showing that only the empty set gets mapped to the identity.
Lemma C.9.
Let describe a measurement pattern with a focussed Pauli flow . Then for any vertices the primary extraction strings satisfy
(57) |
where indicates whether is used in the correction of . Similarly, given a focussed set , its stabilizer satisfies
(58) |
where indicates whether is used in the generation of the stabilizer.
Proof.
Since and are tensor products of Pauli matrices, they must either commute or anticommute. Consider the linear map given by:
(59) |
This may not be in the exact form needed to introduce extraction strings for and if they use each other for corrections. Let be the Pauli induced on when correcting .
(60) |
We can still follow the construction in the proof of Lemma 4.4 to deduce that and are stabilizers of where
(61) |
Comparing conditions - and the focussed conditions, we see that, for any vertex , is orthogonal to the measurement plane/Pauli of and hence anticommutes with any . Equationally, .
The stabilizer group of is abelian, so we have
(62) |
i.e. .
The proof for focussed sets is virtually the same, though we only need care about anticommuting Paulis on . ∎
Lemma C.10.
Given a labelled open graph with a focussed Pauli flow and any focussed set , then .
Proof.
is trivial. For the other direction, suppose for a contradiction that we have a non-empty for which , so we have some and the corresponding stabilizer is the identity. However, Lemma C.9 implies that the stabilizer must anticommute with the primary extraction string , contradicting the identity assumption. ∎
Theorem C.11.
Let describe a measurement pattern with a focussed Pauli flow. Then the construction from Lemma C.6 gives an isomorphism between the groups of focussed sets and the stabilizers of the linear map for after removing all planar measurement angles.
Proof.
The group action is preserved due to Lemmas C.7 and C.8. By Lemma C.10, the map is injective (if we had two distinct focussed sets with the same stabilizer, combining them with would give a non-empty focussed set that maps to the identity stabilizer) and subsequently bijective by cardinality from Lemma B.9. ∎
This isomorphism guarantees that the focussed sets identified by Lemma B.10 actually give a generating set for the stabilizer group, giving a valid isometry tableau. All that remains is to put everything together into a formal procedure.
Theorem C.12.
(Restatement of Theorem 4.7) Let describe a measurement pattern where has a Pauli flow. Then there is an algorithm that identifies an equivalent circuit requiring no ancillae which completes in time polynomial in the number of vertices in .
Proof.
Using Theorem 4.5 and Lemma 4.6, we can identify a maximally delayed, focussed Pauli flow . Let be an indexing over the measured qubits such that , i.e. iterates from outputs to inputs respecting . We will define a sequence of patterns and circuits such that (where denotes the interpretation as a linear function). We start with and is the empty (identity) circuit.
For any , the update from to is just setting the angle of to if it is planar.
(63) |
Defining the update from to requires us to find a Pauli string over the outputs such that:
(64) |
When the projections on each side of Equation 64 are identical, meaning it suffices to let be the identity and set .
When , the projectors differ by a according to Equation 10. Equation 64 then holds by using the 3.1 with a primary extraction string for , which we can obtain by Lemma 4.4. We decompose this rotation into basic gates (for example, by ladder constructions [7, 12]) and add them to the start of so that .
At the end of this sequence, we have the pattern where every measurement is in a Pauli basis and the associated circuit . This means the corresponding isometry for this pattern is a stabilizer process.
To characterise this process, it is sufficient to identify its isometry tableau. For each input, we can find the row from the primary extraction string of the input vertex, and by taking an input extension with Lemma C.5 we can similarly get the row. Each of our generators for the free stabilizers is given by Lemma B.10.
We can efficiently synthesise the isometry tableau and qubit preparations into a circuit . The final circuit is the combination of followed by which implements the same operator as .
To examine the complexity, we suppose an explicit Pauli flow is not given up front. Theorem 4.5 says that we can identify it in time. We can extend the flow to consider all of the input extensions simultaneously using Lemma C.5 in time (ignoring the update to since it won’t affect the outcome of the extraction procedure). The construction of Lemma 4.6 focusses this Pauli flow in time (we apply at most updates, each of which takes time to identify and apply). Adding the extra focussed sets also takes time by Lemma B.10. Synthesising this into a circuit using the naive ladder construction takes time for the rotations from non-Pauli measurements, and to synthesise a stabilizer tableau using Aaronson and Gottesman’s method [2] (mapping an isometry tableau into that form just requires identifying the additional generators to fill the Pauli group, which can be done by Gaussian elimination in time). The overall complexity is therefore dominated by the Pauli flow identification. ∎
Example C.13.
Suppose we start with the following measurement pattern and focussed Pauli flow.
Because we have two outputs and only one input, there is also an extra focussed set . We start by constructing the primary extraction strings for each vertex from Lemma 4.4. Let be such that . Recall that we get one phase flip per edge between adjacent vertices in the correction/focussed set (), one phase flip for every two s that appear in the graph state stabilizer (), and one for each term in the graph state stabilizer that is absorbed from a Pauli measurement with angle ().
Edges | s | Paulis | ||||
---|---|---|---|---|---|---|
We start by extracting the planar angles as rotations in -order. We must start with , extracing it as over the outputs.
Having extracted this, the projection on becomes the positive basis vector so it can absorb the corresponding Paulis on the graph state stabilizer from and . Either or can be extracted next, giving and respectively. Note that the phase of the rotation from got an extra since ().
The final rotation to be extracted is from . We don’t extract any rotation from since the measurement is already in a Pauli basis, and hence we can treat it as part of the leftover stabilizer process.
We can get the isometry tableau for this from the primary extraction strings. Having both the input and its only neighbour labelled with means we don’t necessarily have to perform input extensions to obtain the rows of the tableau during extraction, since they will function identically to and here because can already be viewed as an input extension of with input . This process maps on the input to () over the outputs and on the input to (). We have an extra row from the free stabilizer obtained from .
The structure we now have exactly maps to the following PDDAG:
Ins | Outs | Sign | |
---|---|---|---|
Note that producing this PDDAG just amounted to reading off the focussed Pauli flow, using the correction sets to produce the strings and the order for the dependency relation between the rotations.
For the rotations from and , we put the phase with the strings rather than the angle. Whilst nodes and represent the same rotations, it is useful to keep the convention of writing the extracted rotation as to simplify the simulations in Section 5.
We can then synthesise a circuit from the PDDAG component-wise. We start with the isometry tableau, for which an example circuit is given below.
For the rotations, the and are simply gates. The other two rotations commute, and so can be efficiently diagonalised simultaneously.
Note that the angles of rotations acquire an extra phase flip, since we defined to map to , but basic rotation gates are defined as .
Putting it all together, we obtain the following circuit:
Appendix D Proofs for Rewrite Correspondences
Throughout this section, we will follow a general pattern when deriving the correspondences between rewrites of measurement patterns and PDDAGs:
-
1.
Prove that the existence of Pauli flows is preserved by giving explicit updates to the focussed Pauli flows (and focussed sets);
-
2.
Give the explicit updates to the primary extraction strings (and free stabilizers) for each rewrite;
-
3.
Justify that the same updates are performed by the PDDAG rewrite.
We will also add additional proofs that semantics are preserved by rewriting the measurement pattern as required. When deriving equalities in the following proofs, we will freely use to ignore global constants that are later removed symmetrically using the same substitution.
D.1 Relabelling Pauli Measurements
Lemma D.1.
Let describe a measurement pattern and be a vertex with and . Then there exists an equivalent pattern from relabelling as a Pauli measurement, where the new labels and angles are given by
(65) |
and for any .
Proof.
The following equations describe how the Pauli measurements are embedded into the planes:
(66) |
The equivalent Pauli measurement label and angle are determined uniquely by these embeddings. ∎
Lemma D.2.
Let and describe measurement patterns related by relabelling some planar as a Pauli according to Lemma D.1. If has a focussed Pauli flow , then is a focussed Pauli flow for where for any
(67) |
Furthermore, focussed sets can be updated as
(68) |
Proof.
Suppose that is a focussed Pauli flow for . Since , any such that must satisfy by conditions and . is then also a Pauli flow for using Lemma B.1. Any Pauli flow for is also a Pauli flow for , since - are strictly weakened and - for follow from - for .
To show that is focussed for , consider and vertex . As and only differ on , when it remains focussed over in . This is enough when . If , then it is trivially focussed over in . Finally, in each of the cases of Equation 65 where , the compatible corrections in the focussed conditions do not change, so it remains focussed over in .
Suppose instead that , , and , so . Both and remain focussed over in , and Lemma B.2 gives the same for . For each case of , what was a compatible correction for is now incompatible with , so is not focussed over in . Additionally, conditions and mean that is also not focussed over . However, we can then use Lemma B.3 to conclude that their combination () is focussed.
The proof of updating a focussed set to follows similarly. ∎
Lemma D.3.
Let and be the measurement patterns and respective focussed Pauli flows and from Lemma D.2 formed by changing the label of some from a planar measurement to a Pauli measurement. Then the new primary extraction string for each vertex is given by
(69) |
and . Furthermore, a stabilizer from a focussed set is updated to
(70) |
Proof.
The case for is simple because and the linear map in the definition of extraction strings is unchanged. For the remainder, we consider some .
Firstly, we show that if or if to deduce that only acts on the outputs. If either (i.e. ) or , then and hence . Otherwise, we have . By following a similar logic to the proof of Lemma C.7 considering instead of , we end up with .
Now we show that is a primary extraction string in . Let be the linear map from Definition 4.2 for and let be the corresponding for (plus an extra projection on if ).
(71) | ||||
In the above derivation, moving through the rotation requires Lemma C.9 and .
Finally, by doing a case distinction on and Lemma C.7, the extraction string from matches up to phase, with Lemma C.8 making them equal.
The proof for focussed sets and stabilizers follows similarly. ∎
Theorem D.4.
(Restatement of Theorem 5.1) Let describe a measurement pattern with some vertex such that and . Relabelling to the equivalent Pauli label corresponds to pushing the rotation from to the start of the PDDAG and absorbing it into the initial stabilizer process.
Proof.
The corresponding PDDAG initially has a rotation node (representing the operator ) since originally has a planar label. Moving this to the front of the circuit updates the Pauli strings of other vertices according to the 3.2, so we need to check that the same update is made to planar vertices and the isometry tableau is updated appropriately.
For any planar vertex , and hence and . If then and commute, so no update is needed which matches the formula for with . Otherwise, they anticommute. If , the rotation is an identity so is unchanged. If , the rotation is a Pauli operator and hence flips the phase of ’s rotation, matching the update. For , the extraction string is updated by multiplication with the correct phase.
For the tableau, we need to handle rows from both the inputs and free stabilizers. For an input gained by input extension with , the same reductions can be made as for planar vertices and the updates for free stabilizers are essentially identical. In each case of , these updates match the effect on the isometry tableau since the 3.2 show the same effect for Paulis and generic rotations. ∎
Example D.5.
Let’s start with the same measurement pattern from Example C.13. Suppose , so we can obtain a semantically equivalent pattern by relabelling . This would make , and no longer focussed. Refocussing gives:
and . The restriction of to is not necessary, but will help to see the resemblance to the PDDAG later.
Now let’s look at applying the corresponding rewrite on the PDDAG from C.13. That is, we use the 3.2 to move (i.e. ) into the tableau. anticommutes with the rotations from and , the tableau row from , and the free stabilizer from . Each of these strings will then be updated by multiplication by . These are exactly the correction/focussed sets that were updated in the measurement pattern by combining with . The result of this rewrite on the PDDAG is:
Ins | Outs | Sign | |
---|---|---|---|
One can check that this is identical to the PDDAG extracted using .
D.2 Measurement Elimination
Lemma D.6.
Let describe a measurement pattern with some vertex such that and (). Then eliminating vertex gives an equivalent measurement pattern where , for all
(72) |
and each output neighbouring is followed by a gate.
Proof.
This is just an extension of the planar case given in the proof of [6, Lemma 4.7] to cover Pauli labels by considering the embeddings from Equation 66. The idea is that the -basis projections and reduce each of the gates on that qubit to either an identity or a gate (modelled as a conditioned on the measurement angle), in the same way that they reduce when applied to a or . This commutes with other gates to the neighbouring outputs or to change the effective measurement on the neighbour. The qubit can then be removed since the only operations on it are the preparation and measurement. ∎
Lemma D.7.
(Generalisation of [6, Lemma 3.4]) Let and be measurement patterns related by elimination of a vertex as in Lemma D.6. If is a Pauli flow for , then is a Pauli flow for where for any
(73) |
If is focussed, then so is . Furthermore, if is a focussed set for , then it is also a focussed set for .
Proof.
We first need to show that is a function from to . This follows since implies (by conditions , , and ), so both cases of the definition of give .
Because , if then from . This means is a valid Pauli flow for by repeated applications of Lemma B.1. In particular, this means it satisfies all of the Pauli flow conditions for any . These aren’t invalidated when restricting to since for any and .
If is a focussed Pauli flow, then for any since . This means for every , so the focussed property is trivially preserved. Similarly, the same holds for focussed sets. ∎
Lemma D.8.
Let and be the measurement patterns and respective Pauli flows and from Lemma D.7 formed by the elimination of a vertex . Then the new primary extraction string for each vertex is given by
(74) |
where . Furthermore, the stabilizer from a focussed set is updated similarly.
Proof.
The focussed property implies (resp. ), so (resp. is still a focussed set). Then (resp. ). This is enough to show that the strings are preserved up to phase.
We find a primary extraction string for in by considering the linear map from Definition 4.2, using the respective linear map for .
(75) |
We can reintroduce qubit with measurement angle . We can then map the angles for the Pauli projections from to using orthogonal Paulis, letting if and if .
(76) |
We can then apply the stabilizer of the graph state centred around to move these Paulis to other qubits, some of which can be absorbed into projections again.
(77) |
Each of the Paulis trapped under projections can be replaced by the primary extraction strings of those qubits. We leave the extraction strings without any order since reordering only introduces phases at this point which will be later removed.
(78) |
We can now introduce . Commuting this to the front induces phase changes according to Lemma C.9 and . We then undo the previous steps to get back to .
(79) | ||||
The calculations for focussed sets follow similarly. We can finish by using Lemma C.8 to conclude that these primary extraction strings (resp. stabilizers) are the ones generated by the new Pauli flow (resp. focussed sets). ∎
Theorem D.9.
(Restatement of Theorem 5.2) Let describe a measurement pattern with some vertex such that and . Eliminating from the graph corresponds to the following sequence of actions on the PDDAG:
-
1.
If has a planar ( or ) label, then its rotation is pulled from the rotation DAG into the stabilizer block;
-
2.
For each neighbour of that is an output, a rotation of is pulled from the stabilizer block through the entire rotation DAG to the end of the circuit;
-
3.
For each neighbour of with , a rotation of is pulled from the stabilizer block and merged with the existing rotation for .
Proof.
Each action is moving Pauli operators through rotations. The 3.2 simplify to inducing phase flips. In the PDDAG, we can flip either the operator or angle of the rotation. The case is trivial, so we suppose that ().
For both the rotations and tableau rows, we need only consider extraction strings of planar vertices. Each of the rotations moved through the PDDAG to/from location (either or ) would induce a phase shift in the rotation or tableau row for if the corresponding Pauli string anticommutes with and originated beyond (either is an output or ), i.e. or . Equation 74 also negates the angle on if and (i.e. ), as covered in Lemma D.6. ∎
Example D.10.
We will use the same example measurement pattern as Example C.13. is the only vertex with a label ready for vertex elimination, so to see something actually interesting we suppose . Eliminating gives the following residual pattern.
The focussed set remains valid. Following the rewrite sequence in the PDDAG, step 1 sees the rotation from pulled into the tableau. The term anticommutes with the rotation and tableau row from , as well as the free stabilizer from .
Ins | Outs | Sign | |
---|---|---|---|
For step 2, none of the neighbours of are outputs, so there is no change. For step 3, only and are labelled , so we move and from the tableau and merge into their corresponding rotations.
Ins | Outs | Sign | |
---|---|---|---|
This same PDDAG is obtained by extracting from the reduced measurement pattern above. Since extraction will give everything in terms of , we note that the phase on the primary extraction string from is now .
D.3 Local Complementation of Graphs
Definition D.11.
Given a graph with some designated vertex , the local complementation of about is the operation resulting in the graph:
(80) |
Lemma D.12.
Let describe a measurement pattern with and some vertex . Then performing a local complementation about gives an equivalent measurement pattern where , for all
(81) | ||||
(82) |
plus each output neighbouring is followed by an gate and if is an output then it is followed by an gate.
Proof.
The case for planar measurements is given in the proof of [6, Lemma 4.3]. We can extend this to the Pauli measurements using the embeddings in Equation 66. For completeness, the rough idea is as follows:
In our notation, Van den Nest’s Theorem for local complementation [34] (specifically, the version allowing for inputs as in [6, Lemma 4.3]) becomes:
(83) |
Each of these rotations then modifies any subsequent measurement on that qubit. By considering each case for , we find the updates for and are suitable to capture this rotation. ∎
We quote the following Lemma from Duncan et al. [16] as it is useful in showing the preservation of Pauli flow here.
Lemma D.14.
Let and be measurement patterns related by local complementation about a vertex as in Lemma D.12. If is a Pauli flow for , then is a Pauli flow for where for any
(85) |
Proof.
For this proof, we will suppose . The case where is an output has strictly weaker requirements from the flow conditions and hence will be covered by the cases examined here.
Firstly, we prove a useful decomposition of the odd neighbourhoods of correction sets. If , then using Lemma D.13 we have
(86) |
and similarly if we have
(87) |
In either case, we can now use the following equation for the remainder of the proof:
(88) |
We will first prove the Pauli flow conditions for and then separately show that they all hold for any . For , is preserved since and are either identical or differ by , and .
For condition , consider any such that and . By using Equation 88, we can consider the following cases:
- •
- •
Suppose . Equation 88 implies because . We also have if and only if from the definition of . Each of the conditions - then follow straightforwardly since the flipping of set membership matches the changes to labels between and .
Suppose instead that . Equation 88 now implies . Since must be corrected in some way, must hold, and hence . The only measurement bases that correspond to this correction give . This also gives , so the conditions - still hold.
Now we need to show that the same conditions hold for any . For -, we will do this by case distinction over the cases of .
-
•
If then , so and .
-
•
If , , and then by we have . If then . If , then by , so by Equation 88 and therefore .
- •
-
•
If , then and . Using we get , so Equation 88 reduces to if and only if . Since , this happens if and only if .
-
•
If , then . By we have and by assumption . These mean and by Equation 88.
-
•
If and , then . Equation 88 gives if and only if . Using , this happens if and only if and thus if and only if .
Otherwise, suppose .
-
•
If , then Equation 88 gives . Conditions - imply that , so .
- •
Lemma D.15.
Let and be the measurement patterns from Lemma D.12 related by local complementation about a vertex . If is a focussed Pauli flow for , then is a focussed pauli flow for , where is defined in -order (from outputs backwards) as
(89) |
Furthermore, if is a focussed set for , then we obtain a corresponding focussed set for as
(90) |
Proof.
Lemma D.14 gives a Pauli flow for , which we will rename as . We can view as an intermediate in the construction of . It is not necessarily focussed, but we can refocus it using Lemma 4.6. Recall that this adds correction sets together according to Lemma B.1 for any case where the focussed conditions do not hold for . We just need to show that these cases match those in the definition of .
As usual, the proofs for Pauli flows and focussed sets are almost identical, so herein we could change out references of for
(91) |
as an intermediate in the construction of .
We will find the counterexamples to the focussed conditions for by considering for an arbitrary , and all of the cases for , covering each case of for each of , , and .
Firstly, we have :
Next, suppose . In each case, the definition of gives and Equation 88 gives .
- •
- •
- •
- •
For the final case of , we have , , and , so all of the focussed conditions are preserved.
In summary, we find that applying Lemma 4.6 to will add focussed corrections to for any such that and or and . This exactly results in , meaning this is a focussed Pauli flow for . ∎
Lemma D.16.
Let and be the measurement patterns and corresponding focussed Pauli flows and from Lemma D.15 formed by local complementation around a vertex . Let be the primary extraction string for in from . Then is the corresponding primary extraction string in from , where
(92) |
Furthermore, if is the stabilizer from a focussed set in , then is the corresponding stabilizer for .
Proof.
We proceed following a similar strategy to Lemma D.3 of simultaneously showing that operates only on the outputs and that it matches the extraction string from up to phase, then showing that it is a valid extraction string.
The conjugation of by the and terms adjusts the Pauli terms of the operator in the same way as the intermediate Pauli flow from Lemma D.14. The term adds an when conjugating or , matching the addition of to if . Similarly, the term adds a when conjugating or , matching the update of the odd neighbourhood according to Equation 88.
Each of the remaining terms in cover the cases for the focussing in Lemma D.15. The movement of adds if it anticommutes with the operator. From Lemma C.9 and , the combined operators anticommute if (where is the intermediate Pauli flow at this stage in the focussing). This matches the focussing step, which adds when doesn’t satisfy the focussed conditions - by Lemma D.15, this corresponds to the conditions on in the definition of .
Combining these together, we get that maps to the equivalent for up to phase.
To complete this for the phase, it remains to show that is a valid primary extraction string. Recall from Van den Nest’s Theorem (Equation 83) that local complementation of the graph state is balanced by rotations on and its neighbours. Let’s look at how these rotations affect the measurements on those qubits in each case.
We can now consider the primary extraction string of some . As usual, we define to be the linear map of interest from Definition 4.2 for and let refer to the equivalent for .
(93) |
We start by applying the reverse of the extraction algorithm to modify the measurement angles in the diagram to match those in the table above. Since this changes the angles (which must be to extract any rotation before them), we must perform this in -order.
(94) |
Next, we apply Van den Nest’s Theorem to yield .
(95) |
The final step is then to introduce , move it through and reverse the construction to return to .
(96) |
Hence is a valid primary extraction string for , and by Lemma C.8 it is exactly the one generated by . As usual, the proof is virtually identical for stabilizers from focussed sets. ∎
Theorem D.17.
(Restatement of Theorem 5.3) Performing local complementation about a vertex corresponds to the following sequence of actions on the PDDAG:
-
1.
For each output neighbouring , a rotation is pulled from the initial stabilizer block all the way to the end of the rotation DAG;
-
2.
If is an output, a rotation is pulled from the initial stabilizer block all the way to the end of the rotation DAG;
-
3.
For each vertex neighbouring with , and for itself if is planar, we pull a rotation from the initial stabilizer block to merge it into the existing rotation for or . We do this in -order over such vertices.
Proof.
Lemma D.12 shows that the additions of to measurement angles and outputs matches the set of rotations that are moved in the above PDDAG rewrite sequence.
The updates for the Pauli strings for each rotation and the stabilizers/tableau are covered by Lemma D.16. In particular, in each case we consider planar vertices and so all of the terms in are , meaning the update to the extraction string corresponds to the effect of the 3.2. However, the phase may differ in the update from to .
Example D.18.
Again, we start from the same measurement pattern from Example C.13 and apply local complementation about vertex . This complements the connectivity within .
We update the focussed set to , and to preserve semantics we also have an applied to output .
Now we turn to the sequence of rewrites on the PDDAG. For step 1, neighbours so we pull a rotation through to the end. The 3.2 update the rotations with anticommuting Pauli strings (the rotation from , the tableau row and rotation from , and the free stabilizer from ) by multiplication.
Ins | Outs | Sign | |
---|---|---|---|
Step 2 does not apply since is not an output. Finally, in step 3, is not planar but it is adjacent to and that are labelled as . Since , we first pull out the rotation.
Ins | Outs | Sign | |
---|---|---|---|
Then we pull out the rotation for .
Ins | Outs | Sign | |
---|---|---|---|
We now find that this is the same PDDAG that would be extracted after applying the local complementation on the measurement pattern (take care when determining the phases during extraction as the phase from including in is now because ). In the final step, it is important to have maintained the convention of extracting as and keeping the terms with the string rather than the angle. If we had instead moved , we would end up with a rotation of and different phases on the rotation and tableau row for .
Remark D.19.
One should note that the action of local complementation is not quite self-inverse due to some measurement angles being updated by . However, performing the inverse update is also valid and just relies on using the other case of Equation 83 to flip the angles that are added. This can similarly be simulated by just flipping the angles of the rotations being moved through the PDDAG.
Now that we have the ability to simulate the effects of local complementation, extending this to pivoting is trivial since it simply decomposes into a sequence of local complementations.
Definition D.20.
Given a graph with some designated edge , the pivot of about the edge is the operation resulting in the graph:
(97) |
Lemma D.21.
Let describe a measurement pattern with and some chosen vertices such that . Then performing a pivot around the edge gives an equivalent measurement pattern where , for all and
(98) | ||||
(99) |
plus each output neighbouring both and is followed by a gate and if each of or is an output then it is followed by a Hadamard gate.
Proof.
We can similarly extend the case for planar measurements given in the proof of [6, Lemma 4.5] to Pauli measurements by considering how they embed into the planes as in Equation 66. Similarly, this follows by using Van den Nest’s Theorem [34] (Equation 83) multiple times, alternating the phases of the angles each time, and rotating the measurement projections accordingly. ∎
D.4 Alternative Focussed Pauli Flows
Lemma D.22.
Let describe a measurement pattern with a focussed set , vertex , and two focussed Pauli flows and related by the addition of to as in Lemma B.6. Let be the stabilizer corresponding to , and and be the primary extraction strings for according to and respectively. Then .
Proof.
Lemma C.7 immediately gives this result up to phase. To invoke Lemma C.8, we consider the linear map for extraction strings of . From the conditions of Lemma B.6 and the definition of , any must satisfy and . So both and are stabilizers of , meaning they combine to give the stabilizer which defines this as a valid primary extraction string. ∎
Theorem D.23.
(Restatement of Theorem 5.4) Let describe a measurement pattern with some focussed Pauli flow , a focussed set , and some vertex such that . Updating to corresponds to a free action on the isometry tableau if is an input, and applying the 3.1 to the rotation from with the stabilizer of if has a planar label.
Therefore, any two focussed Pauli flows for the same labelled open graph yield PDDAGs that are related by a sequence of applications of the 3.1 and free actions on the isometry tableau.
Proof.
This update on the Pauli flow is the same as from Lemma B.6, meaning Lemma D.22 gives the update to the primary extraction strings. For both uses of in extraction, we assume has a planar label. If is an input considered for the tableau of the PDDAG, multiplication of a row of the tableau by a free stabilizer is a free action as it just gives another equivalent set of generators for the stabilizer group. On the other hand, if is some planar vertex giving a rotation in the PDDAG, we note that remains a stabilizer after applying each of the rotations for vertices (they commute according to Lemma C.9), allowing us to apply the 3.1 to get the same effect.
To show that any two focussed Pauli flows and can be related using this, we start with and derive the sequence of transformations needed to reach .
We consider weakening of the partial order in a Pauli flow to be a free action, as well as the reverse so long as the Pauli flow conditions are preserved, since neither affect the semantics or extraction. So suppose wlog that and are minimal, i.e. is the transitive closure of (we ignore Pauli measurements by Lemma B.11).
We proceed inductively over . Under some indexing of the vertices respecting , let be the first for which , i.e. . Our assumptions on minimality then imply that .
By Lemma B.7, is a focussed set for any . Conditions - imply that . Using conditions and , we also have . Since and by the minimality assumption, we now have . This means that combining with according to Lemma B.6 (and reducing to the minimal order) gives a focussed Pauli flow equal to up to in .
Repeating this inductively over the remaining vertices will eventually yield . ∎
Example D.24.
We revisit the measurement pattern from Example C.13. Recall that we have a focussed set with , so we can freely add this to the correction sets for any of , , or . Suppose we do so for and to give the following focussed Pauli flow:
The difference between and has no effect on the PDDAG since is not involved in the extraction procedure. So the only rewrites needed are the multiplication of the top row of the isometry tableau by the bottom, and applying the 3.1 to the rotation mapping .
Ins | Outs | Sign | |
---|---|---|---|