Clifford Gates in the Holant Framework
Jin-Yi Cai, Heng Guo, Tyson Williams

TL;DR
This paper demonstrates that Clifford gates and stabilizer circuits, which are efficiently simulatable classically, correspond to affine signatures within the Holant framework under a unitary condition.
Contribution
It establishes a novel equivalence between quantum Clifford gates and affine signatures in the Holant framework, linking quantum computing and computational complexity.
Findings
Clifford gates are equivalent to affine signatures under a unitary condition.
Stabilizer circuits correspond to tractable functions in the Holant framework.
Provides a new perspective on classical simulation of quantum circuits.
Abstract
We show that the Clifford gates and stabilizer circuits in the quantum computing literature, which admit efficient classical simulation, are equivalent to affine signatures under a unitary condition. The latter is a known class of tractable functions under the Holant framework.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsQuantum Computing Algorithms and Architecture · Quantum many-body systems · Quantum-Dot Cellular Automata
Clifford Gates in the Holant Framework
Jin-Yi Cai
University of Wisconsin-Madison
Heng Guo
Queen Mary, University of London
Tyson Williams
Blocher Consulting
Abstract
We show that the Clifford gates and stabilizer circuits in the quantum computing literature, which admit efficient classical simulation, are equivalent to affine signatures under a unitary condition. The latter is a known class of tractable functions under the Holant framework.
1 Introduction
Ever since Shor’s famous quantum algorithm to factor integers in polynomial time [32], researchers have sought to understand the relationship between efficient classical computation, as represented by the class BPP, and efficient quantum computation, as represented by the class BQP. Since the quantum computational model is typically presented as a uniform family of quantum circuits, the question becomes, “which classes of quantum circuits can be simulated by a classical computer in polynomial time and which ones cannot?” It is widely believed that , which implies that not all quantum circuits have efficient classical simulations. The goal is then to determine under what restrictions this becomes possible.
There have been many successes along these lines by considering various bounds on measures of entanglement [26, 38, 31], width [40, 30], and planarity [22, 5]. Another popular restriction is to limit the allowed gates, which is the point of view we take in this paper. For example, it is easy to see that circuits composed of only 1-qubit gates can be simulated in deterministic polynomial time by following each qubit independently. We call such circuits degenerate.
Other than this trivial example, there are basically two known classes of gates that compose circuits admitting efficient classical simulations. The first is Clifford gates, which get their name by a connection with Clifford algebras. Circuits using only these gates are called stabilizer circuits because the Clifford gates stabilize the group of Pauli matrices. The efficient classical simulation of Clifford gates is known as the Gottesman-Knill Theorem [20], which now has several alternative proofs [2, 3, 17, 24]. The second is matchgates with nearest neighbor interactions. Valiant [35] gave an efficient classical simulation of this class by reducing to counting perfect matchings in planar graphs, which is computable in deterministic polynomial time due to the FKT algorithm [33, 27]. For the special case of 2-qubit matchgates with even support, many alternative proofs of tractability and characterizations were found [34, 28, 23, 25, 18].
Valiant further developed the idea of matchgates, resulting in holographic algorithms [37], which give a number of surprising algorithms to problems that were not known to be tractable previously. Holographic algorithms have been further developed and generalized extensively [36, 10, 12, 7, 15, 39]. To understand the surprising power of holographic algorithms, the Holant framework was proposed by Cai, Lu, and Xia [11]. The exact definition of the Holant framework is beyond this paper, and here we will just give a simple description. Details can be found in [11, 8]. Roughly speaking, a Holant problem is to evaluate the contraction of a tensor network, and its computational complexity is determined by the set of tensors we allow. Equivalently, it is a constraint satisfaction problem defined on a graph, where we put (constraint) functions on vertices and edges are variables, and the goal is to evaluate the total sum over all possible assignments on edges of the product weights of functions on vertices. There has been considerable success towards classifying the computational complexity of Holant problems [11, 9, 21, 8, 6]. These classification results provide us, under various settings, thorough understandings of what class of problems is polynomial time tractable and what is #P-hard.
The original motivation of matchgates [35] was to classically simulate quantum circuits. Under the Holant framework, the matchgates correspond to a special case of the known tractable classes [6]. However, it is natural to wonder, whether the other class of quantum circuits that admits efficient simulation, namely Clifford gates / stabilizer circuits, is connected to Holant problems as well.
We show that Clifford gates are indeed also a special case of a known tractable class, called affine signatures [13, 8]. The quantum circuit model requires us to view a function (or tensor) as a unitary gate, namely that it has the same number of inputs and outputs, and the matrix representation is unitary. In fact, we show that the Clifford gates are exactly the class of affine signatures under these two restrictions, namely, with specified inputs and outputs, and a corresponding unitary matrix representation (see Theorem 2.4).111It turns out that for affine signatures, unitary matrix requirements are equivalent to requiring simply non-singularity. See Corollary 4.2. Since affine signatures are explicitly defined, our result gives an alternative and explicit characterization of Clifford gates.
Classifying the classical complexity of quantum circuits is a well-known open problem (see Question 2 of [1]). Valiant [35] has shown how to reduce from computing the marginal probability of a certain output for a quantum circuit, to evaluating a corresponding Holant problem. Thus, tractable Holant problems can potentially provide new simulation algorithms. For example, the efficient simulation of Clifford gates can be obtained through the polynomial-time algorithm for affine signatures [13], which provides yet another proof of the Goettesman-Knill theorem [20]. However, the study of Holant problems has been mostly focused on symmetric functions [8, 6], and with the unitary matrix restriction, known tractable families become exactly those corresponding to degenerate, matchgates, and stabilizer circuits. Despite some recent progress [29, 14, 4], a general dichotomy theorem for Holant problems remains elusive. We hope that studies in this direction can shed some light in classifying quantum circuits in the future.
The results reported here were obtained in 2012, and the materials had been presented at the Simons Institute for the Theory of Computing. Recently Backens [4] made some new connections between quantum computation and Holant problems, and used them to obtain a new dichotomy result under the Holant framework. In light of this new exciting connection, we are encouraged to publish these results.
2 Definitions and the Main Result
We first introduce several definitions so that we can state our main theorem. The two basic objects we look at are affine signatures, which are a tractable class of constraint functions in the Holant framework [13], and Clifford gates, which compose stabilizer circuits that can be efficiently and classically simulated.
2.1 Affine Signatures
Definition 2.1**.**
A -ary function is affine if it has the form
[TABLE]
where , , is matrix over , is a vector over , and is a 0-1 indicator function such that is 1 iff . Note that the dot product is calculated over , while the summation on the exponent of is evaluated as a sum mod 4 of 0-1 terms. We use to denote the set of all affine functions.
In other words, the affine signatures are, up to a scalar, the signatures with affine support whose nonzero entries are expressible as raised to a sum of linear indicator functions. This alternative view is the original definition of the affine signatures [13, Definition 3.1]. For the indicator function , we also write for brevity.
A sum of 0-1 indicator functions defined by the affine linear functions atop has an alternate form. We can express as , where is a homogeneous quadratic polynomial over with the additional requirement that every cross term with has an even coefficient. To see this, we observe that the 0-1 indicator function of an affine linear function can be replaced by , and if and only if , respectively. Then every cross term has an even coefficient and can be replaced by . Conversely, we can express as a sum of squares of linear forms of using the extra condition that all cross terms have an even coefficient. We utilize this definition in the present work.
From the relation , where , we can pick a maximal set of free variables, such that all other variables can be expressed by their affine linear sums mod 2. Say we have and there are variables in . This is a relation in . We can use it to replace variables by in the expression . This is valid because for every symmetric integer matrix , if , then . After replacing by , and absorbing a constant term , we may assume the function is , where is an -by- symmetric matrix, and has the same norm as .
2.2 Unitary Affine Signatures
In order to state what makes a signature a valid quantum operation, we define a mapping from a signature of even arity to the matrix that represents it as its (weighted) truth table.
Definition 2.2**.**
For a signature of arity on Boolean inputs , the signature matrix of is the -by- matrix where the entry in the row indexed by and column indexed by is .
The first inputs of are the inputs of and index a row while the last inputs of are the outputs of and index a column. We assume that the variables are labelled counter-clockwise (see Fig. 2). This requires us to reverse the order of the bits corresponding to the column index. This is for convenience so that the signature matrix of the signature resulting from the direct linking of two arity signatures along a particular sequence of inputs is the matrix product of the signature matrices of the two signatures. More precisely, for two arity signatures and on inputs and respectively, the identification of for gives another arity signature (see Fig. 2) such that
[TABLE]
and .
Using Definition 2.2, we define the set of signature matrices of with inputs and outputs as
[TABLE]
and the subset of these signature matrices that are also unitary as
[TABLE]
where is the group of -by- unitary matrices. Recall that a matrix is unitary if , where is the conjugate transpose of . For a matrix to be unitary, it must be at least nonsingular, so we also define
[TABLE]
where is the group of -by- nonsingular matrices with complex entries.
In Lemma 4.1, we prove that for every , there exists a scalar (the “correct” choice of scaling) such that . The reverse direction is obvious.
2.3 Clifford Gates
The Pauli matrices on a single qubit are
[TABLE]
These matrices satisify
[TABLE]
and
[TABLE]
In particular, every two Pauli matrices either commute or anticommute. There is an isomorphism with the quaternions if we send to .
On qubits, the set of Pauli matrices is . The group generated by these Pauli matrices forms the Pauli group . This Pauli group can also be defined as simply the Pauli matrices together with a multiplicative factor of or . A -by- matrix is a matrix in if and only if the entry can be expressed as
[TABLE]
where is a constant, is a vector, and is an indicator function of the linear system determined by a sequence of 0-1 values such that for each , over . We can rewrite the constraint induced by as
[TABLE]
where is a constant vector determined by .
Definition 2.3**.**
The Clifford group on qubits is
[TABLE]
Here is the group of complex numbers of norm one, . It is considered as a subgroup by identifying with . Alternatively, we can also consider that is defined as . In words, the Clifford group on qubits is, up to a norm 1 scalar, the set of -by- unitary matrices that stablizes the Pauli group . Thus, quantum circuits composed by gates from the Clifford group are known as stabilizer circuits.
Having defined both (unitary) affine signatures and Clifford gates, we are now ready to state our main theorem.
Theorem 2.4**.**
The set of non-singular affine signatures is exactly the set of Clifford gates, namely, .
In particular, Theorem 2.4 implies that all non-singular affine signatures are unitary (see Corollary 4.2).
3 Closure of Affine Signatures
We will show a closure property of affine signatures (see Lemma 3.1). This property, together with the fact that the Clifford gates are generated by three elements (all of which are affine), implies one direction of Theorem 2.4.
Affine signatures are closed under four basic types of operations.
Lemma 3.1**.**
If , then so are
, 2. 2.
* for any permutation ,* 3. 3.
, where we set the variable to be equal to , and 4. 4.
.
Proof.
In the following, let and , where , , and the functions and are homogeneous quadratic polynomials over with even coefficients on cross terms.
The signature is also affine since
[TABLE]
where and . 2. 2.
This is obvious. 3. 3.
We simply add the affine equation to the linear system of constraints that defines the affine support. Therefore, the resulting signature is also affine. Furthermore, we can decrease the arity by replacing all occurrences of with . 4. 4.
If there is a nontrivial equation in involving , then for any setting of the other variables, there is at most one value for such that the resulting vector is a solution to . Thus in place of the sum over every possible value for , we use this nontrivial equation to replace in both and . As noted earlier, for for some symmetric , the substitution of by a mod 2 expression is valid. Then the resulting function is also affine.
Otherwise, there is no nontrivial equation involving . In this case, the fact that is also affine essentially corresponds to why the affine signatures are tractable in the first place. See the proof of [13, Theorem 4.1], which uses the original definition of the affine signatures where the exponent of is a sum of linear indicator functions. ∎
On the other hand, the Clifford group is generated by (essentially) three elements. Let
[TABLE]
Furthermore, let , , and be the gate that acts on the subscript qubits (either on , or on and ). In other words, where is the -by- identity matrix and is at the th coordinate. can be expressed similarly, and can be viewed as the gate after permuting qubits to and to .
Theorem 3.2** (Page 13 in [19]).**
.
Firstly, these three basic matrices are signature matrices of affine signatures:
[TABLE]
By case 1 of Lemma 3.1, and are in . By case 1 and 2 of Lemma 3.1, are also in .
Furthermore, a matrix multiplication is a combination of operations 3 and 4 in Lemma 3.1. Thus Lemma 3.1 implies that . By Theorem 3.2, we have the following lemma, which is similar to a result in [16].
Lemma 3.3**.**
.
4 Equivalence of Clifford Gates and Unitary Affine Signatures
At last, we show that the reverse direction of Theorem 2.4 also holds.
For a signature matrix , assume the rows are indexed by and the columns by . Suppose is nonsingular. Since , the support of is determined by a linear system. If there is any non-trivial equation involving the ’s only, there will be a row of entire [math]’s. This is a contradiction to the assumption of being nonsingular. Suppose the support of has dimension . One can choose a set of free variables among such that every variable can be expressed as an affine linear combination over of these variables. Among such choices of a set of free variables, pick one set with a maximum number of variables from . We claim that . Suppose otherwise. There is some such that . Then the expression of in terms of the variables in must contain some with a non-zero coefficient, or else there would be a non-trivial equation involving the ’s only. This equation can be used to exchange by and get a new set of free variables , contradicting the maximality of . Hence .
By renaming the variables if necessary, we may assume that for some ,
[TABLE]
Then we have the following system in , if ,
[TABLE]
where is an -by- matrix, is an -by- matrix, and is a vector of length . (If then the term disappears. If then this linear system is empty.) We will denote the variables and . Then
[TABLE]
Each entry of is of the following form:
[TABLE]
where is a homogeneous quadratic form in and with all cross terms having even coefficients, and is the 0-1 indicator function of the support given in (3). The exponent is evaluated mod . As discussed in Section 2.1, we can use equations (3) to substitute by and . The substitution in (4) by (3) is valid because every cross term has an even coefficient and for any integer , we have iff . Then we have
[TABLE]
where is an -by- symmetric matrix, is an -by- symmetric matrix and is an -by- matrix, all with integer entries. Moreover, equals multiplied by a power of . In particular, . Here we use to mean where is the concatenation of and . If we attach the matrix with , we can form a square matrix :
[TABLE]
Lemma 4.1**.**
For a signature given in (4), if is nonsingular, with , where is the dimension of the affine support of , then is unitary and is nonsingular.
Proof.
Given a nonsingular , let , , , , and be defined as above.
Consider the matrix . We will show that is the identity matrix . For the entry indexed by row and column , it has the following expression
[TABLE]
Notice that if , then the following equations hold
[TABLE]
and
[TABLE]
In this case, these two systems must be consistent and we have
[TABLE]
When this is indeed the case, any solution () to (6) is also a solution to (7), and vice versa. Also notice that for , condition (8) always holds. On the other hand, if (8) does not hold, then . We may assume that (8) holds. Furthermore, we may assume that is substituted by (6), which is the same as (7) under (8), and drop the indicator function . Since is chosen so that (recall (5)), we have that
[TABLE]
If , then (9) simplifies into
[TABLE]
Therefore the diagonal entries in are all .
If , then the matrix is a square matrix. It must have full rank over . Otherwise, there is a non-zero vector such that over . This would give a non-trivial affine linear equation on by (3). Then would have an all 0 column, a contradiction. Therefore the condition (8) cannot hold for . Hence all off-diagonal entries in are [math]. This implies that is the identity matrix, and is unitary.
Otherwise . For , by (9), we have that
[TABLE]
where is the th row of .
If , it is easy to see that . Otherwise, and we argue that is singular. In fact, the rows and are linearly dependent. First, since condition (8) holds, an entry indexed by in row is nonzero if and only if the corresponding entry in row is. For a solution to the system (6) and equivalently (7), we have that
[TABLE]
where in the last equality we used . This ratio is independent of . Therefore the two rows indexed by and are linearly dependent and the matrix is singular. Contradiction.
To conclude, if , and otherwise. This is to say that is the identity matrix and is unitary. Moreover, is the only solution to the system
[TABLE]
So is nonsingular. ∎
Since unitary matrices are non-singular, it follows that . Lemma 4.1 leads to the following corollary.
Corollary 4.2**.**
.
Now we prove that nonsingular signature matrices of affine signatures are gates in the Clifford group.
Lemma 4.3**.**
.
Proof.
For a given matrix and , we want to show that . Clearly we may assume in the expression (1) for entries of . The entry at row and column can be expressed as
[TABLE]
where , and come from the general expression (5) of the entry in .
If , then the following equations must hold
[TABLE]
where we write (recall (2)). The first two constraints come from the affine support constraint (3) whereas the last two come from the Pauli matrix constraint (2). Therefore we have
[TABLE]
When this is the case and is normalized so that , we have that
[TABLE]
Similar to the proof of Lemma 4.1, the entry if and only if the following equation holds:
[TABLE]
Suppose this equation holds. Since the matrix is nonsingular by Lemma 4.1, there exists a unique solution that . It implies that
[TABLE]
Therefore, we can express the entries of as
[TABLE]
where
[TABLE]
is the 0-1 indicator function of
[TABLE]
and
[TABLE]
This matches the general expression of a Pauli matrix, so . ∎
Proof of Theorem 2.4.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Scott Aaronson. Ten semi-grand challenges for quantum computing theory. 2005. Available at http://www.scottaaronson.com/writings/qchallenge.html .
- 2[2] Scott Aaronson and Daniel Gottesman. Improved simulation of stabilizer circuits. Phys. Rev. A , 70(5):052328, 2004.
- 3[3] Simon Anders and Hans J. Briegel. Fast simulation of stabilizer circuits using a graph-state representation. Phys. Rev. A , 73(2):022334, 2006.
- 4[4] Miriam Backens. A new Holant dichotomy inspired by quantum computation. In ICALP , 2017. To appear. Co RR, abs/1702.00767 .
- 5[5] Sergey Bravyi. Contraction of matchgate tensor networks on non-planar graphs. Cont. Math. , 482:179–211, 2009.
- 6[6] Jin-Yi Cai, Zhiguo Fu, Heng Guo, and Tyson Williams. A Holant dichotomy: Is the FKT algorithm universal? In FOCS , pages 271–282, 2015. Co RR , abs/1505.02993 .
- 7[7] Jin-Yi Cai, Heng Guo, and Tyson Williams. Holographic algorithms beyond matchgates. In ICALP , pages 271–282. Springer Berlin Heidelberg, 2014. Co RR , abs/1307.7430 .
- 8[8] Jin-Yi Cai, Heng Guo, and Tyson Williams. A complete dichotomy rises from the capture of vanishing signatures. SIAM J. Comput. , 45(5):1671–1728, 2016.
