Pith.

Quantum Physics · arXiv:2610.38189 v1 · submitted 28 Oct 2026 · 40 references

Ancilla-free randomized Toffoli gates and the T-count of Boolean oracles

Arul Rhik Mazumder

The paper says

“In fault-tolerant Clifford+T circuits, a Boolean oracle costs T gates and extra qubits, and on four or more qubits every exact Toffoli gate needs an extra qubit.”

more of the abstract

Gosset, Kothari and Zhang showed that sampling a fresh random circuit for each call makes the T-count of the Toffoli gate independent of its size, but a direct implementation of their sampler uses about one extra qubit per bit of precision. We show that computing the sampled parities in place, on the gate's own controls, removes every extra qubit once the gate is large enough: each random circuit then uses about 8 T gates per bit of precision and borrows only the gate's own idle inputs. This is one T gate more per circuit than the best measurement-free variant that keeps one clean ancilla. The same holds for exclusive-ors of indicators of affine subspaces, such as equality tests and checks of linear equations. For randomized circuits that do not measure, this is within a factor of eight of optimal up to an additive constant, even with extra qubits, and when each random circuit computes a Boolean function exactly, closing the factor asymptotically is equivalent to determining the leading constant in the T-count of exact multi-controlled Toffoli gates. Finally, the oracle of the indicator of a random set of fixed density needs exponentially many T gates at constant error, while that of an affine subspace of the same density needs a constant number, and extra qubits reduce the exponential cost only quadratically.

from the abstract

Pith says

Machine review · deepseek-v4-flash · 31 Oct 2026 · what was read was not recorded · not checked by a person

It can be wrong. Challenge this review or reply to it.

Holds up. Correct, carefully accounted construction that strips the ancillae from GKZ's randomized Toffoli, with a factor-eight bound and a clean reduction to exact multi-controlled NOTs; the win is real but narrow, and the paper says so. This line is wrong

7 minor

How often objections from reviews like this one are right: not yet measured

Are you an author? What you can do.

Not checked: figures, code, what the 40 references say.

7 minor objections

The paper says, at Proposition 19, proof

Pith says: minor objection 1 of 7

The displayed error bound α=2^{-q}−δ/2 is too large by a factor of two; the preceding counting gives (2^{n−q}−δ2^n)2^{-(n+1)}=2^{-q-1}−δ/2. The subsequent line uses 2^{-q}≤2ε+δ, which follows from the corrected α, so the final bound of Proposition 19 is unaffected, but the display and the following '1/2≥α' sentence should be corrected.

The paper says, at Appendix B.2, proof of Theorem 12

Pith says: minor objection 2 of 7

The sentence 'We run the branch of Construction 8 on z' is ambiguous because Construction 8 as written starts with X layers on all n−1 coordinates, while the affine-term argument needs to accept z=0 by testing the parities of z itself. Please say explicitly that the initial X layer is omitted or absorbed into the affine offsets; otherwise a literal reading would test z=1^r rather than z=0.

show 5 more

The paper says, at Abstract and Section 1.3

Pith says: minor objection 3 of 7

The phrase 'extra qubits reduce the exponential cost only quadratically' is imprecise. Theorem 5 and Theorem 28 show that the T-count goes from about 2^{n−k} without ancillae to about 2^{(n−k)/2} with clean ancillae, so the exponent is halved and the cost is square-rooted, not reduced by a polynomial factor. Please rephrase this sentence.

The paper says, at Abstract and Table 1

Pith says: minor objection 4 of 7

The phrase 'the best measurement-free variant that keeps one clean ancilla' should read 'the best known' unless the paper proves a lower bound for that class, and the comparison should state that it is at the same ℓ and diamond error ε.

The paper says, at Section 1.3, paragraph introducing Theorem 20

Pith says: minor objection 5 of 7

The informal phrase 'f needs at least log(1/max{δ,2ε})−3 T gates' should be phrased as 'every mixture has a branch with at least ...' to match Theorem 20 and the paper's definition of branch cost.

The paper says, at Reproducibility

Pith says: minor objection 6 of 7

The code link is welcome, but please deposit a permanent archive (for example a Zenodo DOI) and map each script to the numerical claim it checks, such as the Table 1 entries, the Figure 3 curves, and the Corollary 15 arithmetic.

The paper says, at References

Pith says: minor objection 7 of 7

Several comparison numbers and the GKZ reduction depend on arXiv-only references [8], [11], [14], [22], and [25]–[27]. Please state their publication status and pin theorem numbers to a stable version at production, so the comparisons remain reproducible.

What would settle it

Brute-force the load-bearing point at n = 5, ℓ = 3 (ε = 0.6 gives ⌈log(4/ε)⌉ = 3, and ⌈3ℓ/2⌉ = 5). Explicitly build Γ, embed Maslov's C^3X (one borrowed qubit, 16 T gates) on data coordinates 1–3 with coordinate 4 borrowed and coordinate 5 the target, and apply Γ† and the X layers. Compute the full 2^5 × 2^5 unitary and verify it equals U_h with h(x) = 1 ⊕ OR(a_j·(x⊕1)) for the sampled independent parities, and that the borrowed coordinate's reduced state is unchanged on a maximally entangled input. If the unitary equals U_h exactly and uses 16 T gates, the no-ancilla claim survives; if not, it fails.

from the skeptic's reading

How the review went

4 readings by deepseek-v4-flash · 31 Oct 2026

  1. Reader holds up confidence high
  2. Skeptic partly agrees 2 min 46 s · 33,398 tokens read, 31,613 written
  3. Editor wrote the verdict above 13 s · 34,516 tokens read, 1,356 written
  4. Referee minor revision: 7 minor 7 min 39 s · 33,894 tokens read, 51,310 written

Not run on this paper: the simulated authors' defence.

Pith did not check this review's objections against the paper.

The review in full

The review in brief, machine-written

Bottom line: the construction works, the accounting is honest, and the paper is worth a referee's time. It is narrower than the title suggests, but what is there holds up.

What is new: GKZ sample parities into fresh ancillae, about log(1/eps) of them. Mazumder computes those parities in place on the gate's own controls by an invertible CNOT change of basis, then runs the Cl X on the first l data coordinates and borrows the remaining n-1-l idle ones. The determinant check in Proposition 9 explains why this is not blocked (the branch flips an even number of basis states once l <= n-2), and the error bound in the proof of Theorem 11 is the standard ordered-tuple product, correctly evaluated. The threshold n >= ceil(3l/2) matches Maslov's borrowed-qubit requirement exactly, and the table arithmetic checks out. Theorem 4 is the nicest thing in the paper: for mixtures whose branches are exact oracles, the constant in front of log(1/eps) is pinned to t(k), the exact multi-controlled-NOT cost, up to an additive 24. Theorem 5's separation between affine subspaces and random sets of the same density is also a genuine result, not a corollary in disguise.

On the reader's weakest assumption: I don't think it lands as a correctness worry. Definition 6 explicitly permits a branch to borrow its own qubits, and Barenco's toggle-detection is a linear identity on both values of the borrowed bit, so entangled inputs are fine; the paper states this in A.2 and the restoration follows. What remains is space-time accounting, which Section 4 admits it has not done, and the O(l n) CNOT overhead is real. The Proposition 19 slip (alpha = 2^-q - delta/2 should be 2^-q-1 - delta/2) cancels and does not touch the stated bound. Minor.

The honest framing, which the paper gives itself: at its own Grover example (n=100, l=59) the branches cost 464 T gates against 463 for GKZ with one clean ancilla. You free a qubit for one T gate. That is a good trade only when qubits are the binding resource, and the paper says that too.

Who should read it: people doing fault-tolerant oracle synthesis and anyone tracking the GKZ line. The verification code is useful given the AI-assisted derivation, though it needs a commit hash.

Recommendation: send it out. Ask the referee to check Proposition 19 and to press on whether the no-ancilla branch can be scheduled on a real architecture without disturbing the oracle's inputs mid-circuit.

The strongest objection

No load-bearing concern found. I checked the steps the central claim (Theorem 11) rests on. (i) Construction 8: the branch is Γ (C^ℓX) Γ† with X layers; Γ is an invertible F2-linear CNOT map implemented in place on the n−1 controls, so the ℓ parities occupy ℓ data coordinates and the remaining n−1−ℓ are idle. (ii) The idle coordinates enter only through the toggle-detection identity of Figure 4 / Barenco Lemma 7.2, whose unitarity is a linear identity on both values of the borrowed bit and therefore holds for entangled inputs; the paper states this in Section A.2 and Definition 6. (iii) The determinant check (Proposition 9) gives det U_h = (−1)^{2^{n−1−ℓ}} = 1 for ℓ ≤ n−2, so there is no obstruction, and the explicit construction supplies sufficiency. (iv) The error bound ∏(2^{n−2}−2^i)/(2^{n−1}−2^i) ≤ 2^{−ℓ} is correct, and 4·2^{−ℓ} ≤ ε with ℓ = ⌈log(4/ε)⌉. (v) The threshold n ≥ ⌈3ℓ/2⌉ exactly matches n−1−ℓ ≥ ⌈(ℓ−2)/2⌉. (vi) Table 1 and Corollary 15 arithmetic reproduce (e.g., 8·36−8 = 280, and 16·36−16·13−16 = 352 at n = 50, ℓ = 36). The reader's weakest assumption (borrowing data qubits) is a model/architecture question: the mixed model (Definition 6) defines no-ancilla branches precisely and permits borrowing own qubits, and the cited dirty-qubit constructions restore them. The residual is the space-time accounting acknowledged in Section 4, not a correctness gap. The only genuine slip I see is the factor-2 typo in Proposition 19's intermediate α = 2^{−q} − δ/2 (correct: 2^{−q−1} − δ/2), which cancels and leaves the stated bound 2^{−q} ≤ 2ε + δ; this is already flagged and does not touch Theorem 11.

I read the paper as an attempt to remove the ℓ ancillae of GKZ's sampler by (a) computing sampled parities in place with an invertible CNOT change of basis and (b) borrowing the gate's own idle controls for Maslov's C^ℓX. The condition is exactly n−1−ℓ ≥ ⌈(ℓ−2)/2⌉, i.e., n ≥ ⌈3ℓ/2⌉, and Theorem 11 verifies this. I checked the determinant obstruction, the pointwise miss probability, the diamond-error conversion (Lemma 7), the affine-decomposition composition, the counting bound, and the Table 1 arithmetic; they are internally consistent. The Proposition 19 factor-of-2 typo is real but cancels: the corrected α = 2^{−q−1} − δ/2 yields exactly the stated 2^{−q} ≤ 2ε + δ. On the reader's weakest_assumption: the concern is architectural rather than mathematical. Definition 6 defines no-ancilla branches as unitaries on U's qubits that may borrow them as work qubits, and the cited dirty-qubit constructions (Barenco Lemma 7.2, Maslov Proposition 5) restore borrowed qubits for arbitrary states, so mid-circuit borrowing of data coordinates is a well-defined unitary operation, not an extra assumption. The paper acknowledges in Section 4 that it has not estimated space-time volume on a specific architecture, which is the honest residual. I therefore agree with ACCEPT; the reader's identification of the borrowing question is the right place to look, but it is not a load-bearing vulnerability. The abstract's "reduce the exponential cost only quadratically" is consistent with the standard quadratic-speedup (square-root) reading: Theorem 28 gives 2^{n−k±O(log n)} without ancillae and 2^{(n−k)/2±O(log n)} with clean ancillae.

The referee's report

If the main construction holds—and I found no load-bearing error in it—the result removes the per-branch ancilla overhead of GKZ's sampler for sufficiently large Toffoli gates and gives an explicit T-count with no fitted parameters. The affine-decomposition extension is useful for structured oracles such as equality tests and linear-system membership, and the lower bounds sharpen how close this family is to optimal. The random-set versus affine-subspace separation is a clean conceptual contribution. The manuscript also deserves credit for explicit error bounds and for a reproducibility repository that checks the constructions and numerical claims; these are substantive strengths, not decoration. The issues I raise are local corrections and clarifications, not a challenge to the central claim.

Pith's reading of the paper (a machine's summary, not the authors')

A fault-tolerant Boolean oracle is charged in two currencies: T gates, each paid for with a distilled magic state, and the extra qubits it occupies. For the Toffoli gate these pull against each other. On four or more qubits no exact Clifford+$T$ circuit exists without an extra qubit, because such circuits always have determinant one and an exact Toffoli gate does not. Randomization was already known to break the dependence of the T-count on the number of controls, but the known sampler writes its sampled parities into one fresh clean qubit per parity, so it buys T gates with ancillae. This paper shows that those parities can be written in place, on the gate's own controls, by an invertible CNOT change of basis, and that the controls left idle during the final multi-controlled NOT can be borrowed as its scratch space and handed back unchanged. The result is a branch with no ancilla, no measurement and exactly $8\ell-8$ T gates, where $\ell=\lceil\log(4/\varepsilon)\rceil$, as soon as the gate has at least about one and a half times as many qubits as the branch has parity checks. For a reader who cares about running a computation on a machine with few logical qubits, that is a qubit bought for one T gate per call.

What carries the argument. Three pieces carry the argument. First, an in-place change of basis: because the sampled masks only matter through their span, a single invertible CNOT circuit $\Gamma$ with $y\mapsto(a_1\cdot y,\dots,a_{n-1}\cdot y)$ writes all $\ell$ parities onto the gate's own controls and is undone afterwards by $\Gamma^{\dagger}$, so no register is ever needed for the parity values. Second, the borrowed-qubit multi-controlled NOT: a borrowed qubit may hold any state, even one entangled with the rest of the computation, provided it is returned unchanged, and Maslov's circuit for $C^{\ell}X$ builds the gate from $8\ell-8$ T gates using $\lceil(\ell-2)/2\rceil$ such qubits via relative-phase Toffolis whose phases cancel in pairs. Third, a determinant count: a Clifford+$T$ circuit on at least four qubits has determinant one, an oracle flipping the target on $N$ strings has determinant $(-1)^N$, and a branch testing $\ell$ independent parities flips it on $2^{n-1-\ell}$ strings, which is even precisely when $\ell\le n-2$ — this is what makes the ancilla-free branch possible at all and what fixes the boundary of the construction. The error bookkeeping is a separate short lemma: a mixture whose branches miss each input with probability at most $p$ is within diamond distance $4p$ of the target, so $\ell=\lceil\log(4/\varepsilon)\rceil$ parities suffice, and drawing the masks independently rather than uniformly makes the T-count exact.

Core claim. The central claim is Theorem 11: if $n\ge\lceil 3\ell/2\rceil$ with $\ell=\lceil\log(4/\varepsilon)\rceil$, then the $n$-qubit Toffoli gate has a mixture of unitary Clifford+$T$ circuits at diamond error $\varepsilon$ whose branches use exactly $8\ell-8$ T gates, no ancilla and no measurement. A branch draws $\ell$ linearly independent parity masks, flips all controls, applies the invertible CNOT circuit that moves those parities onto the first $\ell$ controls, applies an $\ell$-controlled NOT active on zero, and undoes the CNOT circuit. The determinant obstruction that forbids exact ancilla-free Toffolis does not apply, because a branch that tests $\ell$ independent parities flips the target on $2^{n-1-\ell}$ strings, an even number once $\ell\le n-2$. The remaining $n-1-\ell$ controls are idle during the multi-controlled NOT and serve as the borrowed qubits that Maslov's construction needs, $\lceil(\ell-2)/2\rceil$ of them, which is exactly the condition $n\ge\lceil 3\ell/2\rceil$; when fewer are idle the paper falls back to Zindorf and Bose's borrowed-qubit circuit at $16\ell-16d-16$ T gates. Three further results frame the claim. A matching lower bound says every mixture, with any ancillae in any initial state, has a branch with at least $\min\{n-1,\log((1-\varepsilon)/\varepsilon)\}-2$ T gates, so the branches are optimal to within a factor of eight up to an additive constant. For mixtures whose branches are exact Boolean oracles, the branch cost of the Toffoli gate is pinned to within an additive constant of $t(K)$, the least T-count of an exact $K$-controlled NOT with clean ancillae, so closing the factor of eight is equivalent to improving exact multi-controlled NOTs. And at constant error the cost of an oracle is not determined by its distance from the nearest affine function: an affine subspace of codimension $k$ has an oracle of at most 24 T gates while a random set of the same density needs about $2^{(n-k)/2}$ T gates with clean ancillae and about $2^{n-k}$ without.

The premise it rests on. The construction only becomes ancilla-free by treating the Toffoli gate's own remaining input qubits as scratch space for its one non-Clifford gate and handing them back unchanged, which is legitimate for borrowed qubits in the abstract but is only a real saving if a compiler can touch live data mid-circuit and if logical qubits, rather than T gates, are the binding resource.

If the paper is right (Pith's inferences, not the authors')

Any oracle that is an exclusive-or of $J$ indicators of affine subspaces — equality tests, membership in a linear code or in the solution set of a linear system, the reflection about $|0^n\rangle$ used in amplitude amplification, and the leaf decomposition of a parity decision tree — gets the same treatment: no ancilla, no measurement, and at most $8J\ell_J$ T gates per branch, independent of $n$.

The branches land within a factor of eight of the best possible mixture for the Toffoli gate, even one allowed arbitrarily many ancillae in an arbitrary initial state, so the remaining gap is a constant, not a scaling law.

For mixtures whose branches each compute some Boolean oracle exactly, the branch cost of the Toffoli gate sits within an additive constant of the T-count of an exact multi-controlled NOT, so any improvement to exact multi-controlled NOT synthesis transfers immediately to randomized Toffoli circuits and vice versa.

At constant error the cost of a Boolean oracle is not controlled by how far it lies from the nearest affine function: two functions at the same distance, one an affine subspace and one a random set of the same density, differ by an exponential factor in T gates, and clean ancillae reduce that exponential cost only from about $2^{n-k}$ to about $2^{(n-k)/2}$.

In the concrete case of a Grover-scale workload at $n=100$ with a total error of $10^{-2}$, each oracle call costs 464 T gates on the oracle's own 101 qubits against 791 with one clean ancilla and 1568 with one borrowed qubit for an exact circuit, so the saving is one logical qubit for roughly one T gate per call.

The saving is a property of the template, not of the Toffoli gate: any randomized branch whose only non-Clifford gate is a multi-controlled NOT on a handful of parity values can be rewritten to compute those values in place and borrow the untouched wires as workspace, which suggests the same accounting applies to randomized state preparation and to block-encoding oracles built the same way.

Because the trade is one qubit for one to five T gates, the construction's value depends on the relative price of the two resources; magic-state cultivation, which makes T states cheap, would move architectures toward the qubit-limited regime where these branches win, and a two-resource cost model would locate the crossover explicitly.

The additive equivalence with the exact multi-controlled NOT cost means the factor of eight is not really about randomization at all; a reader wanting to close it should look for relative-phase-gate identities that lower $t(k)/k$ below its current best range, since any such gain propagates to the randomized setting without further work.

The XOR-of-affine-subspaces number $J$ that upper-bounds the cost in the structured case is the obvious candidate for a compiler heuristic, and the open question the paper raises — whether the cost is also bounded below by a function of $J$ — is the concrete test of whether that heuristic is sound rather than merely convenient.

Check this review

Pith stored no record of this review's passes and took no fingerprint of it. Reviews made by code from 13 Nov 2026 on carry both.

How often reviews like this one are right

Reviews like this one: written by deepseek-v4-flash, where what was read was not recorded.

How often objections from reviews like this one are right: not yet measured

Every value above, in the review's public record (JSON)

Reviews by people

This review was written by a machine. No person has reviewed this paper on Pith yet. A scientist listed on Pith can review it for a fee, and their review is published here whatever it concludes.

Request a human review

How Pith checks papers · The full audit of this paper

The paper

Abstract

In fault-tolerant Clifford+T circuits, a Boolean oracle costs T gates and extra qubits, and on four or more qubits every exact Toffoli gate needs an extra qubit. Gosset, Kothari and Zhang showed that sampling a fresh random circuit for each call makes the T-count of the Toffoli gate independent of its size, but a direct implementation of their sampler uses about one extra qubit per bit of precision. We show that computing the sampled parities in place, on the gate's own controls, removes every extra qubit once the gate is large enough: each random circuit then uses about 8 T gates per bit of precision and borrows only the gate's own idle inputs. This is one T gate more per circuit than the best measurement-free variant that keeps one clean ancilla. The same holds for exclusive-ors of indicators of affine subspaces, such as equality tests and checks of linear equations. For randomized circuits that do not measure, this is within a factor of eight of optimal up to an additive constant, even with extra qubits, and when each random circuit computes a Boolean function exactly, closing the factor asymptotically is equivalent to determining the leading constant in the T-count of exact multi-controlled Toffoli gates. Finally, the oracle of the indicator of a random set of fixed density needs exponentially many T gates at constant error, while that of an affine subspace of the same density needs a constant number, and extra qubits reduce the exponential cost only quadratically.

The paper's own sentences, arranged, kept beside the review and separate from it. Each label is drawn from a closed vocabulary; the number beside it is the probability the classifier gave that label. No sentence in this record was written by a model.

abstract compiled · 2026-10-30

The authors' main claim, as the classifier picked it out 1.00

“We show that computing the sampled parities in place, on the gate's own controls, removes every extra qubit once the gate is large enough: each random circuit then uses about 8 T gates per bit of precision and borrows only the gate's own idle inputs.”

How the main claim is stated: asserted 1.00

What the abstract itself states, as probabilities: claims first 0.07 · states limitation 0.94 · human participants 0.01 · controlled comparison 0.39 · randomized assignment 0.08 · states quantitative result 0.98 · compares with prior results 0.98 · mentions code or data availability 0.02

The abstract, sentence by sentence

This table labels the abstract only (arXiv listing abstract v1). The number is the probability the classifier gave the label.

SentenceRoleThe authors' own workStates the main conclusionStrength
In fault-tolerant Clifford+T circuits, a Boolean oracle costs T gates and extra qubits, and on four or more qubits every exact Toffoli gate needs an extra qubit. background 1.00 0.08 0.04 asserted 1.00
Gosset, Kothari and Zhang showed that sampling a fresh random circuit for each call makes the T-count of the Toffoli gate independent of its size, but a direct implementation of their sampler uses about one extra qubit per bit of precision. background 0.99 0.04 0.05 asserted 1.00
We show that computing the sampled parities in place, on the gate's own controls, removes every extra qubit once the gate is large enough: each random circuit then uses about 8 T gates per bit of precision and borrows only the gate's own idle inputs. contribution 0.59 0.95 0.81 asserted 1.00
This is one T gate more per circuit than the best measurement-free variant that keeps one clean ancilla. limitation 0.83 0.76 0.09 asserted 1.00
The same holds for exclusive-ors of indicators of affine subspaces, such as equality tests and checks of linear equations. result 0.91 0.76 0.08 asserted 1.00
For randomized circuits that do not measure, this is within a factor of eight of optimal up to an additive constant, even with extra qubits, and when each random circuit computes a Boolean function exactly, closing the factor asymptotically is equivalent to determining the leading constant in the T-count of exact multi-controlled Toffoli gates. result 0.54 0.81 0.17 asserted 1.00
Finally, the oracle of the indicator of a random set of fixed density needs exponentially many T gates at constant error, while that of an affine subspace of the same density needs a constant number, and extra qubits reduce the exponential cost only quadratically. result 1.00 0.80 0.08 asserted 1.00

What kind of paper the classifier reports this is: theoretical result 0.63 · evidence from proof or derivation 0.98

What was examined, and what was not

Sources read

  • arXiv listing abstract v1

Not examined

  • full text
  • figures and tables
  • references and citing sentences
  • relations to other papers

Levels run

  • P abstract

Not run

  • S sections
  • T body sentences
  • C citations
  • R cross-paper relations

How the labels were made

Compiled by classifier-1.13.0 via TypeSafe API, question bank abstract-p1-20260923, 2026-10-30: 1 request, 5,881 input tokens.

Every quoted sentence on this record is the authors'. Every label is from Pith's closed vocabulary, with the probability shown beside it. This record as JSON

Figures (4)
Figure 1 of the paper
Figure 1. A direct implementation of one branch of GKZ’s sampler. A slash marks a bundle of qubits, and 𝑋 ⊗ (𝑛−1) flips every control. The CNOT circuit 𝑃 writes the ℓ sampled parities into ℓ clean ancillae, and the open circle is a control active on 0. The multi-controlled NOT is the only non-Clifford gate, and 𝑃 † returns the ancillae to |0⟩. We work in GKZ’s mixed model (Definition 6). A circuit implements a unitary 𝑈 if it applies 𝑈 up to a global phase. A mixture is a probability distribution over unitary Clifford+𝑇 circuits, called branches, which do not measure or adapt. Its error is the
Figure 2 of the paper
Figure 2. One branch of Theorem 1, drawn as in
Figure 3 of the paper
Figure 3. plots the three regimes at 𝜀 = 10−6 . Proof of Theorem 11. For the error, fix an input 𝑥 and let 𝑦 = 𝑥 ⊕ 1. By Construction 8, the branch flips the target exactly when 𝑎 𝑗 · 𝑦 = 0 for every 𝑗 ≤ ℓ. At 𝑦 = 0 this always holds, and Toff𝑛 flips the target too, so the branch is correct. At 𝑦 ≠ 0 the gate Toff𝑛 does not flip the target, so the branch errs exactly when every 𝑎 𝑗 lies in the hyperplane {𝑎 : 𝑎 · 𝑦 = 0}, of dimension 𝑛 − 2. A space of dimension 𝑘 contains Îℓ−1 𝑖=0 (2 𝑘 − 2 𝑖 ) independent ordered ℓ-tuples, since the 𝑖th vector must avoid the span of the earlier ones. Compar
Figure 4 of the paper
Figure 4. Toggle detection. The target is toggled by

Figures are the authors', reproduced from the paper.

References (40)
  1. [1] Austin G. Fowler and Craig Gidney. Low overhead quantum computation using lattice surgery. 2018. arXiv:1808.06709 on PithPith's reviewarXiv
  2. [2] Daniel Litinski. A Game of Surface Codes: Large-Scale Quantum Computing with Lattice Surgery. Quantum, 3:128, 2019. arXiv:1808.02892 on PithPith's reviewarXiv
  3. [3] Lov K. Grover. A fast quantum mechanical algorithm for database search. InProceedings of the 28th Annual ACM Symposium on Theory of Computing, pages 212–219, 1996 on Pith
  4. [4] András Gilyén, Yuan Su, Guang Hao Low, and Nathan Wiebe. Quantum singular value transformation and beyond: exponential improvements for quantum matrix arithmetics. InProceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing, pages 193–204, 2019 on Pith
  5. [5] Brett Giles and Peter Selinger. Exact synthesis of multiqubit Clifford+T circuits.Physical Review A, 87(3):032332, 2013. arXiv:1212.0506 on PithPith's reviewarXiv
  6. [6] Dmitri Maslov. Advantages of using relative-phase Toffoli gates with an application to multiple control Toffoli optimization.Physical Review A, 93(2):022311, 2016 on Pith
  7. [7] Tanuj Khattar and Craig Gidney. Rise of conditionally clean ancillae for efficient quantum circuit constructions, 2024. Quantum 9, 1752 (2025) on Pith
  8. [8] Abhoy Kole, Majd Assaad, Till Schnittka, and Rolf Drechsler. Adaptive Clifford+𝑇 decomposition of large Toffoli gates with one clean ancilla. arXiv:2605.18169, 2026 on PithPith's reviewarXiv
  9. [9] Ben Zindorf and Sougato Bose. Efficient implementation of multi-controlled quantum gates, 2024. arXiv:2404.02279 on PithPith's reviewarXiv
  10. [10] Michael Beverland, Earl Campbell, Mark Howard, and Vadym Kliuchnikov. Lower bounds on the non-Clifford resources for quantum computations.Quantum Science and Technology, 5(3):035009, May 2020 on Pith
  11. [11] David Gosset, Robin Kothari, and Chenyi Zhang. Multi-qubit Toffoli with exponentially fewer T gates. arXiv:2510.07223v1; theorem numbers refer to v1, 2025 on PitharXiv
  12. [12] CodyJones.Low-overheadconstructionsforthefault-tolerantToffoligate.PhysicalReviewA,87(2):022328, on Pith
  13. [13] Craig Gidney. Halving the cost of quantum addition.Quantum, 2:74, 2018. arXiv:1709.06648 on PithPith's reviewarXiv
  14. [14] AbhoyKole,TillSchnittka,andRolfDrechsler.Measurement-drivenadaptivelow-overheadimplementation of multi-controlled Toffoli gates. arXiv:2605.18159, 2026 on PithPith's reviewarXiv
  15. [15] Guangyi Li, Yu Gan, Zeguan Wu, Xueyue Zhang, Zheshen Zhang, and Junyu Liu. Stab-QRAM: A Clifford-only quantum oracle for affine Boolean data. arXiv:2509.26494, 2025 on PithPith's reviewarXiv
  16. [16] David Gosset, Robin Kothari, and Kewen Wu. Quantum state preparation with optimal T-count. arXiv:2411.04790, 2024 on PithPith's reviewarXiv
  17. [17] Guang Hao Low, Vadym Kliuchnikov, and Luke Schaeffer. Trading T gates for dirty qubits in state preparation and unitary synthesis.Quantum, 8:1375, 2024. arXiv:1812.00954 on PithPith's reviewarXiv
  18. [18] Adriano Barenco, Charles H. Bennett, Richard Cleve, David P. DiVincenzo, Norman Margolus, Peter Shor, Tycho Sleator, John A. Smolin, and Harald Weinfurter. Elementary gates for quantum computation. Physical Review A, 52(5):3457–3467, 1995. arXiv:quant-ph/9503016 on PithPith's reviewarXiv
  19. [19] Ben Schaeffer and Marek Perkowski. Synthesis of reversible circuits based on EXORs of products of EXORs. In2013 IEEE 43rd International Symposium on Multiple-Valued Logic (ISMVL), 2013 on Pith
  20. [20] Sampath Kannan, Elchanan Mossel, Swagato Sanyal, and Grigory Yaroslavtsev. Linear sketching overF2. In33rd Computational Complexity Conference (CCC 2018), volume 102 ofLIPIcs, pages 8:1–8:37, 2018. arXiv:1611.01879 on PithPith's reviewarXiv
show 20 more
  1. [21] Ashley Montanaro and Tobias Osborne. On the communication complexity of XOR functions. arXiv:0909.3392, 2009 on PithPith's reviewarXiv
  2. [22] Tongyang Li, Fengning Ou, Xinzhao Wang, Penghui Yao, Pei Yuan, and Shengyu Zhang. Optimal T counts under sparsity: from QROM to state preparation and block encoding. arXiv:2607.28260, 2026 on PithPith's reviewarXiv
  3. [23] Earl Campbell. Shorter gate sequences for quantum computing by mixing unitaries.Physical Review A, 95:042306, 2017 on Pith
  4. [24] Matthew B. Hastings. Turning gate synthesis errors into incoherent errors.Quantum Information and Computation, 17:488–494, 2017 on Pith
  5. [25] Uma Girish, Alex May, Natalie Parham, and Henry Yuen. Magic and communication complexity. arXiv:2510.07246, 2025 on PitharXiv
  6. [26] JingquanLuoandLvzhouLi. SparsequantumstatepreparationwithsublinearT-count. arXiv:2608.00414, 2026 on PithPith's reviewarXiv
  7. [27] Junhong Nie and Wei Zi. Nearly optimal quantum circuits for Boolean oracles. arXiv:2607.28402, 2026 on PithPith's reviewarXiv
  8. [28] Vivek V. Shende, Aditya K. Prasad, Igor L. Markov, and John P. Hayes. Synthesis of reversible logic circuits.IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 22(6):710–722, on Pith
  9. [29] Junhong Nie, Wei Zi, and Xiaoming Sun. Quantum circuit for multi-qubit Toffoli gate with optimal resource. arXiv:2402.05053, 2024 on PithPith's reviewarXiv
  10. [30] KamalikaFazel,MitchellA.Thornton,andJacquelineE.Rice. ESOP-basedToffoligatecascadegeneration. In2007 IEEE Pacific Rim Conference on Communications, Computers and Signal Processing, pages 206–209, 2007. 26 on Pith
  11. [31] Giulia Meuli, Mathias Soeken, Earl Campbell, Martin Roetteler, and Giovanni De Micheli. The role of multiplicative complexity in compiling low T-count oracle circuits. In2019 IEEE/ACM International Conference on Computer-Aided Design (ICCAD), pages 1–8, 2019. arXiv:1908.01609 on PithPith's reviewarXiv
  12. [32] Craig Gidney, Noah Shutty, and Cody Jones. Magic state cultivation: growing T states as cheap as CNOT gates. arXiv:2409.17595, 2024 on PithPith's reviewarXiv
  13. [33] E. Rosenfeld, C. Gidney, et al. Magic state cultivation on a superconducting quantum processor. arXiv:2512.13908, 2025 on PitharXiv
  14. [34] RohanMehta,VarunMenon,HengyunZhou,MikhailD.Lukin,andJ.PabloBonillaAtaides. Thepractical cost of magic state cultivation. arXiv:2610.06828, 2026 on PithPith's reviewarXiv
  15. [35] Amara Katabarwa, Katerina Gratsea, Athena Caesura, and Peter D. Johnson. Early fault-tolerant quantum computing.PRX Quantum, 5:020101, 2024 on Pith
  16. [36] Jona Erle and Bálint Koczor. Nearly optimal amplitude estimation at any depth. arXiv:2608.24434, 2026 on PithPith's reviewarXiv
  17. [37] Bonan Su, Li Zhou, Yuan Feng, and Mingsheng Ying. Borrowing dirty qubits in quantum programs. arXiv:2508.17190, 2025 on PithPith's reviewarXiv
  18. [38] WassilyHoeffding. Probabilityinequalitiesforsumsofboundedrandomvariables.JournaloftheAmerican Statistical Association, 58(301):13–30, 1963 on Pith
  19. [39] David Gosset, Vadym Kliuchnikov, Michele Mosca, and Vincent Russo. An algorithm for the𝑇-count. Quantum Information and Computation, 14(15–16):1261–1276, 2014. arXiv:1308.4134. 27 on PithPith's reviewarXiv
  20. [2003] arXiv:quant-ph/0207001; theorem numbers refer to arXiv v4 on PithPith's reviewarXiv

Challenges and discussion

Disagree with the review, or know something it missed? Leave a comment, or challenge this review formally: a challenge becomes a permanent entry in this paper's record, and its decision is published here.

No comments yet.

Sign in to comment