<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Entanglement Purification with Quantum LDPC Codes and Iterative Decoding</title></titleStmt>
			<publicationStmt>
				<publisher>Quantum</publisher>
				<date>01/24/2024</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10494563</idno>
					<idno type="doi">10.22331/q-2024-01-24-1233</idno>
					<title level='j'>Quantum</title>
<idno>2521-327X</idno>
<biblScope unit="volume">8</biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Narayanan Rengaswamy</author><author>Nithin Raveendran</author><author>Ankur Raina</author><author>Bane Vasić</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[<p>Recent constructions of quantum low-density parity-check (QLDPC) codes provide optimal scaling of the number of logical qubits and the minimum distance in terms of the code length, thereby opening the door to fault-tolerant quantum systems with minimal resource overhead. However, the hardware path from nearest-neighbor-connection-based topological codes to long-range-interaction-demanding QLDPC codes is likely a challenging one. Given the practical difficulty in building a monolithic architecture for quantum systems, such as computers, based on optimal QLDPC codes, it is worth considering a distributed implementation of such codes over a network of interconnected medium-sized quantum processors. In such a setting, all syndrome measurements and logical operations must be performed through the use of high-fidelity shared entangled states between the processing nodes. Since probabilistic many-to-1 distillation schemes for purifying entanglement are inefficient, we investigate quantum error correction based entanglement purification in this work. Specifically, we employ QLDPC codes to distill GHZ states, as the resulting high-fidelity logical GHZ states can interact directly with the code used to perform distributed quantum computing (DQC), e.g. for fault-tolerant Steane syndrome extraction. This protocol is applicable beyond the application of DQC since entanglement distribution and purification is a quintessential task of any quantum network. We use the min-sum algorithm (MSA) based iterative decoder with a sequential schedule for distilling<math><mn>3</mn></math>-qubit GHZ states using a rate<math><mn>0.118</mn></math>family of lifted product QLDPC codes and obtain an input fidelity threshold of<math><mo>&#x2248;</mo><mn>0.7974</mn></math>under i.i.d. single-qubit depolarizing noise. This represents the best threshold for a yield of<math><mn>0.118</mn></math>for any GHZ purification protocol. Our results apply to larger size GHZ states as well, where we extend our technical result about a measurement property of<math><mn>3</mn></math>-qubit GHZ states to construct a scalable GHZ purification protocol.</p>]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>A DVANCES in quantum technologies are happening at a breathtaking pace and these will lead to exciting applications in quantum computing, networking, sensing, security, and more. Quantum networking is a common theme in all these applications, such as for employing quantum key distribution to enhance digital security, for connecting quantum sensors together to enable a quadratic gain in sensing precision, and for distributing quantum computation among multiple quantum processors to relax the burden of building enormous monolithic quantum computers. This work is primarily motivated by the latter role of quantum networking. Indeed, for fault-tolerant quantum computing (FTQC), the best codes for scalability are the recently proposed constructions of quantum low-density parity-check (QLDPC) codes <ref type="bibr">[1,</ref><ref type="bibr">2,</ref><ref type="bibr">3,</ref><ref type="bibr">4,</ref><ref type="bibr">5,</ref><ref type="bibr">6]</ref>. They provide optimal scaling of the code parameters, i.e., the number of logical qubits and the minimum distance, with respect to the length of the code, and thereby form promising candidates for FTQC with minimal resource overhead. While topological codes such as the surface code are also QLDPC codes, they encode only a fixed number of logical qubits even with diverging code size and have suboptimal scaling of the minimum distance. However, they just require nearestneighbor connections to build in hardware, whereas these optimal QLDPC codes require many long-range connections. Even though the LDPC property means that each stabilizer check involves only a fixed number of qubits and similarly each qubit is only involved in a fixed number of checks, both irrespective of the code size, there are a large number of connections between checks and qubits that are non-local geometrically <ref type="bibr">[7]</ref>. Thus, it becomes very challenging to build such codes in practice for several technologies such as superconducting qubits.</p><p>Given such practical constraints, it becomes very relevant and interesting to explore Distributed Quantum Computing (DQC): a distributed realization of these QLDPC codes where multiple interconnected medium-sized quantum processors each store a subset of qubits and coordinate processing through the means of a classical compute node. Naturally, this means that all the logical operations and syndrome measurements on the coded qubits are now non-local, i.e., must involve multiple nodes. Such an architecture was explored by Nickerson et al. <ref type="bibr">[8]</ref> even a decade ago, but in the context of the surface code. The solution to perform non-local operations is to share high-fidelity entangled Bell and GHZ states among the nodes, perform local gates between code qubits and these ancillary entangled qubits, and pool the classical measurement results across nodes to assess the state of the qubits. For example, in the case of the surface code with each node possessing only one code qubit, each 4-qubit syndrome measurement will involve one CNOT per node between the code qubit and one of the 4 qubits of an ancillary GHZ state shared between the nodes; this is followed by a single-qubit Pauli measurement on the ancillary qubit and classical communication of the result with other nodes. The authors proposed to produce high-fidelity 4-qubit GHZ states by generating Bell pairs between pairs of nodes and then "fusing" them to form the GHZ state. The process involved multiple rounds of simple probabilistic purification of the entangled state, which is in general inefficient since the number of consumed Bell pairs can be very large (and uncertain). While their handdesigned purification schemes have been extended by algorithmic procedures recently <ref type="bibr">[9,</ref><ref type="bibr">10]</ref>, the approach still suffers from this inefficiency arising from the heralded nature of the protocol. We will discuss comparisons to past work on GHZ purification after we present our results in the next section.</p><p>Our goal in this paper is to investigate a principled and systematic procedure to purify (or distill) GHZ states using quantum error correcting codes (QECCs). If one can use the same QLDPC codes that DQC will employ for FTQC ("compute code") to also store logical GHZ ancillary states, then these can potentially be directly interacted with the compute code for performing fault-tolerant (e.g., Steane) syndrome extraction and measurementbased methods for logical operations. Thus, it is very pertinent to develop a scalable GHZ purification protocol using these optimal QLDPC codes ("purification code"). While DQC is a key motivation, such a protocol serves a much wider purpose, since entanglement generation, distribution and purification form the cornerstone of quantum networking. For efficient and scalable quantum networks, one must necessarily deploy quantum repeaters whose primary function is to help entangle different subsets of parties in the network. In the long-run, third generation quantum repeaters will use quantum error correction for entanglement purification <ref type="bibr">[11]</ref>. Such repeater nodes, and other nodes of the network that are not quantum computers, will still need to possess a fault-tolerant quantum memory to generate and store (shares of) high-fidelity entangled states. Therefore, if the compute nodes will deploy QLDPC codes, then QLDPC purification codes could potentially unify the functioning of different parts of the network and enable seamless integration.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Main Results and Discussion</head><p>Entanglement purification is a well-studied problem in quantum information, where one typically starts with n copies of a noisy Bell pair, or a general mixed state, and distills k Bell pairs of higher fidelity <ref type="bibr">[12]</ref>. Several teams of researchers have worked on this problem, and the contributions range from fundamental limits <ref type="bibr">[12,</ref><ref type="bibr">13,</ref><ref type="bibr">14,</ref><ref type="bibr">15,</ref><ref type="bibr">16,</ref><ref type="bibr">17]</ref> to simple and practical protocols <ref type="bibr">[9,</ref><ref type="bibr">13,</ref><ref type="bibr">18,</ref><ref type="bibr">19]</ref>. Of course, if one can distill Bell pairs, then these can be "fused" in sequence to entangle multiple parties, but direct distillation of an entangled resource between all parties can be more efficient <ref type="bibr">[20]</ref>. Some purification schemes involve two-way communications between the involved parties while others only need one-way communication. We focus on one-way schemes in this paper. The connection between one-way entanglement purification protocols (1-EPPs) and QECCs was established by <ref type="bibr">Bennett et al. in 1996</ref>  <ref type="bibr">[13]</ref>. They showed that any QECC can be converted into a 1-EPP (and vice-versa). This framework enables systematic n-to-k protocols where the rate and average output fidelity are directly a function of the QECC rate and decoding performance, respectively. Since the recently constructed QLDPC codes have asymptotically constant rate and linear distance scaling with code size <ref type="bibr">[1,</ref><ref type="bibr">2,</ref><ref type="bibr">3,</ref><ref type="bibr">4,</ref><ref type="bibr">5,</ref><ref type="bibr">6]</ref>, our work paves the way for high-rate high-fidelity entanglement distillation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">Purifying Bell Pairs with QLDPC Codes</head><p>In 2007, Wilde et al. <ref type="bibr">[18]</ref> showed that any classical convolutional code can be used to distill Bell pairs via their entanglement assisted 1-EPP scheme. In the development of this scheme, they mention a potentially different method to use a QECC for performing 1-EPP <ref type="bibr">[18,</ref> Section II-D] (without entanglement assistance), compared to the protocol by Bennett et al. Initially, Alice generates n perfect Bell pairs locally, marks one qubit of each pair as 'A' and the other as 'B', and measures the stabilizers of her chosen <ref type="bibr">[[n, k]</ref>] code on qubits 'A'. Due to the "transpose" property of Bell states, this simultaneously projects qubits 'B' onto an equivalent code (see Appendix A.4). Then, she performs a local Pauli operation on qubits 'A' to fix her obtained syndrome, shares her code stabilizers and syndrome with Bob through a noiseless classical channel, and sends qubits 'B' to Bob over a noisy Pauli channel. Using the transpose property, Bob measures the appropriate code stabilizers on qubits 'B', and corrects channel errors by combining his syndrome with  The performance of a family of lifted product QLDPC codes with asymptotic rate 0.118 using the sequential schedule of the min-sum algorithm (MSA) based decoder. Each data point is obtained by counting 100 logical errors. (bottom) The threshold is about 10.6-10.7%. These results apply to Bell pair purification, up to a rescaling of the depolarizing probabilities.</p><p>Alice's syndrome. Finally, Alice and Bob decode their respective qubits, i.e., invert the encoding unitary (see Appendix A.2), to convert the k logical Bell pairs into k physical Bell pairs. Since the code corrects some errors, on average the output Bell pairs are of higher fidelity than the initial n noisy ones.</p><p>As our first contribution, we elucidate this protocol for general stabilizer codes <ref type="bibr">[21,</ref><ref type="bibr">22]</ref> through the lens of the stabilizer formalism <ref type="bibr">[23]</ref>, using the 5-qubit perfect code <ref type="bibr">[21,</ref><ref type="bibr">24]</ref> as an example. This approach clarifies many details of the protocol, especially from an error correction standpoint, and helps adapt it to different scenarios. For the performance of the protocol, note that any error on Alice's qubits can be mapped into an equivalent error on Bob's qubits using the transpose property, in effect increasing the error rate on Bob's qubits. Therefore, since only Bob corrects errors in this protocol, the failure rate of the protocol is the same as the logical error rate (LER) of the code on the depolarizing channel, with an effective channel error rate that accounts for errors on Alice's qubits as well as Bob's qubits (as long as they do not amount to a Bell state stabilizer together). If errors only happen on Bob's qubits, then the failure rate of the protocol is identical to the logical error rate of the code. For all simulations in this work, we consider a rate 0.118 family of lifted product (LP118) QLDPC codes decoded using the sequential schedule of the min-sum algorithm (MSA) based iterative decoder with normalization factor 0.8 and maximum number of iterations set to 100 <ref type="bibr">[25,</ref><ref type="bibr">26]</ref>. The LER of this code-decoder pair is shown in Fig. <ref type="figure">1</ref>, where we see that the threshold is about 10.6-10.7%. Since the fidelity is one minus the depolarizing probability, this translates to an input fidelity threshold of about 89.3-89.4%. Also, even with n = 544, the LER is &#8776; 10 -6 at depolarizing rate 10 -2 . Again, note that these curves can be interpreted as the performance of Bell pair purification when only Bob's qubits are affected by errors.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2">New Protocols to Purify GHZ States with QLDPC Codes</head><p>Protocol I: Given these insights, we proceed to investigate the purification of GHZ states. As in the Wilde et al. protocol, we consider only local operations and one-way classical communications (LOCC), and assume that these are noiseless. The key technical insight necessary to construct the protocol is the GHZ-equivalent of the transpose property of Bell pairs. Given n copies of the GHZ state, whose three subsystems are marked 'A', 'B' and 'C', we find that applying a matrix on qubits 'A' is equivalent to applying a "stretched" version of the matrix on qubits 'B' and 'C' together (see <ref type="bibr">Lemma 3)</ref>. We call this mapping to the stretched version of the matrix the GHZ-map, and prove that it is an algebra homomorphism <ref type="bibr">[27]</ref>, i.e., linear, multiplicative, and hence projector-preserving. Recollect from the Bell pair purification setting that we are interested in measuring stabilizers on qubits 'A' and understanding their effect on the remaining qubits. Using the properties of the GHZ-map, we show that it suffices to consider only the simple case of a single stabilizer. With this great simplification, we prove that imposing a given <ref type="bibr">[[n, k, d]</ref>] stabilizer code on qubits 'A' simultaneously imposes a certain [[2n, k, d &#8242; ]] stabilizer code jointly on qubits 'B' and 'C'. By performing diagonal Clifford operations on qubits 'C', which commutes with any operations on the other qubits, one can vary the distance d &#8242; of the induced 'BC' code. Then, we use this core technical result to devise a natural protocol that purifies GHZ states using any stabilizer code ("Protocol I", see Fig. <ref type="figure">2</ref> and Algorithm 2).</p><p>We perform simulations on the [ <ref type="bibr">[5,</ref><ref type="bibr">1,</ref><ref type="bibr">3]</ref>] perfect code and compare the protocol failure rate to the LER of the code on the depolarizing channel, both using a maximum-likelihood decoder. In terms of error exponents, we show that it is always better for Bob to perform a local diagonal Clifford operation on Charlie's qubits, rather than Alice doing the same. We support the empirical observation with an analytical argument on the induced BC code</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Channel</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Channel</head><p>Figure <ref type="figure">2</ref>: Protocol I for GHZ purification using stabilizer codes. Alice generates n copies of the ideal 3-qubit GHZ state and marks one qubit of each triple as 'A', another as 'B', and the third as 'C'. She measures the stabilizers of the code on the n qubits marked 'A' and classically communicates the results through a noiseless channel to Bob. She also sends all the remaining 2n qubits to him. First, Bob uses the "GHZ-map" to measure stabilizers of the 2n-qubit code induced by Alice's code and uses the results to correct errors on qubits 'B' and 'C'. Second, if the code is not CSS, then he performs a suitable diagonal Clifford U C on qubits 'C'. Thirdly, he measures the stabilizers of Alice's n-qubit code on qubits 'B' in order to impose the same code on qubits 'B' and 'C'. Lastly, he communicates the results to Charlie over a noiseless channel and also sends qubits 'C' to him. Charlie measures the stabilizers of Alice's code to detect and correct errors on qubits 'C'. Finally, all three parties invert the encoding to convert the logical GHZ states to physical GHZ states. The scheme is suited for a linear network of three parties, but notice the asymmetrically larger burden on Bob, which makes the protocol less scalable to larger GHZ states.</p><p>and Charlie's code. Finally, we finish by showing that the average output k-qubit density matrix of the protocol is diagonal in the GHZ-basis, and its fidelity is directly dictated by the protocol's failure rate. While the scheme is suited for a linear network of three parties, it is obvious that there is an asymmetrically larger burden on Bob, which makes the protocol less scalable to larger GHZ states. Nevertheless, we think that this protocol still has pedagogical value in understanding the implications of the new insight on GHZ states.</p><p>Protocol II: Motivated by this drawback, we devise an improved protocol that avoids the additional 2n-qubit measurements of Protocol I. The new scheme is depicted in Fig. <ref type="figure">3</ref> and described in Algorithm 4 for CSS codes. The protocol can be extended to general stabilizer codes through additional diagonal Clifford operations as in Protocol I but, for simplicity, we focus on CSS (QLDPC) codes here. It will also be interesting to investigate if there are any potential gains from employing non-CSS stabilizer codes in entanglement purification, because CSS codes are known to be optimal for certain aspects of fault-tolerant quantum computing <ref type="bibr">[28]</ref>. When Alice measures stabilizers on qubits 'A', the new GHZ property still implies that there is a 2n-qubit code automatically induced on qubits 'B' and 'C' together. In order to split that code into individual codes on qubits 'B' and 'C', Alice performs a second round of the same (n-qubit) stabilizer measurements but this time on qubits 'B'. This enables Bob and Charlie to measure the same stabilizers on their respective qubits and correct errors induced by the channel on qubits 'B' and 'C', respectively. The flow of the protocol is naturally applicable when Alice is connected to both Bob and Charlie but those two parties are not connected directly. But we emphasize that the protocol is scalable and we summarize its extension to larger GHZ states with larger number of parties connected by any network topology; the key requirement is that the qubits of a recipient over a network edge have already been measured and projected to the code subspace before those qubits are sent over the edge.</p><p>In Fig. <ref type="figure">4</ref> we report simulation results for Protocol II on 3-qubit GHZ states using the same LP118 code family and MSA decoder as in Fig. <ref type="figure">1</ref>. All data points except the first one on each curve (for depolarizing rate 0.09) were computed by collecting close to 10 4 logical errors. We observe that the threshold (&#8776; 10.7%) is very close to the single decoder case in Fig. <ref type="figure">1</ref>, which is reassuring since the GHZ protocol needs both Bob and Charlie to run decoders. In terms of fidelity, unlike the Bell pair case, two qubits of each GHZ state (i.e., those marked 'B' and 'C') undergo depolarizing noise, so the input fidelity threshold is (1 -p) 2 &#8776; 0.7974 where p &#8776; 10.7%. Note that this is for a yield of 0.118, which is the asymptotic rate of the LP118 QLDPC code family. Technically, one must multiply the code rate with one minus the protocol failure rate to get the exact yield, but we assume that in practice we operate well away from the threshold where failure rates are orders of magnitude smaller (see Fig. <ref type="figure">1</ref> for reference). However, the logical error rates are significantly higher than those in Fig. <ref type="figure">1</ref>. This is likely due to the fact that both decoders must succeed for the protocol to not fail. Note that there can be situations where an error on Alice's qubit cancels the errors on Bob's and Charlie's due to the new GHZ property. But it is unclear whether these have a significant effect on the protocol performance. We plan to study this carefully in future work because it is undesirable for failure rates to increase as we scale the protocol to larger number of parties.</p><p>The implementation of our protocol is available on GitHub and archived on Zenodo <ref type="bibr">[29]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Charlie</head><p>Alice</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Channel</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>R C</head><p>Figure <ref type="figure">3</ref>: Protocol II for GHZ purification using CSS codes. The protocol can be extended to general stabilizer codes through additional diagonal Clifford operations as in Protocol I. Alice generates n copies of the ideal 3-qubit GHZ state and marks one qubit of each triple as 'A', another as 'B', and the third as 'C'. She measures the stabilizers of the QLDPC code on qubits 'A' and classically communicates the results through a noiseless channel to Charlie. She also uses the results to appropriately measure stabilizers of (a potentially equivalent) QLDPC code on qubits 'B' and communicates these results to both Bob and Charlie, again through noiseless classical channels. She sends qubits 'B' to Bob and qubits 'C' to Charlie. Finally, both Bob and Charlie make stabilizer measurements, correct errors, and then all three parties invert the encoding to convert the logical GHZ states to physical GHZ states.</p><p>Note that Bob and Charlie can perform their operations asynchronously.  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3">Discussion and Connections to Existing GHZ Purification Protocols</head><p>We are interested in comparing our protocols to past work on GHZ purification to judge the effectiveness of our work. However, based on our knowledge of the literature and the differences in the settings of purification protocols, this appears to be challenging and is likely a work on its own. Nevertheless, let us address this in some detail here. In the process, we will make comparisons and show that our protocol has the best fidelity threshold for 3-GHZ purification at a yield of 0.118.</p><p>1. Most protocols in the literature with numerical results perform heralded purification where both the protocol success probability and the output fidelity are not ideal. In our error correction based protocol, as long as the decoder succeeds in correcting the error, we always obtain k perfect entangled states as the output (assuming perfect local operations and classical communication). It then seems natural to model this setting as another probabilistic protocol, conditioned on the probability of successful decoding, but with unit output fidelity, ignoring for now the additional fact that k k 1 in our case whereas k = 1 in most of the literature. However, this is not quite true since (iterative) decoder success does not come with a heralding signal.</p><p>In general, there are three possible scenarios: the decoder succeeds in correcting the error, the decoder miscorrects the error (i.e., causes a logical error), or the decoder reaches the maximum number of iterations and returns a failure. In the first two cases, the decoder does find an estimated error pattern that matches the syndrome obtained from stabilizer measurements, whereas in the last case, the decoder is unable to even find an error pattern matching the syndrome. It is clear that this last case heralds a failure, but there is no way to distinguish the first two scenarios. Let us mention here that in the particular case of the Lifted Product family of codes that we consider, most of the protocol failure events are due to the decoder declaring a failure (i.e., the third case above) and not due to miscorrections. However, this is only a preliminary observation that we are investigating in more detail. If we are able to design good codes for this iterative decoder where decoding success can be heralded, then we can model the protocol similar to other existing non-error-correction-based protocols. Currently, this is an important bottleneck that hinders making a fair and useful comparison with existing protocols.</p><p>2. Note that if the middle case (i.e., miscorrections) happens with non-negligible probability, then there are two ways to model the protocol: either the output fidelity is always unity and the success probability is dictated by the decoding success rate, or the protocol always succeeds whenever decoder doesn't declare failure (i.e., the third case) but the output fidelity is non-trivial and dictated by a mixed state accounting for all possible logical errors arising out of miscorrections. The former seems more straightforward and especially appropriate if miscorrections hardly occur, but this is another modeling decision that we must make when using error correction for purification.</p><p>It is interesting to note that Chau and Ho <ref type="bibr">[30]</ref> have thought about the case of an iterative decoding failure for quantum LDPC codes. The paper is about purifying Bell pairs by concatenating recurrence with an outer QLDPC code rather than hashing, since it is more practical. The authors use the final bitwise posterior probabilities of the iterative decoder to find an appropriate unencoding circuit, at the end of which they can throw away some Bell pairs with confidence that the decoding failure most likely only affected them. They only provide one QLDPC code as an example, but the method seems quite computationally challenging because this must happen in runtime. Since they do not consider a code family, there is no relevant threshold for their protocol and their work is restricted to Bell pairs.</p><p>3. Hashing was introduced by Bennett et al. in their seminal paper <ref type="bibr">[13]</ref> and it has become the go-to tool for obtaining finite yield (i.e., ratio of number of purified output states to noisy input states) from a mixture of imperfect noisy entangled states. The threshold input fidelity for purifying Werner (Bell) states through hashing is about 0.8107. By first performing recurrence and then feeding the output into hashing brings the threshold down to 0.5. However, recurrence needs two-way communication and has zero yield by itself, whereas hashing needs one-way communication but infinite copies to produce finite yield. Since hashing effectively depends on random codes, it is impractical because decoding random linear codes is NP-complete <ref type="bibr">[31,</ref><ref type="bibr">32]</ref>.</p><p>4. Nevertheless, hashing has been extended to multipartite states such as GHZ states, first by Maneva and Smolin <ref type="bibr">[33]</ref>. They extract entropy from the bits representing the signs of the different stabilizers of multiple copies of the multipartite entangled state. For Werner-type 3-qubit GHZ states, their threshold is effectively about 0.8075. If we equate their yield to the rate of the Lifted Product quantum LDPC code family that we use in our simulations, which is about 0.118 asymptotically, then the threshold fidelity of the Maneva-Smolin protocol is 0.8401. In our setting, where each 'B' and 'C' qubit of each GHZ state goes through an i.i.d. depolarizing noise channel, the resulting state is diagonal in the GHZ basis but not exactly of Werner type. Nevertheless, the fidelity for the noisy state is simply given by the probability that both qubits are not affected by noise, i.e., (1 -p) 2 if p is the depolarizing rate. Using this, our threshold of 10.7% for 3-qubit GHZ purification maps to a fidelity threshold of about 0.7974, which is very encouraging. Note that both hashing and our protocol assume ideal LOCC. In fact, the Maneva-Smolin protocol appears to need several rounds of hashing-style broadcast, whereas our protocol only needs one-way communication, devoid of randomness.</p><p>5. In <ref type="bibr">[34]</ref>, Ho and Chau generalize the Maneva-Smolin protocol for multipartite entanglement purification and produce three new protocols, based on concatenating inner repetition codes with outer random hashing codes. For the case of three-qubit GHZ states, their best protocol has a fidelity threshold of 0.7074 (assuming an inner repetition code of length 15). If we look at Figure <ref type="figure">4</ref> of this paper, which plots fidelity against yield for different size GHZ states for their best protocol, the curve for repetition length 7 (the maximum that they consider in the plot) produces a yield of 0.118 (the asymptotic rate of our QLDPC code family) only far above input fidelity of 0.95. These are the best thresholds that we could find for purifying GHZ states. A recent paper on GHZ purification <ref type="bibr">[35]</ref> also uses the Maneva-Smolin protocol as their reference, so our judgment appears to be justified.</p><p>It is encouraging to see that the same authors, Ho and Chau, were the ones who showed the use of a degenerate quantum (LDPC) code to purify Bell pairs as mentioned in point 2) above. Besides, such hashing based methods are not resilient to noise unless implemented in a measurement-based way <ref type="bibr">[36]</ref>, which itself needs preparations of highly entangled cluster states. Therefore, our new protocol with good QLDPC codes serves as the state-of-the-art for purifying GHZ states.</p><p>6. Most existing protocols based on recurrence or hashing or other related methods involve deep circuits that appear to require interactions between arbitrary pairs of qubits. This is extremely challenging in a fault-tolerant setting. However, when our protocol is used in conjunction with good quantum LDPC codes, the circuits are deterministic as they only involve stabilizer measurements, and stabilizers are low-weight due to the LDPC property. Therefore, these are much more conducive to fault-tolerant entanglement purification in quantum networks.</p><p>7. In recent protocols on purifying GHZ states, such as in <ref type="bibr">[10]</ref>, the setting is to use Bell pairs that are purified and fused to form one GHZ state. The performance curves plot input fidelity of each Bell pair versus output fidelity of the single purified GHZ state. We think that our setting is quite different, once again because our output fidelity is ideal conditioned on decoder success, but also because we do not use Bell pairs as inputs. Even this particular work only compares their results with that of a single past work, which is that of Nickerson et al. <ref type="bibr">[8]</ref> where they adopt a similar approach.</p><p>Other works, such as <ref type="bibr">[9]</ref>, consider Bell pair purification using optimized protocols under the practical setting where the purification circuits are imperfect and noisy. We emphasize that our error correction based approach potentially offers fault tolerance but our current setting introduces noise only in the quantum communication channel and assumes perfect local operations. We leave the investigation of a fully faulttolerant setting for our protocol to future work.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.4">Decoding QLDPC Codes under Realistic Noise Models</head><p>While our main results are relevant to the "code capacity" error model, where there are only qubit errors and all operations are assumed noiseless, in a separate work a subset of the authors considered decoding this family of QLDPC codes under a "phenomenological" noise model, i.e., with an additional (classical) error model on the syndromes <ref type="bibr">[26]</ref>. In that setting, motivated by practical situations, the syndromes extracted from a measurement circuit are assumed to have an additional random Gaussian noise, thereby yielding "soft" syndromes. It was shown then that the MSA decoder can be modified appropriately such that the decoding performance is almost as good as the above ideal syndrome scenario. Therefore, by reinterpreting that work in the context of entanglement purification, we highlight that the protocol can be applied to more realistic settings as well.</p><p>Since we are constructing a new GHZ purification protocol based on this new insight about GHZ states, we have considered this simple model of noiseless LOCC and noisy qubit communications. We emphasize here that, to the best of our knowledge, this is the first protocol to use quantum error correction for purifying GHZ states, and we also report simulation results of state-of-the-art QLDPC codes with an efficient iterative decoder. Moreover, by comparison to past works, we have shown that our scheme has the best fidelity threshold of 0.7974 for i.i.d. single-qubit depolarizing noise, at a yield of 0.118. While the problem of noisy local operations is important and has received attention <ref type="bibr">[8,</ref><ref type="bibr">9,</ref><ref type="bibr">15,</ref><ref type="bibr">37]</ref>, we leave this to future work.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.5">Purification-Inspired Algorithm to Generate Logical Pauli Operators</head><p>In the process, inspired by stabilizer measurements on Bell/GHZ states, we have developed a new algorithm to generate logical Pauli operators for any stabilizer code (see Algorithm 3 and its explanation in Appendix D.2). The core idea is to first simulate the generation on n Bell/GHZ states by creating a table of their 2n stabilizers. It turns out that we only need the ZZI-and XXX-type stabilizers for the GHZ case, which is why we ignore the n IZZ-type stabilizers. Then we simulate the measurement of each code stabilizer on qubits 'A' using the stabilizer formalism. At the end of this process, it can be shown that the non-code-stabilizer rows in the table must be a combination of logical Pauli operators on multiple subsystems. Finally, we carefully identify the logical Pauli operators on qubits 'A' and return those as the desired operators on the given code.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Notation and Background</head><p>The Pauli group on n qubits is denoted by P n . We denote Pauli matrices I, X, Y, Z and their tensor products using the notation E(a, b), where a, b &#8712; {0, 1} n denote respectively the X-and Z-components of the n-qubit Pauli operator. The weight of a Pauli operator is the number of qubits on which it acts nontrivially (i.e., does not apply I). For example, A stabilizer group S is generated by commuting Pauli operators</p><p>where k = n -r. The logical Pauli operators of the code commute with all stabilizers but do not belong to S, and their minimum weight is d. The code is completely defined by its stabilizers and logical operators, or equivalently by an encoding circuit U Enc (S). The projector onto the code subspace is given by</p><p>A CSS (Calderbank-Shor-Steane) code is a special type of stabilizer code for which there exists a set of stabilizer generators such that each generator is purely X-type, i.e., of the form E(a i , 0), or purely Z-type, i.e., of the form E(0, b j ). Such a code can be described by a pair of classical binary linear codes C X and C Z , where the rows of the parity-check matrix H X (resp. H Z ) for C X (resp. C Z ) are a i &#8712; {0, 1} n (resp. b j &#8712; {0, 1} n ). Since E(a i , 0) and E(0, b j ) must commute, the symplectic inner product constraint leads to the condition a i b T j = 0 for all i, j or, equivalently, H X H T Z = 0. A quantum (CSS) low-density parity-check (QLDPC) code is described by a pair (C X , C Z ) of classical LDPC codes, which implies that H X and H Z are sparse, i.e., each stabilizer involves few qubits and each qubit is involved in few stabilizers. It is very challenging to construct good QLDPC codes due to the constraint H X H T Z = 0 on two sparse matrices, but recent exciting work has developed optimal QLDPC codes where k and d scale linearly with n <ref type="bibr">[1,</ref><ref type="bibr">2,</ref><ref type="bibr">3,</ref><ref type="bibr">4,</ref><ref type="bibr">5,</ref><ref type="bibr">6]</ref>. For our simulations, we chose a specific family of lifted product QLDPC codes from <ref type="bibr">[25,</ref> Table <ref type="table">II</ref>] that have asymptotic rate k/n = 0.118. To decode these codes, we use the computationally efficient min-sum algorithm (MSA) based iterative decoder under the sequential schedule <ref type="bibr">[38,</ref><ref type="bibr">39]</ref>, with a normalization factor of 0.8 and maximum number of iterations set to 100 (also see the description in <ref type="bibr">[25]</ref>).</p><p>A stabilizer state corresponds to a code with dimension k = 0, and can equivalently be represented by a maximal stabilizer group, i.e., with r = n. Any Pauli measurement on the state can be simulated by a well-defined set of rules to update this stabilizer group. These rules are given by the stabilizer formalism for measurements <ref type="bibr">[23,</ref><ref type="bibr">40]</ref>.</p><p>For any matrix M , the Bell state</p><p>This property extends to n copies of the Bell state as well. When M is a projector, which is the case when we perform stabilizer measurements</p><p>Figure <ref type="figure">5</ref>: The QEC-based entanglement distillation protocol of Wilde et al. <ref type="bibr">[18]</ref>. Figure adapted from <ref type="bibr">[18]</ref>.</p><p>on qubits 'A', i.e., M = &#928; S , using the fact that M 2 = M we conclude from the above property that projecting qubits 'A' automatically projects qubits 'B' as well according to M T . Therefore, imposing a code on qubits 'A' simultaneously imposes the "transpose" code on qubits 'B'.</p><p>A more detailed discussion of these background concepts can be found in Appendix A.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Revisiting the Bell Pair Distillation Protocol</head><p>In Ref. <ref type="bibr">[18]</ref>, Wilde et al. described a protocol to distill Bell pairs using an arbitrary quantum stabilizer code. We reiterate this protocol here and provide more clarity on the reasons behind its working. Then, in the next section, we will generalize this protocol to distill GHZ states, i.e., the &#8467;-qubit</p><p>Initially, Alice generates n copies of the Bell state &#934; + (n "ebits"), rearranges the qubits as described above, and sends Bob's set of n qubits to him over a noisy channel. It is not necessary that Alice must prepare Bell pairs locally and then transmit half the qubits to Bob. Indeed, the protocol is applicable as long as Alice and Bob share some initial (noisy) Bell pairs. Then, Alice measures the stabilizers of a quantum stabilizer code defined by S = &#239;&#949; i E(a i , b i ); i = 1, . . . , r&#240; on her qubits, with &#949; i = &#177;1. Let her measurement results be (-1) m i , m i &#8712; {0, 1}. This projects her qubits onto the codespace fixed by the stabilizers</p><p>Alice applies some suitable Pauli "correction" to bring her qubits back to the code subspace Q(S) (rather than Q(S &#8242; )), if that is the code she desires to use. She classically communicates the chosen stabilizers, S, the measurements {m i } r i=1 , and the Pauli correction to Bob. Although we use the term "correction", there is really no error on Alice's qubits. Instead, the terminology is used to indicate that Alice brings the qubits to her desired code space. Furthermore, even if there is some error on Alice's qubits, one can map it to an equivalent error on Bob's qubits using the Bell state matrix identity.</p><p>Note that the authors of Ref. <ref type="bibr">[18]</ref> do not explicitly mention that the Pauli correction needs to be communicated, but it could be necessary in situations where Alice's and Bob's decoders are not identical or have some randomness embedded in them. For the code,  </p><p>) combines the syndrome information from Alice as well as his measurements and interprets using Section A.4, 11 (c) performs necessary Pauli corrections on his qubits to bring them to the code space of Q(S).</p><p>12 <ref type="bibr">13</ref> If the channel error was correctable, pairs of logical qubits of Alice's and Bob's codes form k Bell states 14 // If channel error was NOT correctable, some pair of logical qubits form a Bell state with an unknown Pauli error 15 Alice and Bob respectively apply the inverse of the encoding unitary for their code on their n qubits 16 // The encoding unitary is determined by the logical Pauli operators for Q(S) obtained from Algorithm 3 though any appropriate definition of logical Pauli generators works with the protocol, we employ Algorithm 3 to obtain generators that are "compatible" with our way of analyzing the protocol (using the stabilizer formalism). This phenomenon will become more clear after the <ref type="bibr">[[5, 1, 3]</ref>] code example in this section. While the algorithm simulates measurements on GHZ states to define logical Paulis, an equivalent algorithm can be constructed that only simulates Bell measurements.</p><p>Remark 1. In this protocol, whenever the syndrome of Alice is non-trivial, i.e., at least one m i equals 1, she can either perform a Pauli correction or just define her code to be Q(S &#8242; ) and not perform any correction. If the protocol is defined so that she always does the latter, as depicted in Fig. <ref type="figure">5</ref> where there is no 'Recovery' block on Alice's qubits, then Bob can adjust his processing accordingly based on the syndrome information from Alice.</p><p>Without loss of generality, we can assume that Alice sends Bob's qubits to him only after performing her measurements and any Pauli correction. So, the channel applies a Pauli error only after Bob's qubits got projected according to</p><p>. . , r&#240;. Now, Bob measures the stabilizers &#949; i E(a i , b i ) and applies corrections on his qubits using his syndromes as well as Alice's syndromes (and the Bell matrix identity, which in particular involves the transpose). This projects his qubits to the same codespace as Alice. Finally, Alice and Bob locally apply the inverse of the encoding unitary for their code, U Enc (S) . If Bob's correction was successful, this converts the k logical Bell pairs into k physical Bell pairs that are, on average, of higher quality than the n noisy Bell pairs initially shared between them. This protocol is shown in Figure <ref type="figure">5</ref> and summarized in Algorithm 1.</p><p>While the steps of the protocol are clear, it is worth considering why the logical qubits of Alice and Bob must be k copies of the Bell pair, assuming all errors were corrected successfully. To get some intuition, let us quickly consider the example of the 3-qubit bit-flip code defined by S = &#239;ZZI, IZZ&#240;. According to (58), the projector onto Q(S) is</p><p>. The encoding unitary, as described in Appendix A.2, is U Enc = CNOT 1&#8594;2 CNOT 1&#8594;3 . Since Z T = Z, Alice's measurements will project Bob's qubits onto the same code subspace as her's. For convenience, assume that Alice obtains the trivial syndrome (+1, +1) and that the channel does not introduce any error. Then, according to (65), the resulting (unnormalized) state after Alice's measurements is (&#928; S &#185; &#928; S ) &#934; + 3 . Consider the action of (I 8 + ZZI) on a computational basis state |x&#240; , x = [x 1 , x 2 , x 3 ]:</p><p>Hence, after the action of (&#928; S &#185; &#928; S ) and inversion of the encoding unitary by Alice and Bob, we obtain</p><p>Thus, the output is a single Bell pair and ancillary qubits on Alice and Bob. In Appendix B, we show this phenomenon for arbitrary CSS codes by generalizing the state vector approach used above.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Bell Pair Distillation using the 5-Qubit Code</head><p>In the remainder of this section, with the [ <ref type="bibr">[5,</ref><ref type="bibr">1,</ref><ref type="bibr">3]</ref>] code <ref type="bibr">[13,</ref><ref type="bibr">24]</ref> as an example, we use the stabilizer formalism to show that the above phenomenon is true for any stabilizer code.</p><p>Recall that this code is defined by</p><p>As described in Appendix A.2, the corresponding binary stabilizer matrix is given by</p><p>Initially, Alice starts with 5 copies of the standard Bell state &#934; + &#185;5 , and marks one qubit of each copy as Bob's. She does not yet send Bob's qubits to him. The stabilizer group for this joint state of 5 "ebits" (or "EPR pairs") is</p><p>where e i &#8712; F 5 2 is the standard basis vector with a 1 in position i and zeros elsewhere, 0 &#8712; F 5  2 is the all-zeros vector, and the X-and Z-components in the E(a, b) notation have been split into Alice's qubits and Bob's qubits. Observe that this is a maximal stabilizer group on 10 qubits and hence, there are no non-trivial logical operators associated with this group, i.e., the normalizer of E 5 in P 10 is itself.</p><p>It will be convenient to adopt a tabular format for these generators, where the first column of each row gives the sign of the generator, the next two columns give the Xcomponents of Alice and Bob in that generator, the subsequent two columns give the Z-components of Alice and Bob in that generator, and the last column gives the Pauli representation of that generator for clarity. Hence, the above generators are written as follows.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Sign</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>X-Components Z-Components Pauli Representation</head><p>Table <ref type="table">1</ref>: Steps of the Bell-pair distillation protocol based on the [ <ref type="bibr">[5,</ref><ref type="bibr">1,</ref><ref type="bibr">3]</ref>] code. Any '0' that is not part of a string represents 00000, and e i &#8712; F 5 2 is the standard basis vector with a 1 in the i-th position and zeros elsewhere. Code stabilizers are typeset in boldface. An additional left arrow indicates which row is being replaced with a code stabilizer, i.e., the first row that anticommutes with the stabilizer. Other updated rows are highlighted in gray. Classical communications: A &#8594; B.</p><p>Step Sign</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>X-Components Z-Components Pauli Representation</head><p>Given this "initialization", let us track these 10 stabilizers through each step of the protocol, as shown in Table <ref type="table">1</ref>.</p><p>(1) Alice measures the first stabilizer generator X A 1 Z A 2 Z A 3 X A 4 , and assume that the measurement result is &#949; 1 &#8712; {&#177;1}. We apply the stabilizer formalism for measurements from Section A.3 to update E 5 . Since there are several elements of E 5 that anticommute with this generator, we choose to remove and hence is already contained in E</p><p>(1) 5 . This is a manifestation of the Bell state matrix identity discussed in Section A.4. Indeed, Bob's generator can be obtained by multiplying</p><p>(2) Alice measures the second stabilizer generator X A 2 Z A 3 Z A 4 X A 5 , and assume that the measurement result is &#949; 2 &#8712; {&#177;1}. Then, the new joint stabilizer group, E</p><p>5 , is given in Step (2) of Table <ref type="table">1</ref>. This stabilizer generator anticommutes with the third row of the top block and the second and fifth rows of the bottom block. We have replaced Z A 5 Z B 5 (fifth row of the bottom block) with this generator and multiplied the other anticommuting elements with Z A 5 Z B 5 . It can be verified that the second stabilizer generator of Bob is already in E (3) Alice measures the third stabilizer generator X A 1 X A 3 Z A 4 Z A 5 , and assume that the measurement result is &#949; 3 &#8712; {&#177;1}. Then, the new joint stabilizer group, E</p><p>5 , is given in Step (3) of Table <ref type="table">1</ref>. Once again, it can be verified that the third stabilizer generator of Bob is already in E (4) Alice measures the final stabilizer generator Z A 1 X A 2 X A 4 Z A 5 , and assume that the measurement result is &#949; 4 &#8712; {&#177;1}. Then, the new joint stabilizer group, E</p><p>5 , is given in Step (4) of Table <ref type="table">1</ref>. As before, it can be verified that the final stabilizer generator of Bob is already in E (4) 5 . This completes all measurements of Alice, and she now sends Bob's qubits over the channel. To understand the working of the protocol in the ideal scenario, assume that no errors occur.</p><p>Since we know that all stabilizer generators of Bob are in E (4) 5 , we conveniently perform the following replacements:</p><p>Recollect that for the</p><p>). If we used Algorithm 3, we with the measured stabilizer.</p><p>would obtain the same Z and X = -Y 1 Z 3 Z 4 . Then, by grouping Alice's code stabilizers and Bob's code stabilizers, the group E (4)</p><p>5 can be rewritten as</p><p>Using some manipulations, we see that the two operators on the second line in E</p><p>5 are</p><p>Thus, E</p><p>5 can be interpreted as having 8 stabilizer generators (Alice and Bob combined) and a pair of logical X A X B and logical Z A Z B operators, which implies that the pair of logical qubits shared between Alice and Bob forms a Bell pair. This can be converted into a physical Bell pair by performing the inverse of the encoding unitary on both Alice's and Bob's qubits locally. Note that this encoding unitary must be compatible with the above definition of the logical Paulis for the [ <ref type="bibr">[5,</ref><ref type="bibr">1,</ref><ref type="bibr">3]</ref>] code, i.e., when the physical X and Z on the input (logical) qubit to the encoder is conjugated by the chosen encoding unitary, the result must be the above logical Paulis X and Z, respectively, potentially multiplied by some stabilizer element.</p><p>Remark 2. In this example, we have assumed that Bob's qubits do not suffer any error, so that we can clearly show the existence of the correct logical Bell stabilizers. If, however, the channel introduced an error, then Alice and Bob can jointly deduce the error by measuring the signs of all generators of E (1) 5</p><p>and applying the necessary Pauli correction. Since there are no non-trivial logical Pauli operators, any syndrome-matched correction can differ from the true error only by a stabilizer, so any error is correctable by the joint action of Alice and Bob. But, since we prohibit non-local measurements between Alice and Bob, our error correction capability is limited to that of the code (on Bob's side). If the channel introduces a correctable Pauli error for the chosen code and Bob's decoder, then the protocol will output k perfect Bell pairs. However, if the Pauli error is miscorrected by Bob's decoder, then there will be a logical error on the code, and hence at least one of the k output Bell pairs will suffer from an unknown Pauli error.</p><p>We can arrive at the above conclusion without knowing the specific logical operators for the code. After Alice measures all her stabilizer generators, we know that Bob's stabilizer generators will also be present in the group, simply based on the Bell state matrix identity from Section A.4. For this example, the transpose in that identity did not make a difference, but for other codes this can only introduce an additional minus sign since Y T = -Y . For an <ref type="bibr">[[n, k, d]</ref>] code, we now have a 2n-qubit stabilizer group E (n-k) n where 2(n -k) generating elements are Alice's and Bob's stabilizer generators. We are left with 2n -2(n -k) = 2k elements in the generators, each of which must jointly involve Alice's and Bob's qubits. These commute with each other and with the 2(n -k) stabilizer generators of Alice and Bob, and are independent, so we can rename them as the logical X A j X B j and logical Z A j Z B j for j = 1, 2, . . . , k. Thus, by definition, the k pairs of logical qubits form k logical Bell pairs. Alice and Bob can produce physical Bell pairs by simultaneously inverting the (same) encoding unitary for the code locally. This is the key idea behind the working of the Bell pair distillation protocol employed by Wilde et al. in <ref type="bibr">[18]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Distillation of Greenberger-Horne-Zeilinger (GHZ) States</head><p>In this section, we extend the above Bell pair distillation protocol to distill GHZ states,</p><p>For clarity, we will specifically discuss the standard case of &#8467; = 3, but the results and analysis extend to larger &#8467; as well. Let n GHZ states be shared between Alice, Bob, and Charlie. We rearrange all the qubits to keep Alice's, Bob's and Charlie's qubits together respectively. Hence, this joint state can be expressed as</p><p>Since the GHZ state has stabilizers</p><p>Thus, we have identified the GHZ version of the basic properties of Bell states that was needed in the Bell pair distillation protocol. However, the critical part of the Wilde et al. protocol was the transpose trick that formed the Bell matrix identity in Appendix A. for Bob. Naturally, we need to determine the equivalent phenomenon for GHZ states before we can proceed to constructing a distillation protocol.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1">GHZ State Matrix Identity</head><p>In the following lemma, we generalize the Bell state matrix identity in Appendix A.4 to the GHZ state.</p><p>&#215;2 n be any matrix acting on Alice's qubits. Then,</p><p>Proof: Similar to the Bell case, we calculate</p><p>This completes the proof and establishes the identity.</p><p>The above property generalizes naturally to larger &#8467;-qubit GHZ states, GHZ &#8467; =</p><p>&#215;2 n be any matrix acting on qubits 'A'. Then, 1) .</p><p>As our next result, we prove some properties of the GHZ-map defined in the above lemma. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Lemma 5. The GHZ-map</head><p>(c) This simply follows from the multiplicative property via the special case</p><p>This completes the proof and establishes the said properties of the GHZ-map. We are interested in performing stabilizer measurements at Alice and deducing the effect on Bob's and Charlie's qubits. The above properties greatly simplify the analysis, given that the code projector for a stabilizer code (58) is a product of sums. Due to the multiplicativity of the GHZ-map M &#8594; M , we only have to analyze the case where Alice's code has a single stabilizer generator &#949;E(a, b), i.e., her code projector is simply</p><p>, where N = 2 n . Now, using linearity, we just need to determine I N and <ref type="figure">E(a,</ref><ref type="figure">b</ref>). Then, due to Lemma 9(a), we have M T = 1 2 I N + (-1) ab T E(a, b) . Theorem 6. Given n copies of the GHZ state shared between Alice, Bob and Charlie, measuring E(a, b) on Alice's n qubits and obtaining the result &#949; &#8712; {&#177;1} is equivalent to measuring the following with results +1 on the qubits of Bob and Charlie:</p><p>where Z B i (resp. Z C i ) refers to Z on i-th qubit of Bob (resp. Charlie), and e i has a 1 in the i-th position and zeros elsewhere.</p><p>Proof: Using the discussion before the statement of the theorem, we will calculate I N and E(a, b) to establish the result. Recollect that |0&#240; &#239;0| n=1 = I+Z 2 and hence |0&#240; &#239;0| &#185;n = 1 2 n v&#8712;F n 2 E(0, v). Then, using Lemma 9, we have</p><p>= n i=1</p><p>where e i &#8712; F n 2 is the standard basis vector with 1 in the i-th position and zeros elsewhere. Note that E([0, 0], [e i , e i ]) BC = Z B i &#185; Z C i is the GHZ stabilizer I A Z B Z C on the i-th triple of qubits between A, B and C <ref type="bibr">(15)</ref>. Next, we proceed to calculate E(a, b) using a similar approach.</p><p>Thus, when Alice's measurement applies the projector M = I N +&#949;E(a,b) 2 , Bob's and Charlie's qubits experience the projector</p><p>Since the second term, I N , only corresponds to already existing stabilizers Z B i &#185; Z C i for n copies of the GHZ state, the only new measurement corresponds to the Pauli operator &#949;(-1) ab T E(a, b) &#185; E(a, 0).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Example 1.</head><p>Consider n = 1 and the case when Alice applies M = I+Z 2 = I+E(0,1)</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>2</head><p>, with a = 0, b = 1. Then I = I&#185;I+Z&#185;Z 2 and E(0, 1) T = (E(0, 1) T &#185; E(0, 0)) &#8226; I = (Z &#185; I) &#8226; I. Therefore, the stabilizers for BC are &#239;Z &#185; I, Z &#185; Z&#240;.</p><p>If we had an X-measurement for Alice, where a = 1, b = 0, then E(a, b) T &#185; E(a, 0) = X &#185; X. Combined with the Z &#185; Z from I, the qubits on BC are projected to the Bell state.</p><p>More interestingly, if we consider a Y -measurement for Alice, where</p><p>Thus, assuming the measurement result is +1, the new BC stabilizers are &#239;-Y &#185; X, Z &#185; Z&#240;. It can be verified that the post-measurement state for this case will be</p><p>, which is fixed by the above stabilizer.</p><p>Naturally, this insight can be generalized to larger GHZ states as well.</p><p>Theorem 7. Given n copies of the &#8467;-qubit GHZ state with subsystems A 1 , A 2 , . . . , A &#8467; , measuring E(a, b) on the n qubits of subsystem A 1 and obtaining the result &#949; &#8712; {&#177;1} is equivalent to measuring the following with results +1 on the qubits of the remaining (&#8467; -1) subsystems:</p><p>x * y denotes the elementwise product of two vectors, Z At,i refers to Z on i-th qubit of subsystem A t , and e i is the standard basis vector with a 1 in the i-th position and zeros elsewhere. </p><p>, splitting the entries of b into (&#8467; -1) disjoint groups.</p><p>As we desired, the above result shows how a Pauli measurement on one subsystem, A 1 , of (multiple copies of) the GHZ state affects the remaining subsystems. All the GHZ stabilizers involving subsystems A 2 , A 3 , . . . , A &#8467; are retained. Hence, the post-measurement state is "GHZ-like" on these (&#8467; -1) subsystems but with an additional globally entangling stabilizer. This is akin to the globally entangling all-X stabilizer for the standard GHZ state, but it depends on the Pauli operator being measured on A 1 . Note that, since the Pauli measurement randomly projects onto a subspace, the induced stabilizers given by the theorem do not uniquely determine the post-measurement state on the (&#8467; -1) subsystems. The degrees of freedom for the state will be quantified shortly in a more general setting. One might argue that this theorem can be obtained by directly applying the stabilizer formalism to S GHZ . However, some thought clarifies that arriving at the conclusions rigorously takes at least an equal amount of effort.</p><p>In the context of measuring a set of (n -k) stabilizer generators of a code (on qubits A 1 ), the above result confirms that this induces a joint stabilizer code on the remaining (&#8467; -1) subsystems. There are n(&#8467; -1) qubits on these subsystems and each code stabilizer generator contributes a stabilizer generator for this induced code. Besides, as stated in the theorem, there are n(&#8467; -2) GHZ stabilizers on all pairs of adjacent subsystems, {A j A j+1 ; j = 2, . . . , &#8467; -1}, independent of the code stabilizers being measured. Hence, the induced code has (n-k)+n(&#8467;-2) stabilizer generators, which means it is an [[n(&#8467;-1), k]] code and the post-measurement state has k logical degrees of freedom. The minimum distance of the induced code will depend on the minimum distance of the A 1 -code as well as the new GHZ stabilizers and the choice of {b i }.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2">Protocol I</head><p>We now have all the tools to investigate a natural stabilizer code based GHZ distillation protocol that attempts to generalize the Bell pair distillation protocol discussed in Section 4. The block diagram of this protocol was shown earlier in Fig. <ref type="figure">2</ref> and the protocol is summarized as an algorithm in Algorithm 2. Let us consider the 3-qubit code with stabilizers S = &#239;Y Y I, IY Y &#240; to understand the subtleties in the steps of the protocol. First, similar to the Bell pair scenario, we have the following stabilizer group for 3 copies of the GHZ state:</p><p>(50) Next, like the example for the Bell pair distillation protocol, we can evolve these stabilizers through the proposed steps of the protocol to understand its working. In Appendix C, we use such a tabular approach to elucidate the steps of this protocol. This serves as an instructive example to understand how the GHZ property influences the construction of a purification protocol for GHZ states. In particular, since the property implies that the Z-component of any non-purely-X-type stabilizer is lost in the induced code on qubits 'B' and 'C', we discuss how one can perform diagonal Clifford operations to ensure that all three subsystems obtain the same code. The placement of these operations is critical and we detail its effects by simulating the protocol performance for the 5-qubit code.</p><p>In this protocol, Alice starts by preparing n GHZ states and measuring the n-qubit stabilizers of her code on qubits 'A'. Then, using Theorem 6, Bob proceeds by measuring the 2n-qubit stabilizers of the code induced on qubits 'B' and 'C' by Alice's choice of code on qubits 'A'. Subsequently, he also measures the same n-qubit stabilizers as Alice but on qubits 'B', so that there is a code induced just on qubits 'C' and Charlie can use that code to correct errors from the channel. If we imagine the three parties being on a linear network topology, then this protocol seems reasonable since each party retains his/her qubits and passes on all remaining qubits to the next hop in the chain. However, there is an asymmetry in the operations since Bob needs to perform two rounds of measurements and one involves twice the number of qubits. Furthermore, the protocol is (potentially) not scalable to larger number of parties with varied network topologies.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.3">Distillation-Inspired Algorithm to Generate Logical Pauli Operators</head><p>While constructing and analyzing the protocol using the tabular approach, we realized that the evolution of the table under stabilizer measurements automatically reveals the logical Pauli operators of the code in an explicit manner in certain rows. Indeed, each stabilizer measurement replaces one row and alters several others that anticommute with it using the rules of the stabilizer formalism for measurements (Section A.3). After all stabilizers are measured on qubits 'A', one realizes that the non-replaced (but altered) rows in the top section of the table, i.e., the ZZI-type rows, are of the form</p><p>where Z i denotes the logical Z operator on the i-th logical qubit of the code. Therefore, one can easily read off these logical operators (up to some subtleties that can be taken care of). A similar approach is applied to the bottom section of the table, i.e., the XXXtype rows, to obtain the logical X operators of the code. The details of the algorithm are discussed in Appendix D.2 and the algorithm itself is summarized in Algorithm 3.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.4">Output Fidelity of GHZ Distillation Protocol</head><p>During the protocol, if error correction at Bob and/or Charlie miscorrects and introduces a logical error, then the final effect is a change in the signs of some of the logical GHZ stabilizers. This in turn means that after the decoding step, some of the k triples will be the standard GHZ state corrupted by an unknown Pauli operation. Hence, the output of the protocol is correct with probability (1 -P f ), and produces at least one Pauli corrupted GHZ state with probability P f , using the notation in Fig. <ref type="figure">6</ref>      <ref type="bibr">16</ref> Charlie 17 (a) uses Q(S), Theorem 6, and Bob's syndrome to determine the signs</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>his stabilizers, and then measures the generators {&#949;</head><p>. . , r = n -k} on his n qubits, 18 (b) performs the necessary Pauli corrections on all qubits to bring them to the code space of his code. </p><p>where H Z is a r Z &#215; n matrix of full rank, and H 1 is a r X &#215; n matrix of full rank (r X + r Z = r = n -k). The rows of H Z provide the generators for all purely Z-type stabilizers of the code. While performing row operations on H 1:2n , care must be taken to adhere to Pauli multiplication arithmetic (Lemma 9(b)).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">6</head><p>Simulate the creation of n copies of the GHZ state as follows. Create a 2n &#215; (6n + 1) GHZ stabilizer matrix S GHZ whose first n rows take the form [0, 0, 0, e i , e i , 0, +1] and the second n rows take the form [e i , e i , e i , 0, 0, 0, +1], where i = 1, 2, . . . , n. This matrix is almost the same as Step (0) in Table <ref type="table">2</ref>, but we have omitted the middle section. Retain the definitions of logical Z generators E(0, f j ) and logical X generators</p><p>40 end 41 <ref type="bibr">42</ref> return {Z j = E(0, f j ) , X j = &#191; j E(c j , d j ) ; j = 1, 2, . . . , k} event, the density matrix representing the output of the protocol is</p><p>where</p><p>Similar to the case of triorthogonal codes in magic state distillation <ref type="bibr">[41]</ref>, it is likely useful to consider the reduced density matrix for one of the k output triples, and relate its fidelity (with respect to |GHZ&#240; &#239;GHZ|) to properties of the code and decoder. In Ref. <ref type="bibr">[41]</ref>, the authors adopted exactly such a strategy for distillation of T -states, under a purely Z-error model and relying on post-selection where non-trivial syndromes are discarded. In recent work <ref type="bibr">[42]</ref>, it has been shown that performing error correction rather than just detection (and post-selection) leads to better performance of triorthogonal codes. For our scenario of GHZ distillation, it is an interesting problem to construct codes and decoders for this protocol where we can relate the output fidelity to code properties and arrive at analytical scaling arguments with increasing code size. This would be useful for comparing with fundamental limits of entanglement distillation <ref type="bibr">[17]</ref> and assessing the optimality of this protocol.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.5">Protocol II</head><p>To address the drawbacks of Protocol I, the protocol can be modified so that Alice starts by measuring qubits 'A' and qubits 'B' separately. Though this does not circumvent the issue of performing twice the number of measurements at one of the nodes, this avoids the need of 2n-qubit measurements. Since the GHZ property implies the inducement of a 2n-qubit code on qubits 'B' and 'C', it appears that this extra round of n-qubit measurements on qubits 'B' is inevitable. So, even now, when Alice measures {&#949; i E(a i , b i )} on qubits 'A', Theorem 6 still dictates that there is a 2n-qubit code {&#949; i E(a i , b i ) T B &#185; E(a i , 0) C } jointly on qubits 'B' and 'C'. But, when she measures the same stabilizers {&#949; i E(a i , b i )} on qubits 'B', one can multiply with the corresponding 2n-qubit stabilizer to see that the joint stabilizers can be broken into purely 'B' and purely 'C' Therefore, once Alice performs the two rounds of measurements, she can send qubits 'B' to Bob and qubits 'C' to Charlie, along with the necessary classical information. As individual codes have been induced separately on qubits 'B' and qubits 'C', Bob and Charlie can still perform local n-qubit measurements to fix errors during qubit transmission. Finally, this scheme suits other network topologies such as when Alice is connected to both Bob and Charlie but those parties do not have a direct connection between them.</p><p>While Protocol II can be generalized to arbitrary stabilizer codes using the diagonal Clifford correction discussed in Protocol I, Algorithm 4 describes Protocol II specifically for CSS codes, just for simplicity. Note that for CSS codes, for any stabilizer generator &#949; i E(a i , b i ), whenever a i &#824; = 0 we have b i = 0. Hence, the induced code from Theorem 6 is automatically CSS and we do not need any diagonal Clifford operation mentioned earlier in Protocol I. Since Protocol II relies on the same intuitions from Theorem 6, we do not elaborate further. We also note that there can be further variations based on other practical considerations.</p><p>This simplified protocol was shown earlier in Fig. <ref type="figure">3</ref>. We simulated the protocol by following a tabular approach, as in Appendix C for Protocol I, using a state-of-the-art family of lifted product QLDPC codes with asymptotic rate 0.118 and an efficient iterative decoder based on the min-sum algorithm (MSA) with normalization factor 0.8. The results were shown in Fig. <ref type="figure">4</ref>, where we can see that the threshold under depolarizing noise is about 10.7%. Comparing the results to Fig. <ref type="figure">1</ref>, it is apparent that the threshold matches that of the underlying logical error rate of the code on this channel (i.e., no distillation but standard quantum error correction simulation). This is important because it shows that even when both Bob and Charlie run decoders to correct errors on their respective qubits, the overall threshold is unchanged from the single channel setting. On the other hand, the comparison also shows that the protocol failure rate is significantly worse for each channel parameter compared to Fig. <ref type="figure">1</ref>. This could be the effect of requiring both decoders to succeed, but it is a cause for concern when we extend the protocol to GHZ states with &#8467; &gt; 3. Indeed, we do not want the protocol failure rates to progressively get worse, albeit with the same threshold. Therefore, we will study this phenomenon more carefully in future work and identify the best way to scale this protocol for larger &#8467;. For completeness, we summarize the protocol for arbitrary &#8467;.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.6">Protocol II for Arbitrary &#8467;</head><p>Initially, A 1 generates n ideal copies of the &#8467;-qubit GHZ state, names the qubits of each copy A 1 through A &#8467; , chooses some <ref type="bibr">[[n, k]</ref>] code Q(S) defined by a stabilizer S, and measures the (n -k) generators of S on qubits A 1 . Then, A 1 applies Theorem 6 to determine the induced code Q S (&#8467;-1) on the remaining subsystems. Let us consider &#8467; = 4 for Algorithm 4: Protocol II to convert n GHZ states into k GHZ states of higher quality, using an <ref type="bibr">[[n, k, d]</ref>    <ref type="bibr">14</ref> Charlie 15 (a) uses Q(S), Theorem 6, and syndrome to determine the signs &#949; A i &#949; B i of his stabilizers, and then measures the generators</p><p>) uses the syndrome to run a decoder that estimates a Pauli error 17 (c) applies the estimate to qubits 'C' as the recovery operation 18 <ref type="bibr">19</ref> // If the channel error was correctable, triples of logical qubits of Alice's, Bob's and Charlie's codes form k GHZ states 20 // If channel error was NOT correctable, some triple of logical qubits form a GHZ state with an unknown Pauli error 21 Alice, Bob, and Charlie respectively apply the inverse of the encoding unitary for their code on their n qubits 22 // The encoding unitary is determined by the logical Pauli operators obtained from Algorithm 3 simplicity. For tracking the protocol, we initially create a table whose rows are the binary representations of the generators of S &#185;n GHZ . Group the n Z</p><p>in the third part, and finally the n X A i X B i X C i X D i in the fourth part. If there is a purely Z-type generator, E(0, b) A , for S, then it will commute with the first three parts and only affect the last part based on the stabilizer formalism. Moreover, by an appropriate linear combination of the rows of the first part, one can produce the element E(0, b) A &#185; E(0, b) B , which when multiplied by the new code stabilizer produces the stabilizer E(0, b) B on purely subsystem 'B'. By a similar trick in the second part and subsequently in the third part, one can produce single-subsystem stabilizers E(0, b) C and E(0, b) D as well. Hence, it suffices to only consider non-purely-Z-type stabilizers E(a, b) A , a &#824; = 0.</p><p>Such stabilizers transform into the multiple-subsystem stabilizers described by Theorem 6. Now, qubits of 'B', 'C', and 'D' need to be transmitted over a noisy channel to the respective nodes, based on the network topology. For those nodes to be able to correct errors, a code needs to be imposed purely on each subsystem before transmission of the respective qubits. Let (node) A be connected to (node) B. Then, based on the choice of b 1 , b 2 , b 3 in Theorem 6, A measures code stabilizers E(a, b 1 ) B on qubits 'B'. With some thought, one sees that these stabilizers only affect the second part of the table. Now, since</p><p>already a stabilizer, by multiplying with E(a, b 1 ) B we obtain a code on 'B' and a residual code jointly on 'C' and 'D'. The qubits of 'B' can be transmitted to node B (along with necessary classical sign information of stabilizers), which can perform error correction.</p><p>If A is not connected to C and D, then A has to send those qubits to B. Thus, it appears that A has to perform stabilizer measurements as above not only on 'B' but on 'C' and 'D' as well. However, this can be relegated to subsequent nodes to reduce the burden on A. Let A also send qubits 'C' and 'D' to node B along with qubits 'B'. There is some joint Pauli error on 'B', 'C', and 'D', and the error correction of B only fixes the error part on 'B'. If B measures code stabilizers on 'C', then the preexisting Pauli error can be transformed into an effective Pauli error after the code was imposed on 'C'. This enables node C to correct this error as well as any error encountered while B sends qubits 'C'. A similar statement holds for D as well. Thus, the protocol can be stated as follows: for every edge connected to a node, the node performs stabilizer measurements on the respective subsystem to impose a code on the qubits of the recipient on that edge. The correctness of the protocol relies on carefully tracking signs of stabilizers based on such measurements at each node. Once all qubits are distributed, each node uses the logical Paulis of their respective codes to determine and invert the encoding unitary. This converts the k logical GHZ states into k perfect physical GHZ states, provided all error corrections were successful. The average output density matrix and average output fidelity still take the form discussed in Section 5.4.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">Conclusion and Future Work</head><p>In this work, we began by describing the Bell pair distillation protocol introduced in Ref. <ref type="bibr">[18]</ref>, and used the stabilizer formalism to understand its working. We identified that the Bell state matrix identity (Appendix A.4) plays a critical role in that protocol. As our first result, we proved the equivalent matrix identity for GHZ states, where we introduced the GHZ-map and showed that it is an algebra homomorphism. Using the GHZ-map, we proved our main result (Theorem 6) that describes the effect of Alice's stabilizer measurements (on qubits 'A') on qubits 'B' and qubits 'C'. Then, we constructed a natural GHZ distillation protocol whose steps were guided by the aforementioned main result. We demonstrated that the placement of a certain local Clifford on qubits 'C' in the protocol has an immense effect on the performance of the protocol. We described the relation between the probability of failure of the protocol and the output fidelity of the GHZ states. As part of our protocol, we also developed a new algorithm to generate logical Pauli operators for an arbitrary stabilizer code. To circumvent some drawbacks of the protocol, we described an alternate protocol and produced performance results using state-of-the-art QLDPC codes and an efficient iterative decoder. Finally, we discussed the scalability of the protocol for larger GHZ states involving more than 3 parties and arbitrary network topologies.</p><p>In future work, we plan to study the scaling of the logical error rate with the increase in number of parties. Since a key motivation for this work was distributed quantum computing (DQC), we will investigate a complete architecture for a distributed implementation of the recently proposed optimal families of QLDPC codes. As part of the architecture, we envisage that the QLDPC-based GHZ purification scheme proposed in this paper will play a critical role in supplying logical GHZ states encoded in the same QLDPC codes that are used for DQC. We will study the implications for fault-tolerance of such an architecture.</p><p>Hence, the map &#181; :</p><p>For details about extending the definition of E(a, b) to Z 4 -valued arguments, see <ref type="bibr">[44]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.2 Stabilizer Codes and Encoding Unitaries</head><p>A stabilizer group S is a commutative subgroup of P n that does not contain -I N . If the group has r f n independent generators &#949; i E(a i , b i ), where &#949; i &#8712; {&#177;1}, then S = &#239;&#949; i E(a i , b i ); i = 1, . . . , r&#240; has size |S| = 2 r . Since the generators are Hermitian and unitary, they have eigenvalues &#177;1. Recollect that commuting matrices can be diagonalized simultaneously. The stabilizer code defined by S is the common +1 eigenspace of all generators, i.e., it is the 2 k -dimensional subspace, k = n -r, fixed by all elements of S:</p><p>Using the homomorphism &#181;, we can write a r &#215; (2n + 1) generator matrix G S for the stabilizer group: the</p><p>Since S must be a commutative group, the symplectic inner product between any pair of rows must be zero. Hence, the subspace of binary mappings of all elements of S, denoted &#181;(S), is given by the rowspace of G S .</p><p>A CSS (Calderbank-Shor-Steane) code is a special type of stabilizer code for which there exists a set of generators where either b i = 0 or a i = 0 in each generator, i.e., the generators are purely X-type and purely Z-type operators. Clearly, for such a code, G S has a block diagonal form where we can express the X-type (resp. Z-type) operators as the rowspace of a matrix [H X , 0] (resp. [0, H Z ]), and 0 represents the all-zeros matrix (of appropriate size). In this case, the commutativity condition for stabilizers is equivalent to the condition H X H T Z = 0. Therefore, H X and H Z can be thought of as generating two classical linear codes C X and C Z .</p><p>The projector onto the +1 eigenspace of a Pauli matrix E(a, b) is</p><p>. Therefore, since Q(S) is the simultaneous +1 eigenspace of r commuting matrices &#949; i E(a i , b i ), the projector onto the code subspace Q(S) is</p><p>While the stabilizer group S defines the code space, an encoding unitary U Enc (S) fully specifies the mapping from logical k-qubit states to physical n-qubit code states in Q(S).</p><p>The n input qubits to U Enc (S) can be split into k logical qubits, whose joint state is arbitrary, and r = n -k ancillary qubits, each of which is initialized in some specific state such as |0&#240;. If ancillas are initialized in the |0&#240; state, then the stabilizer group for these n input qubits is generated by</p><p>If we conjugate each of these r generators by the encoding unitary U Enc (S), then we will obtain r generators U Enc (S) Z i U Enc (S) of S. Similarly, if we conjugate the X i and Z i operations on the k logical qubits -which can be used to express arbitrary operations on them since Pauli operators form a basis -by U Enc (S), then we will obtain the generators of logical X and Z operators compatible with the chosen U Enc (S). Therefore, an alternative method to specify U Enc (S) is to specify the generators of S as well as the generators of logical X and Z operators. Since we are requiring U Enc (S) to map Paulis to Paulis, it is always Clifford <ref type="bibr">[23]</ref>. Note that U Enc (S) is still not unique since we are not specifying how X i on the ancillas must be mapped, but we do not care about these additional mappings.</p><p>There are at least two algorithms provided in the literature for generating the logical Pauli operators of stabilizer codes. One is by Gottesman <ref type="bibr">[21,</ref><ref type="bibr">45]</ref>, where the idea is to construct the normalizer of the stabilizer group inside the Pauli group, and then perform suitable row operations on the generators of the normalizer. The other is by Wilde <ref type="bibr">[46]</ref>, where he performs a symplectic Gram-Schmidt orthogonalization procedure to arrive at the generators of logical X and logical Z operators. In this work, as part of our GHZ distillation protocol, we provide a new algorithm to generate logical X and Z operators for any stabilizer code (see Algorithm 3). The output of the algorithm is compatible with the way logical Paulis must be defined for our analysis of the protocol. Additionally, the logical Z operators from our algorithm are always guaranteed to be purely Z-type operators for any stabilizer code. If the code is CSS, then the logical X operators are always purely X-type.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.3 Stabilizer Formalism</head><p>When a stabilizer group on n qubits has n independent generators, Q(S) is a 1-dimensional subspace that corresponds to a unique quantum state |&#200;(S)&#240; (up to irrelevant global phase), commonly referred to as a stabilizer state <ref type="bibr">[21]</ref>. The actions of unitary operations and measurements on |&#200;(S)&#240; can be tracked by updating these n generators accordingly <ref type="bibr">[23,</ref><ref type="bibr">40]</ref>. For any element g of S, and an arbitrary unitary operation U on |&#200;(S)&#240;, we observe that</p><p>so the stabilizer element g has evolved into the element g &#8242; = U gU after the action of U . Of course, only if U is a Clifford operation we have that g &#8242; is also a Pauli matrix. Thus, in this case the evolution of the state can be tracked efficiently by simply transforming G S (and the associated signs) through binary operations (see "CHP" algorithm <ref type="bibr">[40]</ref>). The stabilizer formalism also provides a method to systematically update the stabilizers under Pauli measurements of the state |&#200;(S)&#240;. Assume that we have n generators for the stabilizer group, namely &#949; i E(a i , b i ), i = 1, . . . , n, and that we are measuring the Pauli operator &#181;E(u, v) to obtain the measurement (-1) m , m &#8712; {0, 1}. Then, we have the following cases.</p><p>0 for all i, then either E(u, v) or -E(u, v) already belongs to S, so there is nothing to update.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">If &#239;[u, v],</head><p>[a j , b j ]&#240; s = 1 for exactly one j &#8712; {1, . . . , n}, then we replace &#949; j E(a j , b j ) by (-1) m &#181;E(u, v).</p><p>. . , n}, then we replace &#949; j E(a j , b j ) by the operator (-1) m &#181;E(u, v) for any one j &#8712; I, and update , whose stabilizer group is S = &#239;X &#185; X, Z &#185; Z&#240; = &#239;E(11, 00), E(00, 11)&#240;. If we measure Z &#185; I = E(00, 10), and obtain the result -1, then the new stabilizers are S = &#239;-E(00, 10), E(00, 11)&#240; &#8801; &#239;-E(00, 10), -E(00, 01)&#240;. This group perfectly stabilizes the post-measurement state |11&#240;.</p><p>If we instead measure Y &#185; I = E <ref type="bibr">(10,</ref><ref type="bibr">10)</ref>, and obtain the result +1, then the new stabilizers are S = &#239;E <ref type="bibr">(10,</ref><ref type="bibr">10)</ref>, -E <ref type="bibr">(11,</ref><ref type="bibr">11)</ref>&#240; &#8801; &#239;E <ref type="bibr">(10,</ref><ref type="bibr">10)</ref>, -E(01, 01)&#240;. This group perfectly stabilizes the post-measurement state</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.4 Bell State Matrix Identity</head><p>Let n standard Bell pairs be shared between Alice and Bob. We rearrange the 2n qubits to keep Alice's qubits together and Bob's qubits together. We can write the joint state as</p><p>Let M = x,y&#8712;F n 2 M xy |x&#240; &#239;y| &#8712; C 2 n &#215;2 n be any matrix acting on Alice's qubits. Then, it has been observed that <ref type="bibr">[13,</ref><ref type="bibr">18]</ref>  If Alice measures the generators of a stabilizer group S = &#239;&#949; i E(a i , b i ); i = 1, . . . , r&#240;, and obtains results (-1) m i , m i &#8712; {0, 1}, then M = &#928; S &#8242; is the projector onto the subspace Q(S &#8242; ) of the stabilizer code defined by S &#8242; = &#239;(-1) m i &#949; i E(a i , b i ); i = 1, . . . , r&#240;. According to the above identity, this is equivalent to projecting Bob's qubits onto the stabilizer code defined by</p><p>where we have applied Lemma 9(a). Note that, in such cases where M is a projector, we can write</p><p>so that the action of Alice can be interpreted as both Alice and Bob projecting their own qubits simultaneously.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B Logical Bell Pairs for Arbitrary CSS Codes</head><p>In this appendix, we show that when n raw Bell pairs are projected onto the subspace of a CSS code through stabilizer measurements, the induced logical state is that of k Bell pairs. We take a meet-in-the-middle approach where we first consider k Bell pairs and show how their encoded state looks like, and then we project n Bell pairs to prove that the resulting state is the same as the aforesaid encoded state. Let C 1 , C 2 be two binary linear codes such that C 2 &#162; C 1 . For the <ref type="bibr">[[n, k]</ref>] CSS code defined by these codes, C 2 produces the X-stabilizers, C 1 produces the logical X operators, C &#167; 1 produces the Z-stabilizers, and C &#167; 2 produces the logical Z operators. Let G C 1 /C 2 denote a generator matrix for the quotient group C 1 /C 2 that represents the "pure" logical X operators that do not have any X-stabilizer component. In other words, the rows of G C 1 /C 2 give the generators of logical X operators for the CSS code. Let U Enc denote an encoding unitary for the code. Then, the encoded state of k Bell pairs is <ref type="bibr">[45,</ref><ref type="bibr">47]</ref> </p><p>For the other direction, we start with &#934; + n AB and then apply the projector &#928; CSS for the code on Alice's qubits. By the Bell state matrix identity (Section A.4), this means that we are effectively simultaneously applying &#928; T CSS = &#928; CSS on Bob's qubits as well. Here, the transpose has no effect because the stabilizer generators for CSS codes are purely X-type or purely Z-type, and only such operators appear in the expression for the code projector (58). Let G 2 and G &#167; 1 represent generator matrices for the codes C 2 and C &#167; 1 , respectively. Then, we have</p><p>For any z &#8712; F n 2 , since E(0, v) |z&#240; = (-1) zv T |z&#240;, we have (I N + E(0, v)) |z&#240; = 2 |z&#240; if zv T = 0 and (I N + E(0, v)) |z&#240; = 0 otherwise. This implies that &#928; Z |z&#240; = |z&#240; or 0 depending on whether z &#8712; C 1 or not, respectively. Similarly, it is easy to check that</p><p>Putting these together, we observe that</p><p>This state must be normalized by the square root of the probability that we get the all +1 syndrome, which corresponds to the subspace of the considered CSS code. It can be checked that all syndromes are equally likely, so the probability is 1/2 n-k . Dividing (74) by 1/ &#8730; 2 n-k , we arrive at exactly the same state in (67). This establishes that when CSS stabilizer measurements are performed on n Bell pairs, the resulting code state corresponds to k logical Bell pairs. C Protocol I with the 3-Qubit Code Table <ref type="table">2</ref>: Steps of the GHZ distillation protocol based on the <ref type="bibr">[[3, 1, 1]</ref>] code defined by S = &#239;Y Y I, IY Y &#240;. Each '0' below represents 000, and e i &#8712; F 3  2 is the standard basis vector with a 1 in the i-th position and zeros elsewhere. Code stabilizers are typeset in boldface. An additional left arrow indicates which row is being replaced with a code stabilizer, i.e., the first row that anticommutes with the stabilizer. Other updated rows are highlighted in gray. Classical communications: A &#8594; B, B &#8594; C.</p><p>Step Sign X-Components Z-Components Pauli Representation (&#177;1)</p><p>The steps of the protocol, with this particular [[3, 1, 1]] code as an example, are shown in Table <ref type="table">2</ref>. Again, we use the stabilizer formalism for measurements from Section A.3. We will explain each step below and discuss the potential subtleties that can arise. It could be useful to imagine the three parties as being three nodes A -B -C on a linear network chain.</p><p>(0) Alice locally prepares 3 copies of the perfect GHZ state and groups her qubits together for further processing. She keeps aside the grouped qubits of Bob's and Charlie's but does not send those to them yet. She also writes down the parity check matrix for the 9 qubits, based on only GHZ stabilizers, along with signs, as shown in Step (0) of Table <ref type="table">2</ref>.</p><p>(1) Alice measures the stabilizer</p><p>and the group G 3 gets updated as shown in Step (1) of  <ref type="bibr">Lemma 9(b)</ref>. This is exactly how the seventh row gets updated.</p><p>(2) Alice measures</p><p>[(e 2 + e 3 ) A , 0 B , 0 C ]), the second stabilizer, and the group gets updated as shown in Step (2) of Table <ref type="table">2</ref>. The procedure is very similar to that in Step <ref type="bibr">(1)</ref>.</p><p>Since Alice has measured all her stabilizer generators, and the stabilizer formalism preserves the commutativity of the elements in the group, the third row in the first block of 3 rows must necessarily commute with Alice's stabilizers. Thus, the Alice component of the third row must form a logical operator for Alice's code, and we define it to be the logical Z operator, i.e., Z A = ZZZ = E(0, e 1 + e 2 + e 3 ). We will see shortly that Bob's qubits get the same code (possibly with sign changes for the stabilizers), so this third row can be written as the logical GHZ stabilizer</p><p>This phenomenon also generalizes to any <ref type="bibr">[[n, k, d]</ref>] stabilizer code, with some caveats when the code has some purely Z-type stabilizers, and we determine the logical Z operators either after Alice's set of measurements or apriori using some linear algebraic arguments (see Appendix D.2 for details). Note that to the Z operators such that respect the GHZ structure of our analysis, e.g., Z = IIY will not be compatible here.</p><p>(3) If we consider the parity-check matrix after Step (2), we see that rows 4 through 8 are the stabilizers promised by Theorem 6 that act only on B and C systems. However, due to the same result, the C parts of rows 7 and 8 only have X-s instead of Y -s. So, to change them back to Y -s, Alice applies the inverse of the Phase (i.e., &#8730; Z) gate to all 3 qubits of the C system. She specifically applies the inverse, rather than &#8730; Z itself, to get rid of the -1 sign for the last row.</p><p>For a general stabilizer code, the appropriate diagonal Clifford must be chosen as discussed in Appendix D.1. This operation converts &#949;</p><p>, which ensures that Charlie gets the same code (up to signs of stabilizers) as Alice and Bob. Since the Clifford is guaranteed to be diagonal, it leaves purely Z-type stabilizers unchanged. Later, in Section C.1, we show that it is better for Bob to perform this Clifford on Charlie's qubits, rather than Alice.</p><p>Though we have the -Y Y X GHZ stabilizer here for convenience, for a general code we can simply continue to use XXX. After Alice has measured her stabilizer generators, this last block of 3 rows could have changed but they still commute with the generators. Since the middle block never gets affected by Alice's measurements, we can guarantee using Theorem 6 that two of the last 3 rows must be the joint BC stabilizers induced by Alice's two generators. Hence, the remaining row's Alice component must form a logical operator for Alice's code, and will be distinct from the previously defined logical Z operator. We define this to be the logical X operator, i.e., X A = IIY = Y 3 = E(e 3 , e 3 ). As we will see shortly, both Bob and Charlie get the same code, so this last row of the third block can be written as the logical GHZ stabilizer X A X B X C . The generalization to arbitrary stabilizer codes is discussed in Appendix D.2.</p><p>Then, she sends Bob both his qubits as well as Charlie's qubits over a noisy Pauli channel, which introduces the signs &#184;, &#191; i , &#181; i &#8712; {&#177;1}, i = 1, 2, 3. She also classically communicates the code stabilizers, her syndromes {&#949; A 1 , &#949; A 2 }, and the logical Z and X operators to him.</p><p>(4) Now, based on Alice's classical communication, Bob applies Theorem 6 to obtain the stabilizer generators</p><p>B &#185; E(e 2 + e 3 , e 2 + e 3 ) C for the induced joint code on his as well as Charlie's qubits. As per Theorem 6, he also includes</p><p>i , e C i ]) ; i = 1, 2, 3} i.e., the IZZ-type GHZ stabilizers, as stabilizer generators for the [ <ref type="bibr">[6,</ref><ref type="bibr">1]</ref>] joint code on BC systems. He measures these 5 stabilizers to deduce and correct the error introduced by the channel on the 6 qubits sent by Alice. Assuming perfect error correction, the signs will be back to the ones in Alice's final parity-check matrix.</p><p>When Bob sends Charlie's qubits to him, the channel might introduce errors on those 3 qubits. To deduce and correct these errors, there must have been a code induced on Charlie's qubits even before the transmission. Hence, after correcting errors on the 6 qubits of BC systems, Bob measures the same stabilizers as Alice's code but on his qubits. This produces rows 4 and 5 in Step (4) of Table <ref type="table">2</ref>, and row 6 gets updated as per the stabilizer formalism. When looking at rows 7 and 8 of Step (3), it is evident that one can correspondingly multiply them with these new rows 4 and 5 to produce the same code just on Charlie's qubits. This phenomenon extends to general stabilizer codes as well, where the joint stabilizers &#949; <ref type="bibr">Algorithm 2)</ref>. Any purely Z-type stabilizer directly carries over to Charlie (without the above argument) as follows. At the beginning of the protocol, we can rewrite the E(</p><p>, where E(0, z)-s are the purely Z-type stabilizer generators of the code. This subset of rows will never be replaced by stabilizer measurements since they commute with other stabilizers. After Alice's measurements, there will be rows corresponding to &#949; A z E(0, z) A , which can be multiplied respectively with the aforesaid subset of rows to obtain &#949; A z E(0, z) B . Just like we rewrote a subset of the first n rows, we can rewrite a subset of the second n rows to obtain E([0 A , 0 B , 0 C ], [0 A , z B , z C ]), which when multiplied with &#949; A z E(0, z) B produces the desired &#949; A z E(0, z) C for Charlie's code. See Appendix D.2 for some related discussion. In order to merge this phenomenon for purely Z-type operators with the general signs &#949; A i &#949; B i (-1) a i b T i for Charlie, we set &#949; B i := +1 whenever a i = 0, as mentioned in Algorithm 2.</p><p>Now, Bob has the parity-check matrix shown in Step (4) but without the new signs &#180;, &#179; 1 , &#179; 2 , &#179; 3 , which will be introduced by the channel during transmission of Charlie's qubits. He sends Charlie his qubits (over a noisy Pauli channel), the code stabilizer generators, along with the corresponding signs {&#949;</p><p>, and the logical Z and X operators.</p><p>Finally, Charlie measures these generators and fixes errors based on discrepancies in signs with respect to {&#949;</p><p>} (the additional signs (-1) a i b T i do not make a difference for this example). In the matrix in Step (4) of Table <ref type="table">2</ref>, after excluding the three sets of code stabilizers, we see that there are 3 rows left which exactly correspond to the logical GHZ stabilizers, where we have defined the logical operators Z = ZZZ, X = IIY = Y 3 for the code. Therefore, we have shown that after all steps of the protocol, the logical qubits of A, B, and C are in the GHZ state. Since the signs of the stabilizer generators can be different for each of the three parties, although their logical X and Z operators are the same, the encoding unitary can be slightly different. If they each perform the inverse of their respective encoding unitaries on their qubits, then the logical GHZ state is converted into a physical GHZ state.</p><p>It might seem like this last step requires coordination among all three of them, which would require two-way communications between parties. However, this is not necessary as Alice can perform the unitary on her qubits once she sends the 6 qubits to Bob, and Bob can perform the unitary on his qubits once he sends the 3 qubits to Charlie. Subsequent operations will necessarily commute with these local unitaries as those qubits are not touched by the remaining parties in the protocol.</p><p>Hence, we have illustrated a complete GHZ distillation protocol, although much care must be taken while executing the steps for an arbitrary code. For example, the local Clifford on C must be determined by solving a set of linear equations and finding a bi-nary symmetric matrix that specifies the diagonal Clifford, via the connection to binary symplectic matrices <ref type="bibr">[48,</ref><ref type="bibr">49]</ref>. This is discussed in detail in Appendix D.1. Similarly, the logical operators of the code that are compatible with our analysis of the protocol must be determined by simulating Alice's part of the protocol and applying some linear algebraic arguments. For a general <ref type="bibr">[[n, k, d]</ref>] code, there will be 3k non-code-stabilizer rows at the end, and one needs to identify k pairs of logical X and Z operators for the code from these rows. Although any valid definition of logical Paulis would likely suffice, we use Algorithm 3 to define them so that they naturally fit our analysis. The explanations for the steps involved in this algorithm are given in Appendix D.2. In order to keep the main paper accessible, we have moved the discussion on implementation details to Appendix D.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C.1 Placement of Local Clifford and Distillation Performance</head><p>In our description of the protocol above, we mentioned that Alice performs the local Clifford &#8730; Z &#185;3 on the qubits of system C in order to make Charlie's code the same as Alice's and Bob's. However, due to this operation, the joint BC code (in Step ( <ref type="formula">4</ref>)) cannot distinguish between Bob's qubits and Charlie's qubits. Indeed, consider the two-qubit operator X B 1 X C 1 . This commutes with all 5 stabilizer generators of this code, although just X B 1 or just X C 1 would have anticommuted with the first generator</p><p>Therefore, if the true error is X C 1 , then the maximum likelihood decoder will correct it with X B 1 , which results in a logical error. Of course, the 3-qubit code only has distance 1, but even if we consider the same 5-qubit code as in Section 4, the above phenomenon will still occur. In effect, the induced joint BC code has distance dropping to 2 whenever Alice's code does not have any purely Z-type stabilizer. If we do not perform the diagonal Clifford at all, then in such cases Charlie's code will have only distance 1.</p><p>To mitigate this, we can instead make Bob perform the same diagonal Clifford operation on Charlie's qubits. This ensures that the stabilizers for the BC code induced by Alice's code are of the form E(a, b) B &#185; E(a, 0) C , or just E(0, b) B whenever the stabilizer is purely Z-type. If Alice's code has good distance properties, then this joint BC code will have at least that much protection for Bob's qubits. Although the C parts of the stabilizers are purely X-type, the additional GHZ stabilizers Z B i Z C i help in detecting X-errors on system C as well. Alternatively, one could make Alice perform one type of diagonal Clifford and Bob perform another diagonal Clifford, both on system C, to make both the BC code as well as Charlie's code as good as possible. In future work, we will investigate these interesting degrees of freedom.</p><p>We developed a MATLAB simulation of this protocol<ref type="foot">foot_4</ref> and tested it using the [[5, 1, 3]] perfect code defined by S = &#239; XZZXI, IXZZX, XIXZZ, ZXIXZ &#240;. The result is shown as the green curve marked 'purely X code for C' in Fig. <ref type="figure">6</ref>. When compared to the standard QEC performance of this code on the depolarizing channel, we see that the exponent is worse. This is because, by the arguments above, all non-purely Z-type stabilizers of Q(S) get converted into a purely X-type stabilizer for Charlie's code. To mitigate this, we make Alice perform a local diagonal Clifford operation on qubits C to transform E(a i , 0) C into E(a i , b i ) C later. The performance of this is shown as the solid blue curve marked 'same code for all', which is equally worse. This time the reason is that the BC code Q(S &#8242; ) has stabilizers of the form E(a i , b i ) B &#185; E(a i , b i ) C , which means that the code cannot distinguish the i-th qubit of B and the i-th qubit of C. Finally, we make Bob perform the aforesaid diagonal Clifford on qubits C, and this produces the solid dark red curve marked  'local Clifford by B'. Clearly, the exponent now approaches the "fundamental limit" set by standard QEC on the depolarizing channel.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D Implementation Details of Protocol I</head><p>In this appendix we provide additional details regarding the implementation of Protocol I, which is also relevant for Protocol II. Specifically, we discuss how to identify the appropriate diagonal Clifford to be applied on qubits C, and explain the reasoning behind Algorithm 3 that generates logical Pauli operators for any stabilizer code. The discussion related to Algorithm 3 will also clarify some aspects of the distillation protocol.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D.1 Diagonal Clifford on qubits C</head><p>A diagonal Clifford unitary on n qubits can be described using an n &#215; n binary symmetric matrix R as <ref type="bibr">[48,</ref><ref type="bibr">49]</ref> U R = where b * aR is the entrywise product of the two binary vectors. It is well-known that any diagonal Clifford operator can be formed using the phase gate, P , and the controlled-Z gate, CZ, defined as</p><p>1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 -1</p><p>Set n = 2. Then, the R matrices for P 1 = (P &#185; I), P 2 = (I &#185; P ), and CZ are respectively</p><p>, and R CZ = 0 1 1 0 .</p><p>This generalizes naturally to more than 2 qubits. The diagonal entries of R describe which qubits get acted upon by P , and the pairwise off-diagonal entries describe which pairs of qubits get acted upon by CZ <ref type="bibr">[49]</ref>.</p><p>In our protocol, from Theorem 6 we observed that Alice's stabilizers of the form E(a i , b i ), with a i &#824; = 0, become the stabilizer E(a i , 0) for Charlie. This also means that any logical X operator of the form E(c j , d j ) would have transformed into E(c j , 0) (e.g., see last row of Step (2) in Table <ref type="table">2</ref> and compare it to the last row of Step (3)). Therefore, the purpose of the diagonal Clifford on qubits C is to convert the stabilizers E(a i , 0) back into E(a i , b i ) and the logical X operators E(c j , 0) back into E(c j , d j ). Given the above insight into diagonal Clifford operators, we want to find a binary symmetric matrix R such that U R E(a i , 0)U R = E(a i , b i ) for all i = 1, 2, . . . , r X (using notation in Algorithm 3) and U R E(c j , 0)U R = E(c j , d j ) for all j = 1, 2, . . . , k. Thus, we need a feasible solution R for {a i R = b i , i = 1, 2, . . . , r X } and {c j R = d j , j = 1, 2, . . . , k}.</p><p>We solve this system of linear equations on a binary symmetric matrix as follows. First, let A be the matrix whose rows are {a i } and {c j }, and let B be the matrix whose rows are {b i } and {d j }. Then, we have the system AR = B. We recall the vectorization property of matrices, which implies that vec(QU V ) = (V T &#185; Q)vec(U ).</p><p>(81)</p><p>Here, vectorization of a matrix is the operation of reading the matrix entries columnwise, top to bottom, and forming a vector (e.g., this is done through the command U(:) in MATLAB). Setting Q = A, U = R, V = I, we get (I &#185; A)vec(R) = vec(B), which is a standard linear algebra problem for the unknown vector vec(R). However, we desire a binary symmetric matrix R. We impose this constraint as (I -W )vec(R) = 0, where 0 denotes the all-zeros vector of length n 2 , and W is the permutation matrix which transforms vec(Q) into vec(Q T ) for any matrix Q. In summary, we obtain the desired R (or equivalently the diagonal Clifford U R ) by solving find R s.t. (I &#185; A)vec(R) = vec(B),</p><p>Since R is symmetric, it has n(n + 1)/2 degrees of freedom, which accounts for the second constraint. The matrix A has r X + k &lt; n rows and the Kronecker product with I results in n(r X + k) constraints on n(n + 1)/2 variables. It remains to be shown if there is always a feasible solution for any valid A and B. Note that [A, B] represents a matrix whose rows are stabilizers and logical X operators. This means any pair of rows must be orthogonal with respect to the symplectic inner product, which implies that AB T + BA T = 0. Thus, a given A and B is valid if and only if AB T is symmetric.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>Accepted in Quantum 2024-01-11, click title to verify. Published under CC-BY 4.0.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_1"><p>Later, in the GHZ protocol, we restrict this choice to be the first element in the table that anticommutes Accepted in Quantum</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_2"><p>2024-01-11, click title to verify. Published under CC-BY 4.0.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="21" xml:id="foot_3"><p>// Now, H has n rows where the last k rows correspond to the logical Z generators E(0, f j ) Accepted in Quantum 2024-01-11, click title to verify. Published under CC-BY 4.0.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_4"><p>Implementation available online: https://github.com/nrenga/ghz_distillation_qec</p></note>
		</body>
		</text>
</TEI>
