Quantum Circuit Tensors and Enumerators with Applications to Quantum Fault Tolerance
Alon Kukliansky
and Brad Lackey
A. Kukliansky is at the U.S. Naval Postgraduate School.B. Lackey is at Microsoft Quantum, Microsoft Corporation.
0009-0003-6743-90180000-0002-3823-8757
Abstract
We extend the recently introduced notion of tensor enumerator to the circuit enumerator. We provide a mathematical framework that offers a novel method for analyzing circuits and error models without resorting to Monte Carlo techniques. We introduce an analogue of the Poisson summation formula for stabilizer codes, facilitating a method for the exact computation of the number of error paths within the syndrome extraction circuit of the code that does not require direct enumeration. We demonstrate the efficacy of our approach by explicitly providing the number of error paths in a distance five surface code under various error models, a task previously deemed infeasible via simulation. We also show our circuit enumerator is related to the process matrix of a channel through a type of MacWilliams identity.
Quantum error correction is an essential part of scalable quantum computation. A key component of this is the fault tolerance of the circuits used to extract syndromes of quantum codes [1, 2, 3, 4]. Typically, the analysis of such circuits relies on direct simulation using Monte Carlo trials [5, 6]. Often lower bounds of the fault tolerant threshold are obtained by counting error paths [7]. Otherwise, there are a few general methods for the analysis of fault tolerant protocols, see for example [8] for one.
Our approach is based on tensor enumerators of [9]. These provide a method to explicitly analyze circuits and error models without the use of Monte Carlo techniques. In particular, we have developed a formalism that can represent both unitary circuits and quantum channels as tensor objects, from which enumerators can be derived.
We provide an analogue of the Poisson summation formula for stabilizer codes that allows for rapid enumeration of error paths.
Generally, the computation of quantum weight enumerators and hence circuit enumerators, is exponential in the number of qubits. For small circuits this is feasible, however, for larger circuits, this is only tractable when the circuit is sparse or has a special structure, which is often the case for syndrome extraction circuits. In particular, we find we can explicitly count the error paths of a distance five surface code under a variety of error models, which would be impossible using simulation.
This paper is organized as follows: we provide the needed background and layout of our notation in §II. Next, in §III we formalize the circuit tensor and Choi state for a linear map, prove composition laws, and compute these for key examples. In §IV, we define the Choi matrix and circuit tensor for any quantum channel, and prove the circuit tensor composition laws at this level of generality. §V contains many circuit tensor constructions for common quantum circuits, with a final example of the teleportation circuit. We incorporate noise sources into the quantum circuit in §VI, and show how to analyze them using circuit enumerators. We extend the teleportation example to include quantum and classical noise sources, calculate its circuit enumerator, and generate the error model of the output state. §VII holds the Poisson summation theorem for circuit enumerators of stabilizer codes. Following, §VIII shows how to use circuit enumerators to analyze a noisy syndrome extraction circuit for a stabilizer code. Finally, in §IX we discuss our theory and its impact.
In an appendix, we show our circuit tensor is related to the process matrix of a channel through a type of MacWilliams identity.
II Background
Here we provide an accelerated presentation of the background material we need for this work. We discuss quantum and classical error bases on Hilbert spaces, the Pauli basis in particular, as a means for introducing circuit tensors and enumerators. We also present the Shor-Laflamme enumerators for stabilizer codes, as well as their tensor enumerators.
Much of this work holds in the context of a general error basis. However, as in [9], we restrict to “nice error bases” [10, 11] with Abelian index group [12], defined as follows.
Definition 1(Hilbert space error basis).
An error basis on a Hilbert space is a basis of unitary operators , which
1.
contains the identity ;
2.
is trace-orthogonal if ; and,
3.
satisfies for all .
Here, we take to have for some fixed .
Let be an error basis on a Hilbert space of dimension . Fix any basis of . We define the Bell state relative to to be . We have the following result from [9, Lemma VII.1].
Lemma 2.
.
Our goal is to analyze quantum circuits, particularly those used for quantum error correction, and so we focus on the Pauli basis of , which for is defined by
(1)
where
(2)
with . For we instead take the usual Pauli operators . When the local dimension is understood or is irrelevant, we drop it from our notation.
As is usual in quantum information, classical information is encoded as diagonal operators. In the case of states, these are density operators; in the case of our error bases, these will be powers of the Pauli -operator. For a classical system with data , we have the Hilbert space with error bases with
(3)
where, as above , and hence :
(4)
Systems that consist of multiple subsystems are obtained through the tensor product. For example, given a local system with Hilbert space and error basis , a quantum code of length will have as its Hilbert space , for which we can take the error basis
(5)
We will often be faced with the task of tracking phases introduced by commuting Pauli operators; to unify across local dimensions we introduce the notation, which is consistent with its use in Definition 1 for general error bases,
(6)
In particular if and only if and commute.
Definition 3(Phase relative to the Pauli error basis).
For a -qubit Pauli operator , we define its phase relative to the Pauli error basis as :
(7)
Note that this also applies to hybrid quantum/classical systems. For example, when performing nondemolition measurement of a qubit state, the resulting system consist of the post-measurement quantum state and the classical bit obtain from the measurement readout. Hence the Hilbert space is with error basis
(8)
All of our examples will be qubit circuits, . In fact, these will mostly be Clifford circuits, built from the Hadamard , phase gate , and CNOT. But as mentioned in the introduction, the power of our methods will also allow us to treat the -gate , as well as non-unitary operations such as state preparation and destructive and nondemolition measurement, and , with respect to a Pauli operator .
Measurement is an example of a general quantum channel. Our notation for a quantum channel is , where it is important to recognize that is not a function on the Hilbert space itself, but rather on operators on the Hilbert space. Applied on a density operator on , the channel has operator sum, or Choi-Kraus, form
(9)
where the Kraus operators need not be unique [13, §8.2]. The analysis of error models uses quantum channels; for example the decoherence channel is given by , which is closes related to the uniform Pauli error channel
(10)
Our main application is the fault-tolerance analysis of stabilizer codes. We will write for such a code, with its stabilizer denoted as where the generators are assumed independent. As usual we call the length and the dimension of . The syndrome , is the results of projective measurements of the stabilizer generators; for an error operator this means .
The normalizer of is defined as
(11)
Elements of the preserve , and so (when not in ) are naturally associated with logical errors. The definition (11) of can also be viewed as stating that is the dual to where “orthogonality” in this context is commutativity. That is is the set of all the Pauli operators that are orthogonal to in this sense. While not obvious the converse holds,
(12)
In particular, we will often make use of the relations
(13)
and
(14)
Corollary 4.
Let be a stabilizer state with stabilizer group . Each element of is a Pauli operator, but it need not be in the positive Pauli basis as it might include a nontrivial phase , , or . Yet, we always have as is a eigenstate for all elements of . It follows then for any as otherwise . Hence any element of can only have phase relative to , meaning .
capture information about errors; when , the orthogonal projection onto , these enumerate the Pauli operators in and respectively of each weight.
These weight enumerators and above are connected by a quantum MacWilliams transform [14]. After homogenizing , and similarly for , this reads:
(17)
This identity has been extended to local dimension [15], the quantum analogue of the complete enumerator [16, 17], and vector and tensor enumerators over these [9].
In this work, our circuit tensor is related to the total tensor enumerators of [9],
(18)
(19)
Where are formal basis elements of the vector space of matrices indexed by a pair of Pauli operators, which is of dimension . Here we are interested in the operational character of this matrix, so we write these as .
As a final note, we will occasionally run into the trivial system. For example when preparing a quantum state, the initial system is trivial. The associated Hilbert space of this system is just , for which there is only a single error operator . We will usually suppress the notation of this Hilbert space and error basis for readability. Namely, for the case of state preparation, we will simply write instead of .
III Circuit tensor of a linear map
To apply tensor enumerator methods to problems in fault-tolerance we will need to construct circuit tensors for general quantum channels. Nonetheless, we find it instructive to first define and analyze the analogous objects for just a single linear operator. In this section, we define the Choi state [18] and circuit tensor for a linear operator and prove composition laws for these. We also apply this formalism to some key examples such as state preparation and unitary operations.
Let and be finite dimensional Hilbert spaces; we write for the space of linear operators from to .
Definition 5(Choi state of a linear operator).
Let be any linear operator, an error basis on , and the Bell state of . Then the Choi state of is
(20)
Note that the Choi state need not be properly normalized. In particular, , and so orthonormality of Choi states is directly related to that of their underlying operators in the trace norm. In particular, a Choi state will be unit length if is an isometry.
Example 6(States and effects).
Let be a pure state. View this as the operation of state preparation: a linear map given by . Then under the identification of , one has
.
Dually, the effect is a linear map . Operationally, this is interpreted as post-selection upon measuring . Then
(21)
The key link to tensor networks throughout what follows is that the composition of operators can be realized through the trace of tensors. This is of course already apparent in matrix-product states, see for example [19]. The following simple, yet central, result can be viewed as just expressing this from the perspective of the Jamiołkowski-Choi duality [20, 21].
Proposition 7(Choi state for a compositaion of linear operator).
Let and , and the Bell state. Then
(22)
Proof.
We compute, albeit with some abuse of notation,
(23)
∎
We introduce the circuit tensor of a linear operator by using its Choi state. One can view this object as a matrix representation of the operator using elements of error bases for indices. It has appeared in the literature under various names, for example the “channel representation” (of a unitary) in [22, §2.3].
Definition 8(Circuit tensor of a linear operator).
Let , and let and be error bases of and respectively. The circuit tensor of is
(24)
where and .
As above if and are error bases of and respectively, we write for the matrix unit of : the matrix, indexed by elements of and , with in its -entry and elsewhere. We can then write the circuit tensor in component-free form:
(25)
Example 9(State and effects, continued).
In Example 6 above, we saw the Choi state associated with preparing or post-selected on a state is essentially that state itself. The domain of state preparation is whose only error basis is . The circuit tensor of state preparation then has only a single row, and so we suppress the use of as its index. That is:
(26)
In particular, state preparation of qubit state in the Pauli error basis has the circuit tensor
(27)
Preparation of Pauli eigenstates then have the circuit tensors
(28)
Dually, the range of post-selection on is , and so its circuit tensor has only a single column:
(29)
And so for a qubit effect in the Pauli basis
(30)
Example 10(Circuit tensor of a Bell state).
Preparation of the Bell state has the circuit tensor
(31)
Both of the previous two examples illustrate the circuit tensors of stabilizer states and indicate a link between the tensors and the stabilizers associated with the state. In generality, let be an -qubit stabilizer state with stabilizer group . As in Corollary 4, we have so that for each we have . Thus by writing , the circuit tensor for preparing is
(32)
as all nonidentity Pauli operators have trace zero. Therefore we have proven the following result:
Proposition 11(Circuit tensor of a stabilizer state).
Let be a stabilizer state with stabilizer group , and be the phase relative to the Pauli basis, see Corollary 4. Then
(33)
For a general linear operator , we can expand its circuit tensor as follows.
(34)
So, except for a different normalization, the circuit tensor has precisely the same form as the -tensor enumerator of [9]. In that work however, the -tensor enumerator is only defined for Hermitian operators; here we see the circuit tensor is the natural generalization to any linear map .
In Proposition 7 above, The composition of operators had a simple, yet slightly awkward, representation in terms of Choi states. However, this becomes entirely natural in the language of circuit tensors. From (III) we see that
(35)
and hence the circuit tensor of the identity operator is the identity matrix. Moreover, the circuit tensor is multiplicative, albeit order-reversing, as shown by the following result.
Any Pauli group has . So Pauli operators have diagonal circuit tensors:
(38)
In particular, for the single qubit Pauli operators:
(39)
(40)
(41)
Examining equations (39,40,41), we see that the circuit tensor behaves similarly to how each of these operators acts on the Bloch sphere. For example, on the Bloch sphere, the action of is a -rotation about the -axis, which is precisely (39) except for the term.
Let us recall how the Bloch-sphere representation is constructed. Ordinarily, we would use the Pauli basis, but any error basis of a Hilbert space suffices. Suppose we are given a unitary operator . For each we conjugate by to get an operator . We then expand this operator as a linear combination of operators in our error basis
(42)
This defines a matrix which is our Bloch-sphere representation of .
Therefore the circuit tensor of a unitary operator is precisely its Bloch-sphere representation as defined above.
While , we would not normally include this when building the Bloch-sphere representation of . Indeed is exceptional in the construction, as can be seen in the following lemma.
Lemma 14.
For any unitary the coefficient in (42) equals for and for any .
Therefore the circuit tensor of a unitary operator decomposes as , and it is only the second term we ordinarily call the Bloch-sphere representation of .
Example 15(Circuit tensor of Clifford operators).
Clifford operators normalize the Pauli group, thus for any qubit Clifford and Pauli we know that is a Pauli operator, and hence in up to a phase. We can also write it as , see Defenitation 3.
This relation leads the Clifford operators to have a signed permutation circuit tensor:
(45)
In particular, for the Hadamard gate we have [13, 4.18]:
(46)
Hence it follows that
(47)
The case is similar for the gate, and some combinations of it with the Hadammard gate. We leave the following computations to the reader:
(48)
(49)
(50)
(51)
Example 16(Circuit tensor of CNOT).
To calculate the circuit tensor for the CNOT gate, denoted , we will look at how each error in our error basis applied to any of the input legs can be commuted to the other side of the CNOT, similarly to what was done in Example 15. We can use the CNOT commutation rules found in [23, Table 1], and expand them to include also . A circuit representation of the commutation rules can be seen in Fig. 1, and their mathematical representation is:
(52)
(53)
(54)
(55)
(56)
Figure 1: Commutation rules between Paulis and CNOT
Using rules on Fig. 1 we can construct the full circuit tensor for the CNOT gate:
(57)
Example 17(Circuit tensor of ).
It is straightforward to compute that , , and . Therefore we can directly use (42) and (43) to write out the circuit tensor for the gate:
(58)
In the above, we have focussed on the circuit tensor for quantum operations. Nonetheless, we can also compute circuit tensors for classical operations.
Proposition 18(Choi state and circuit tensor of a classical function).
For any classical function define the operator
(59)
The Choi state of this operator, which for simplicity we denote , is
(60)
and its circuit tensor, similarly with notation , is
(61)
where is the canonical -th root-of-unity.
Proof.
(62)
Above we used the trace cyclic property, distributivity of the tensor product, and that is a diagonal matrix (4).
∎
Example 19(Circuit tensor for classical identity and not).
To find the circuit tensor for the classical identity () and not(), we will directly use Proposition 18. Using both and equal to 2, we have :
(63)
(64)
(65)
(66)
Proposition 20(Circut tensor for a multi-input multi-output classical function).
For every classical function that has inputs and outputs , its circuit tensor is:
(67)
Above we used as the -th output of function f.
The proof follows the same lines as the proof of Proposition 18, we leave the details for the reader.
We finish this section with a circuit tensor construction for the xor function. Examples of other primitive boolean operations that commonly appear in quantum fault-tolerance circuits can be found in Appenndix B.
Example 21(Xor circuit tensor).
The operator for xor of two bits is:
(68)
Using the circuit tensor definition in Proposition 20 we get:
(69)
Or using a tensor basis
(70)
IV Circuit tensor of a quantum channel
In this section, we extend the results of the previous section to quantum channels. The linear operator in Section III is replaced by a Kraus operator of the quantum channel, from which we build the Choi matrix (generalizing the Choi state) and the circuit tensor. Note that while the selection of Kraus operators for a channel is not unique, the Choi matrix and circuit tensor we form from them will be. The composition laws for Choi matrices and circuit tensors for channels are analogous to those of a single linear operator. We also provided detailed examples of projective and destructive measurements viewed as a quantum channel.
Definition 22(Choi matrix of a quantum channel).
Let be a quantum channel, and a set of Kraus operators for this channel. Then the Choi matrix of is .
As the Kraus operators of a channel are not uniquely defined, it is not clear that the Choi matrix as defined is unique. Nonetheless, if as in the previous section we write each for some orthonormal basis of , we find
(71)
and our Choi matrix coincides with the original formulation [24], and so is independent of the choice of Kraus operators.
Proposition 23(Choi matrix for composition of quantum channels).
Let and be quantum channels. Then
(72)
Proof.
Let and be Kraus operators for and respectively. Then is a set of Kraus operators for , albeit not generally of minimal size. Nonetheless, from Proposition 7
(73)
and hence
(74)
∎
The circuit tensor of a linear map was formed from the projector onto its Choi state, and hence the extension of circuit tensors to general quantum channels is natural.
Definition 24(Circuit tensor of a quantum channel).
Let be Hilbert spaces with error bases respectively, and let be a quantum channel. Then the circuit tensor of is where , , and is the Choi matrix of .
By construction, for a choice of Kraus operators for the channel we have , and hence
(75)
That is, the circuit tensor of a quantum channel is just the sum of the circuit tensors of its constituent Kraus operators. As noted earlier, this would seem to indicate that the circuit tensor depends on the choice of Kraus operators. However as it is defined in terms of the Choi matrix, this is not the case.
Now, , and so we can further write
(76)
showing a further generalization of the -tensor enumerator of [9] to arbitrary quantum channels.
Example 25(Destructive measurement).
Let be an orthonormal basis of a Hilbert space , and consider the operation of measuring a quantum state in this basis. That is, we input a quantum state from and output an element of . Recall that as classical information the output is represented as density operators on . So as a quantum channel, this measurement operator is . In particular,
(77)
Therefore we may take as Kraus operators for this channel.
Suppose we have error basis of ; for we take error basis . Then
(78)
where is the primitive -th root-of-unity. We see that owing to our choice of error basis of , the circuit tensor is encoding information about the measurement in the Fourier domain.
Example 26(Destructive Pauli measurement).
Let us specialize the above example to measuring a qubit with respect to a Pauli eigenbasis. We will consider , with eigenbasis , the cases of and being similar. For compactness, let us simply write . Then by (78),
Let us use the notation of and , then we can similarly get and , and so in short
(81)
for any .
Let us now consider the slightly more complex example of non-demolition measurement. For simplicity, consider a binary projective measurement. As a quantum channel, this inputs a quantum state on the Hilbert space and outputs both a classical bit and the post-measurement state. Recall a classical bit is viewed as or , density operators on . Hence the signature of this measurement as a quantum channel is .
Example 27(Projective measurement).
Let be the quantum channel for measurement with respect to a binary projective-valued measure . We may write
(82)
and so use as Kraus operators . If is our error basis for , then for we take the error basis . Then
(83)
Example 28(Projective Pauli measurement).
Let us specialize Example 27 to an -qubit Pauli operator measurement, where . Write for this channel. Taking in (27),
where as in Defenition 3, we have used to represent the phase of relative to the positve Pauli basis . Additionally, we write as the positive basis element.
Theorem 29(Circuit tensor for quantum channels composition).
Let and be quantum channels. Then . That is,
(87)
Proof.
We expand
(88)
where we have used Lemma 2. Now manipulating the trace,
In this section, we provide constructions of circuit tensors for common quantum circuits that build upon the circuit tensors of quantum gates and measurements developed §§III - IV. We start the section with an example showing how to construct a circuit tensor of a projective Pauli measurement, being one of the most common sub-circuits in fault tolerant quantum computing, using destructive measurements and Clifford operations. Next, we develop the circuit tensor for a classically controlled quantum gate, essential for post-measurement
feedback. We end the section with a large example, the teleportation circuit, that exhibits many of the basic blocks forming quantum circuits: state preparation, entangling gate, measurements, and classically controlled operations.
In Example 28 above, we derived the circuit tensor for a projective Pauli measurement, where , by treating it as a general quantum channel. For our first example, we rederive this by composing the circuit tensors of a quantum circuit that implements the projective Pauli measurement with CNOTs, single-qubit Clifford gates, and a single-qubit destructive measurement. While projective Pauli measurement is native to, say, surface codes [25], other architectures do not have this as a native gate. Fig. 2 shows circuits performing single qubit projective Z, X, and Y measurements.
Figure 2: Projective Pauli measurements: (a) projective Z measurement, (b) projective X measurement, (c) projective Y measurement.
In the simplest case of , and illustrated in Fig. 2(a), the circuit tensor of this circuit can be written, with a slight abuse of notation, as
(91)
Here, the state preparation occurs as the second qubit with an identity operation on the first qubit whose notation we suppress. Similarly, the destructive measurement refers to the measurement of the second qubit, with the identity operation on the first.
Only slightly more complicated are the -basis and -basis projective measurement
of Fig. 2(b,c). Here we need to add Clifford operations to our first qubit before and after the CNOT. We leave the full derivation for the reader, referring to (47, 50, 51):
(96)
and
(97)
From the above, it is easy to see how to construct a general projective Pauli measurement. To that end, we will note the pre and post-entanglement operations as follows:
(98)
(99)
We will also note the entanglement operation between qubit and , while all the other qubits are idle as:
(100)
Then for any Pauli operator we have:
(101)
For our second example we consider post-measurement feedback, a common construction in quantum algorithms and protocols: perform one of a selection of operations based on the outcome of a measurement. Some examples include gate injection [13, §10.6.2]; repeat-until-success circuits [26, 27]; and quantum state teleportation [13, §1.3.7]. The last of these we will treat in detail below.
At this stage we only consider selecting between one of two operations; we will consider the general case in §VI below. To keep a high level of generality, let us suppose each of our operations are quantum channels with signature . Our selector bit provides an addition classical input, whose associated Hilbert space is , hence our overall circuit will be a quantum channel with signature .
Proposition 30(Classical selection between two quantum channels).
Let be quantum channels, and let be the channel that selects given the input bit. Then the circuit tensor of is:
(102)
Proof.
Let and be sets of Kraus operators for and respectively. Then is a set of Kraus operators for . Now, for example,
(103)
and so
(104)
Therefore, we compute:
(105)
∎
Next, we will show a simple example of a classically controlled Pauli operation.
Example 31(Classically controlled Pauli operation).
In a classically controlled -qubit Pauli operation, we have qubits that go through a quantum channel controlled by a classical wire. The two possible channels are the -qubit identity with the circuit tensor or the -qubit Pauli channel, with the circuit tensor . Therefore, using Proposition 30 the circuit tensor of the classically controlled -qubit operations is:
(106)
And using the tensor basis, we get
(107)
We specify the Pauli to be or for example, then in the component-free form we get:
(108)
(109)
We will conclude this section with a construction of the circuit tensor for the teleportation circuit. It consists of many building blocks we developed in the paper, and can act as a cookbook on how to construct circuit tensors for complicated circuits.
Figure 3: Teleportion circuit composed of a Bell-state preparation (including the creation of two new qubits - ), an entangling operation, X and Z destructive measurements, and classically controlled Pauli corrections for the output qubit. In the paper we refer to the full circuit as TEL.
Example 32(Circuit tensor for the teleportation circuit).
We will show how to construct the circuit tensor of the teleportation circuit. Fig. 3 presents the teleportation circuit, it has an input of one qubit and an output of one qubit. Internally it creates a Bell State (31), entangels the input qubit to one half of the Bell State (57), then it performs the destructive and measurements (81) and applies the classically controlled Pauli corrections (108) (109). To create the teleportation circuit tensor We also use the circuit tensor of the quantum and classical identity (35) (64).
(110)
For ease of presentation, we will derive the above in parts:
As expected, we got the identity circuit tensor (35). This might seem meaningless, but next, we will show how to add noise sources to circuit tensors, enabling an easy way to analyze a noisy circuit.
VI Noise Analysis in quantum circuits
In this section, we show how to incorporate noise sources into circuits and analyze these using the circuit tensor. Here, we will only treat models that depend on a finite number of noise modes, which we index as (where implicitly, mode denotes no error). Given a quantum channel for each noise mode, we form the composite quantum channel that takes as a classical input selecting the error mode. We then define a “trace” akin to [9, Lemma IV.1] that attaches a formal variable to this classical input, which may also be interpreted as a weight of the corresponding error mode. This defines a “circuit enumerator” that we will use extensively in later sections to count error paths in syndrome extraction circuits of quantum codes.
Setting notation, for a given quantum circuit let us write for the quantum channel of that circuit with no errors. We then write for the analogous noisy circuit operating under noise mode (so ). We combine these channels into a channel, , as illustrated in Fig. 4a, where the first factor in the domain is the (classical) selection for the noise mode. Formally,
(116)
Figure 4: (a) An error channel accepts a classical input to select the error mode. (b) The trace (represented by the open circle) creates the circuit enumerator of the channel, whose variables track occurrences of error modes.
Lemma 33.
, where is the canonical -th root-of-unity.
Proof.
Just as in the Proposition 30 above, the Choi matrix of the composite channel has
(117)
Thus by definition
(118)
∎
Note that this single channel is merely an encoding of all the different error modes of the circuit; there is yet no assignment of weight or likelihood attached to each mode. As the factor supports only classical information, a density operator must be of the form . So is the result of the noisy channel on where each error mode is selected with probability .
We want to treat the as formal variables, and so create a “circuit enumerator” that tracks the occurrence of each error mode. We can achieve that with a trace-like operation , as illustrated in Fig. 4b, by extended linearly to all density operators–compare to [9, Definition IV.2].
But, at the level of circuit tensors, we instead define Fourier variables , where, as above , and extend this trace to tensors, for which we do not introduce new notation, as
(119)
The link between the two above notions of trace is given as follows.
Proposition 34.
Let be quantum channels for , each with an asssociated variable . Define as in (116).
If as above, with we then have
(120)
Proof.
We apply the trace definition (119) to the circuit tensor as given in Lemma 33, yielding
(121)
∎
We can consider (120) as a definition for the circuit enumerator of the noisy circuit . However, to utilize the machinery developed in [9] we instead attach a weight function to an error model. Then the circuit enumerator is constructed analogously to the tensor enumerators of that work.
Definition 35(Circuit enumerator).
Let be an error basis. A weight function is any function . If is a tuple of indeterminates, we write . The circuit enumerator of an error channel (as in (116)) with associated weight function is defined by
(122)
We hasten to note that the trace on the left side of (122) is purely notational, but from (119) it is consistent with the trace used in the previous Proposition. We also note that our definition of a weight function differs from that in [9]; using the terminology of that paper, we only have need of scalar weight functions and so restrict to that case.
Example 36(Bit flip error).
We begin with a very simple classical error model: the bit flip error. We view the bit flip as a classical xor operation of an input bit with the bit that controls whether the error occurs, as illustrated in Fig. 5. In Example 21 we found , and so performing the trace (119) we find
(123)
From this equation, we can deduce the weight function of our error model: and . For purposes of enumerating bit-flip errors, we take weight variables (no bit-flip) and (one bit-flip), so that becomes the variable in the associated weight enumerator. Using the relationship and we have
(124)
Figure 5: Modeling a bit-flip on a (classical) measurement result. Here, is its weight enumerator variable.
Example 37(Pauli readout assignment error).
In Example 28, we found the circuit tensor for the projective measurement of a Pauli operator is given by . Now consider the quantum channel where this measurement may suffer from a readout assignment error. We compose the above circuit tensor with (124) to obtain the circuit weight enumerator of this channel:
(125)
Note: as indicates the occurrence of a readout assignment error, one sees that neither of terms nor can be associated with an assignment error, just as neither can be associated to measuring versus .
In the above, we had and related by the Fourier transform as implicitly we identified the error modes as elements of the integers modulo . However, in some cases, this is not what we want to do. For example, consider the (-ary) Pauli error channel , where . Here, we want our error modes to be a pair , which indexes our Pauli operators (except when where ).
Based on this recognition, we take classical error basis of to be . Recall that
(126)
where and . Then the circuit tensor of the Pauli error channel is
(127)
That is , and hence the trace has
(128)
Now, the relationship between our formal variables and the weight of a Pauli error is , the Fourier transform over .
In the case of a uniform Pauli error model, we take our weights as and when . In particular, our weight function is and for all . Then our Fourier transform reduces to
(129)
and for ,
(130)
This is of course the usual MacWilliams transform for quantum codes [14, 15]. Hence we have shown the following result.
Proposition 38(Circuit enumerator of a uniform Pauli error channel).
Let be the uniform (-ary) Pauli error channel, where no error occurs with weight and each nontrivial Pauli error occurs with weight . Then its circuit weight enumerator is
(131)
Example 39(State preparation error).
In Example 9 we found that the circuit tensor for preparing a state is given by (26): . A common model for state preparation error of a -qubit state is to apply the uniform Pauli error channel to the prepared state. That is, the noisy state preparation circuit is . Composing (26) and (131) gives
(132)
Example 40(A coherent error).
As a very simple example of a coherent error, consider the qubit error model that applies , with weight , or , , or , each with equal weight . Indexing our error channels in this order, from Example 15 we have
We will close out this section with an example of a noisy quantum teleportation. In Example 32 we have seen how the circuit tensor of a noise-less teleportation circuit (110) simplifies into the identity circuit tensor (35). Now, we will add noise sources to create the circuit enumerator and utilize it to calculate the complete error model.
Figure 6: Noisy teleportation circuit — represents a uniform Pauli error channel with as its formal weight vriable. is a classical bit-flip error channel with as its formal weight vriable. A classicaly controled error channel, is a noie less identity when the control bit is zero. See Fig. 3 for the noiseless teleportation circuit.
Example 41(Noisy teleportation circuit analysis).
Using the teleportation circuit given in Fig. 3 we will add the quantum errors in the following locations: Bell-State preparation with weight variable , CNOT gate with weight variable , and the two classically controlled Pauli operations with weight variable . To model the quantum noise, we add a uniform Pauli error channel after each location. We will also consider classical error sources, specifically a bit flip error in both measurements, with as their weight enumeration variable. To be more precise, after the state preparation we add a 2-qubit Pauli error channel, after the CNOT we add two 1-qubit error channels one on each output leg, the noise after the classical correction is also a 1-qubit Pauli error channel but it is only applied if the classical bit is one. The noisy teleportation circuit can be seen in Fig. 6.
The resulting circuit enumerator is:
(138)
where: , and
(139)
and
(140)
With these circuit enumerator coefficients, we can construct an error model for the overall circuit. In this case, as we only introduce Pauli error and utilize Clifford operations, the resulting error model will be a Pauli error model. We transform the coefficient above into probabilities that satisfy
(141)
Then from (35, 39-41) we construct a set of linear equations,
(142)
Solving these we get,
(143)
(144)
and
(145)
VII Poisson summation for stabilizer codes
In the previous section, we saw how various error models can be attached to circuit elements, which produce weight functions and circuit enumerators. Composing several such circuit elements together, these enumerators count, or when properly normalized compute the probability of, all error paths through the circuit. The principle of fault-tolerance is that an error mitigation strategy must also deal with errors that arise from applying error correction circuitry itself. To that end, we provide in this section a powerful computational tool for stabilizer codes akin to the Poisson Summation Formula.
Like Poisson summation, our formula arises through a duality of the convolution and pointwise product. However, in our case this duality is provided by the MacWilliams transform. Specifically, consider a Hilbert space of dimension , with error basis . Recall from [9, §VI], that given a weight function , an algebraic mapping is a MacWilliams transform for that weight function if
(146)
Example 42(Uniform Pauli errors).
Continuing from Proposition 38, consider the uniform Pauli error model. The weight function for this model that tracks whether a nontrivial error occurs:
(147)
As there, take for a tuple of indeterminates so that
(148)
For to be a MacWilliams transform for this weight function, equation (146) must hold. First taking in (146) we must have
(149)
On the other hand, if then on the left side of (146) we have , irrespective of . On the right side (146), when we have and hence contributes to the sum. Yet, as we sum , precisely one has , while two have . For example, if then , , and . So regardless of the sum of the three terms with contributes , and hence irrespective of we find
(150)
Therefore we find a unique MacWilliams transform given by
(151)
Given a tuple of weight functions, where each weight function takes values in , we define
(152)
Theorem 43(Poisson summation for stabilizer codes).
Let be a stabilizer code with stabilizer group and normalizer . Let and be scalar weight functions that have MacWilliams transforms and respectively. Then
(155)
and
(158)
Proof.
Starting with the left summand, we use (146) to write
The crux of the above argument is (VII) where we used the fact that is a bicharacter. Clearly, this extends to arbitrary finite products,
(162)
Then by applying the duality relations (160) and (161), we have thus proven the following extension of the theorem to arbitrary products.
Corollary 44(Generalized Poisson summation for stabilizer codes).
Let be a stabilizer code with stabilizer group and normalizer . Let be scalar weight functions with MacWilliams transforms respectively. Then
(165)
and
(168)
We can extend Theorem 43 in a different direction. Given a logical operator on our code we “twist” the left sum by introducing into the summand. As we show in the following result, this will allow us to count error paths whose product lies in the -coset of the stabilizer .
This corollary can also be extended to arbitrary products like in Corollary 44. We leave the details of this to the reader.
VIII Application to Fault-tolerance
The concept of quantum fault-tolerance addresses the issue that quantum operations designed to remove noise from a quantum computation are themselves noisy. Even for well designed circuits, only if the noise in these operations lies below some threshold can one guarantee that enough error correction will ultimately suppress errors and allow robust quantum computation. A critical part of this is understanding how errors accumulate circuits, with the potential of reducing the distance of the code [7, 28, 8, 29]. Such “hook” errors can, with a single error event, produce multiple errors in the domain of a logical operation and so reduce the effective distance that a code can detect.
In many cases hook errors are rare, and so while they may reduce the effective distance of the code, they may not have a large impact on the code’s error correction capability. By that same token, it is often challenging to identify when hook errors exist, how many there are, and their relative severity, particularly with Monte Carlo methods.
In this section, we show how to use circuit enumerators to analyze a syndrome extraction circuit for a stabilizer code, and provide quantitive examples for the perfect code [30] and the distance three and five rotated surface code [31, 32]. Namely, we will count and characterize the error paths that generate a normalizer or a stabilizer in the syndrome extraction circuit. This method enables the quantification of all hook errors within a specific syndrome extraction circuit, along with assessing their severity, under a specified error model.
To validate the method, we have also developed a simulation tool that enumerates all possible error combinations, up to weight 3 errors, and counts all the paths that lead to the same output state as the input state (up to a global phase). When performing this simulation with different logical input states , it tallies the error paths leading to a logical , along with those leading to a logical , , or , dependent on the initial input state. See Fig. 7 for an illustration of the simulated circuit.
Figure 7: An illustration of the simulated circuit used to verify the enumerators’ calculation result. For a distance 3 surface code, we initialize the 9 physical qubits to a logical state , then apply Pauli noise to those qubits, following are the noisy projective Pauli measurements () forming the syndrome extraction. We don’t illustrate the measurement results, as we ignore them during the simulation. Then we count the number of different error paths that output the original input state, which are exactly the number of error paths that generate a logical plus the number of error paths that generate a logical or depending whether is , , or .
The rest of this section is organized as follows: we start by developing the circuit tensor for a composition of noisy stabilizer measurements and using Theorem 43 (or more precisely Corollary 44) we show that its trace leads to the enumeration of all the error paths that generate a stabilizer. Next, we simplify the calculation and show how when using only a simple relation between the stabilizers and normalizers we can directly count the error paths that generate a stabilizer or a normalizer. Finally, we provide more information about our validation simulation framework.
Let be a stabilizer code with stabilizer group . From Example 28, the circuit tensor of projective measurement of stabilizer is:
(174)
where is supported only in the -th factor, and as in that example according to whether or .
A syndrome extraction circuit is a composition of stabilizer measurements. For example, the circuit tensor for two consecutive stabilizer measurements is given by:
(175)
Here, for simplicty we write and .
If we recursively perform the concatenation on all of the stabilizer measurements, we get the circuit tensor of the syndrome extraction circuit:
(176)
Above we write and when .
Recall that for a stabilizer code, the Shor-Laflamme -enumerator (15), when evaluated at the projection onto the code, counts the number of stabilizers at each weight. The following result shows that the trace of the circuit tensor of its syndrome extraction circuit composed with a Pauli error channel also performs this enumeration.
Proposition 46.
Let have stabilizer and to be the -qubit Pauli error channel. Then
Where the first part of the summation is for . Therefore, when we take the trace we take the trace and keep only the diagonal terms we get:
(180)
∎
Now we turn to the case where each operation in the circuit tensor of the syndrome extraction circuit (176) is noisy. In this work, we focus on a simple error model, where each syndrome measurement suffers from a uniform Pauli error on its support. Let us write , and the associated variables and weight function to be . We can develop the following for a single syndrome measurement:
(181)
By concatenating all the noisy syndrome measurements together with an initial decoherence channel, for which we specify , we get:
(182)
The derivation of (VIII) follows the same path as the derivation of (176) and the proof of Proposition 46.
Next, we will provide two examples (47) and (48) showcasing the steps needed to take starting from the stabilizers group to get the and enumerators. Rather than creating and tracing the appropriate circuit tensor, as suggested by Proposition 46, we will use Therom 43 and perform a simple weighted counting procedure. The noise model we will consider will be a decoherence channel before the syndrome extraction circuit, a Pauli error on the qubits that take part in a projective measurement, and Pauli idling errors for qubits outside the measurement.
To facilitate the enumeration we will use the following variables, weight functions, and MacWilliams transforms:
•
Initial decoherence channel will use the variable— , the weight function
(183)
and the MacWilliams transform of
(184)
•
Pauli errors on measured qubits for the stabilizer will use the variable— , the weight function
(185)
and the MacWilliams transform of
(186)
•
Pauli errors on the idling qubit during the measurement of stabilizer will use the variable — , the weight function
(187)
and the MacWilliams transform of
(188)
We would like to emphasize that this is a worst-case error model, where a single measurement error can affect all of the measured qubits.
Just to illustrate how to apply the weight functions (185) (• ‣ VIII), consider the Pauli string . This operator has support on the first four qubits, hence when we are to calculate the weight function on any Pauli string, we first choose the first four factors (the indexes that supports) and check if that is the identity . For example, for the Pauli string , the supported substring is hence .
In a similar vein, if measuring only the fifth qubit is idle, and so we can compute on a Pauli string by checking if its fifth factor is . For example, we get while .
Example 47(Analysis of a noisy syndrome extraction for the perfect code).
Let us consider the generating set of . Just as above, we can calculate the appropriate weight functions for each of the elements in the set. For example, for one can easily calculate have the following:
(189)
Performing a simple counting operation over all normalizers and stabilizers we get the following:
(190)
(191)
To get the analogues of the Shor-Laflamme enumerators and , we will follow Theorem 43 and use the MacWilliams transforms (184), (186), (188)) on the above expressions (47) and (47). Let and be the enumerators that count the paths leading to stabilizers (44) and normalizers (44) respectively.
For ease of presentation, we are showing the normalized unhomogenized result up to the third order:
(192)
(193)
We can further subtract from and get a count of all the error paths leading to a nontrivial logical error:
(194)
Example 48(Analysis of a noisy syndrome extraction for the distance 3 rotated surface code).
Let us consider the standard plaquettes in the distance 3 rotated surface code [31]:
(195)
Some of the plaquettes have 4 qubits while others have only 2, thus we want to distinguish between them in our enumeration. We will do that by using two different variables and . We will use the same counting variables and weight functions for the initial errors and the idling errors as in Example 47, while for the measurement errors, we have and as counting variables and the respective and weight functions.
Table I contains the (unhomogenized) monomials for 8 out of the 256 stabilizers. When summing over all the products of the stabilizers we get the following unhomogenized polynomial:
(196)
Following Therom 43 we can calculate the and enumerators. For ease of presentation, we are showing the normalized unhomogenized result up to the third order:
(197)
(198)
We can further subtract from and get a count of all the error paths leading to a nontrivial logical error:
(199)
When discarding any idling errors in (48) we have 144,336 error paths with 3 errors that lead to a logical . Using the observation in Corollary 45 we can calculate the error paths enumerators that lead to any specific logical error in the syndrome extraction circuit. For the logical or errors, the number of paths with 3 errors is 120,260 while for the logical the number is 95,880.
Stabilizer
product
TABLE I: The (unhomogenized) variables with their appropriate weight for the distance 3 rotated surface code. We show only 8 out of the 256 stabilizers
Next, we describe the simulation we used to validate the results of Example 48.
The noise model we considered in the simulation has two types of errors. The first is a Pauli error affecting one or more of the data qubits even before starting the syndrome extraction circuit. The second error is a post-measurement Pauli error, that is applied to one or more of the plaquettes. For example, in the 4-qubit plaquette, the possible errors are any four Pauli except . See Fig. 7 for the simulated circuit and more information about the counting.
To generate the logical zero state we initialized all of the data qubits to and then performed a noiseless syndrome extraction. Similarly, to generate the state we initialized all of the data qubits to before performing the noiseless syndrome extraction. Before running the syndrome extraction circuit with noise in different locations, we initialized the data qubits to one of the saved logical states.
In total, we considered 104,183,380 possible combinations of errors. The simulation time for each different initial state was about 1000 core hours. The circuit enumerator calculations took only a few seconds using Sage [33].
When initializing the data qubits to , we got 264,596 possible error paths, with 3 errors, that generate a logical or a logical . The same number of error paths was calculated when we initialized the data qubits to . These numbers align perfectly with those calculated in Example 48, as .
We conclude this section with the and enumerators for the distance five rotated surface code syndrome extraction circuit. In Example 48 we have shown how to efficiently calculate these enumerators for the distance 3 rotated surface code syndrome extraction circuit.
We will use the standard plaquettes of the distance five rotated surface code, as shown in Fig. 8. The generator group we use can be seen in Appendix A. The enumerators’ calculation for the distance five code follows the same path as presented in Example 48, resulting in the error paths enumerators below. We present the results up to degree 5.
Figure 8: Standard plaquettes of the distance five rotated surface code — The vertices represent the physical qubits, while the purple and pink patches represent and stabilizers respectively. The complete generator group can be found in Appendix A.
(200)
(201)
(202)
Executing the enumerators’ calculation required approximately 30 hours using our Sage code running on a single laptop CPU core. Given our current approach validation approach, conducting such a simulation would be unfeasible due to the necessity of considering 6,395,354,893,463,716 potential error paths.
IX Conclusions
In this paper, we presented a novel approach to analyze circuits and error models in the context of quantum error correction. By introducing the concept of circuit enumerators, we have extended the framework of tensor enumerators to address the specific challenges posed by fault-tolerant quantum circuits. We developed all the necessary machinery to analyze any quantum circuit. Our methodology offers a promising alternative to Monte Carlo techniques, providing an explicit means of analyzing circuits without sacrificing accuracy.
With the development of an analogue of the Poisson summation formula tailored for stabilizer codes, we have demonstrated the efficacy of our approach in rapidly enumerating error paths within syndrome extraction circuits. This advancement is particularly significant as it enables the exact computation of error probabilities, even for larger circuits and rare error events, where traditional computational methods become intractable.
The explicit counting of error paths in a distance five surface code serves as a great example of the utility and effectiveness of our approach. By showcasing scenarios previously deemed infeasible via simulation, we have highlighted the practical relevance of circuit enumerators in the realm of quantum error correction.
Looking forward, the development and usage of circuit enumerators hold promise for advancing the field of quantum computation. Future research may focus on using the methodology to tackle complex quantum circuits other than syndrome extractions. Furthermore, in our example, we ignored the syndrome measurement result, while there is value in taking that into account as well.
References
[1]
Peter W Shor.
Fault-tolerant quantum computation.
In Proceedings of 37th conference on foundations of computer
science, pages 56–65. IEEE, 1996.
[2]
Daniel Gottesman.
Theory of fault-tolerant quantum computation.
Physical Review A, 57(1):127, 1998.
[3]
John Preskill.
Fault-tolerant quantum computation.
In Introduction to quantum computation and information, pages
213–269. World Scientific, 1998.
[6]
David S Wang, Austin G Fowler, Ashley M Stephens, and Lloyd CL Hollenberg.
Threshold error rates for the toric and surface codes.
arXiv preprint arXiv:0905.0531, 2009.
[7]
Eric Dennis, Alexei Kitaev, Andrew Landahl, and John Preskill.
Topological quantum memory.
Journal of Mathematical Physics, 43(9):4452–4505, 2002.
[8]
Michael E Beverland, Shilin Huang, and Vadym Kliuchnikov.
Fault tolerance of stabilizer channels.
arXiv preprint arXiv:2401.12017, 2024.
[9]
ChunJun Cao and Brad Lackey.
Quantum weight enumerators and tensor networks.
IEEE Transactions on Information Theory, December 2023.
[10]
Emanuel Knill.
Group representations, error bases and quantum codes.
arXiv preprint quant-ph/9608049, 1996.
[12]
AA Klappenecker and M Rotteler.
Beyond stabilizer codes I. Nice error bases.
IEEE Transactions on Information Theory, 48(8):2392–2395,
2002.
[13]
Michael A. Nielsen and Isaac L. Chuang.
Quantum Computation and Quantum Information: 10th Anniversary
Edition.
Cambridge University Press, 2010.
[14]
Peter Shor and Raymond Laflamme.
Quantum analog of the MacWilliams identities for classical coding
theory.
Physical review letters, 78(8):1600, 1997.
[15]
Eric M Rains.
Quantum weight enumerators.
IEEE Transactions on Information Theory, 44(4):1388–1394,
1998.
[16]
Chuangqiang Hu, Shudi Yang, and Stephen S-T Yau.
Complete weight distributions and MacWilliams identities for
asymmetric quantum codes.
IEEE Access, 7:68404–68414, 2019.
[17]
Chuangqiang Hu, Shudi Yang, and Stephen S-T Yau.
Weight enumerators for nonbinary asymmetric quantum codes and their
applications.
Advances in Applied Mathematics, 121:102085, 2020.
[18]
Nicolas Delfosse and Adam Paetznick.
Spacetime codes of clifford circuits.
arXiv preprint arXiv:2304.05943, 2023.
[19]
J Ignacio Cirac, David Perez-Garcia, Norbert Schuch, and Frank Verstraete.
Matrix product states and projected entangled pair states: Concepts,
symmetries, theorems.
Reviews of Modern Physics, 93(4):045003, 2021.
[20]
Karol Życzkowski and Ingemar Bengtsson.
On duality between quantum maps and quantum states.
Open systems & information dynamics, 11(1):3–42, 2004.
[21]
Min Jiang, Shunlong Luo, and Shuangshuang Fu.
Channel-state duality.
Physical Review A, 87(2):022310, 2013.
[22]
David Gosset, Vadym Kliuchnikov, Michele Mosca, and Vincent Russo.
An algorithm for the t-count.
Quantum Info. Comput., 14(15–16):1261–1276, 2014.
[23]
Daniel Gottesman.
The Heisenberg Representation of Quantum Computers.
arXiv preprint quant-ph/9807006, 1998.
[24]
Man-Duen Choi.
Completely positive linear maps on complex matrices.
Linear algebra and its applications, 10(3):285–290, 1975.
[25]
Daniel Litinski.
A Game of Surface Codes: Large-Scale Quantum Computing
with Lattice Surgery.
Quantum, 3:128, 2019.
[26]
Adam Paetznick and Krysta M Svore.
Repeat-until-success: Non-deterministic decomposition of single-qubit
unitaries.
arXiv preprint arXiv:1311.1074, 2013.
[27]
Nathan Wiebe and Martin Roetteler.
Quantum arithmetic and numerical analysis using repeat-until-success
circuits.
arXiv preprint arXiv:1406.2040, 2014.
[28]
Craig Gidney.
A pair measurement surface code on pentagons.
Quantum, 7:1156, 2023.
[29]
Linnea Grans-Samuelsson, Ryan V Mishmash, David Aasen, Christina Knapp, Bela
Bauer, Brad Lackey, Marcus P da Silva, and Parsa Bonderson.
Improved pairwise measurement-based surface code.
arXiv preprint arXiv:2310.12981, 2023.
[30]
Charles H. Bennett, David P. DiVincenzo, John A. Smolin, and William K.
Wootters.
Mixed-state entanglement and quantum error correction.
Physical Review A, 54(5):3824–3851, November 1996.
[31]
Austin G. Fowler, Matteo Mariantoni, John M. Martinis, and Andrew N. Cleland.
Surface codes: Towards practical large-scale quantum computation.
Physical Review A, 86(3):032324, September 2012.
[32]
Rui Chao, Michael E Beverland, Nicolas Delfosse, and Jeongwan Haah.
Optimization of the surface code design for majorana-based qubits.
Quantum, 4:352, 2020.
[33]
The Sage Developers.
SageMath, the Sage Mathematics Software System
(Version 9.5), 2024.
https://www.sagemath.org.
Appendix A Stablizer Generator Group for the distance five rotated surface code
For the calculation of enumerators for the distance five rotated surface code we have used the following stabilizer generator group:
(203)
Appendix B Examples of circuit tensor for boolean operations
In this appendix, we provide more examples of circuit tensors for some primitive boolean operations that commonly appear in quantum fault-tolerance circuits.
In Example 21 we constructed the circuit tensor for the xor operation. Here we provide the construction for the and, or, and mux functions.
Example 49(And circuit tensor).
The operator of and is:
(204)
For it, we get the circuit tensor:
(205)
Or using a tensor basis
(206)
Example 50(Or circuit tensor).
The operator of or is:
(207)
For it, we get the circuit tensor:
(208)
Or using a tensor basis
(209)
Example 51(Mux circuit tensor).
The operator of mux is:
(210)
For it, we get the circuit tensor:
(211)
Or using a tensor basis
(212)
Appendix C Relation between process matrix and circuit tensor
In this work, we have constructed circuit tensors from the operator representation, or Choi-Kraus form, of a quantum channel. However, another popular representation of a quantum channel arises from its so-called process matrix (usually computed relative to the Pauli basis, but any error basis will suffice). In this appendix, we show that the process matrix of a quantum channel is related to the channel’s circuit tensor precisely by the quantum MacWilliams identity for tensor enumerators, [9].
Definition 52(Process matrix of a quantum channel).
Let be an error basis on a Hilbert space and a quantum channel. The process matrix of in the error basis is the matrix defined implicitly by .
Unlike in the case of Kraus operators, the process matrix associated with a quantum channel is unique and completely characterizes the channel. To see this, we extend linearly to all linear operators and then we could define the process matrix directly as .
Like the circuit tensor, we write the process matrix in an index-free form .
Note that the matrix is a Hermitian matrix: by definition
(213)
So by uniqueness of the process matrix, .
It is straightforward to compute the process matrix from a channel’s Kraus operators. Namely, if then we expand each Kraus operator as . Then substituting this expression gives
(214)
And hence we see . Conversely finding Kraus operators from the process matrix of a channel just is a matter of diagonalization.
Following [9], and akin to what appears in §VII, we define the quantum MacWilliams transform of an error basis to be the linear operator on matrices indexed by elements of given by
(215)
Then our version of the MacWilliams identity for quantum channels is as follows.
Theorem 53.
Let a quantum channel. Relative to some error basis , its circuit tensor and process matrix satisfy .
Proof.
Let be the process matrix of , and via diagonalization write . Then as above define Kraus operators . Finally, compute