{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,25]],"date-time":"2026-11-25T22:17:36Z","timestamp":1795645056745,"version":"4.11.3"},"reference-count":23,"publisher":"Verein zur Forderung des Open Access Publizierens in den Quantenwissenschaften","license":[{"start":{"date-parts":[[2025,5,21]],"date-time":"2025-05-21T00:00:00Z","timestamp":1747785600000},"content-version":"unspecified","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["quantum-journal.org"],"crossmark-restriction":false},"short-container-title":["Quantum"],"abstract":"<jats:p>\n                    We introduce conditionally clean ancilla qubits, a new quantum resource, recently explored by \\cite{nie2024quantum}, that bridges the gap between traditional clean and dirty ancillae. Like dirty ancillae, they begin and end in an unknown state and can be borrowed from existing system qubits, avoiding the space overhead of explicit qubit allocation. Like clean ancillae, they can be treated as initialized in a known state within specific computations, thus avoiding the overhead of toggle detection required for dirty ancillae. We present new circuit constructions leveraging conditionally clean ancillae to achieve lower gate counts and depths, particularly with limited ancilla availability. Specifically, we provide constructions for:(a)\n                    <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                      <mml:mi>n<\/mml:mi>\n                    <\/mml:math>\n                    -controlled NOT using\n                    <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                      <mml:mn>2<\/mml:mn>\n                      <mml:mi>n<\/mml:mi>\n                    <\/mml:math>\n                    Toffolis and\n                    <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                      <mml:mi>O<\/mml:mi>\n                      <mml:mo stretchy=\"false\">(<\/mml:mo>\n                      <mml:mi>log<\/mml:mi>\n                      <mml:mo>&amp;#x2061;<\/mml:mo>\n                      <mml:mrow class=\"MJX-TeXAtom-ORD\">\n                        <mml:mi>n<\/mml:mi>\n                      <\/mml:mrow>\n                      <mml:mo stretchy=\"false\">)<\/mml:mo>\n                    <\/mml:math>\n                    depth given 2 clean ancillae.(b)\n                    <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                      <mml:mi>n<\/mml:mi>\n                    <\/mml:math>\n                    -qubit incrementer using\n                    <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                      <mml:mn>3<\/mml:mn>\n                      <mml:mi>n<\/mml:mi>\n                    <\/mml:math>\n                    Toffolis given\n                    <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                      <mml:msubsup>\n                        <mml:mi>log<\/mml:mi>\n                        <mml:mn>2<\/mml:mn>\n                        <mml:mo>&amp;#x2217;<\/mml:mo>\n                      <\/mml:msubsup>\n                      <mml:mo>&amp;#x2061;<\/mml:mo>\n                      <mml:mrow class=\"MJX-TeXAtom-ORD\">\n                        <mml:mi>n<\/mml:mi>\n                      <\/mml:mrow>\n                    <\/mml:math>\n                    clean ancillae.(c)\n                    <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                      <mml:mi>n<\/mml:mi>\n                    <\/mml:math>\n                    -qubit quantum-classical comparator using\n                    <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                      <mml:mn>3<\/mml:mn>\n                      <mml:mi>n<\/mml:mi>\n                    <\/mml:math>\n                    Toffolis given\n                    <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                      <mml:msubsup>\n                        <mml:mi>log<\/mml:mi>\n                        <mml:mn>2<\/mml:mn>\n                        <mml:mo>&amp;#x2217;<\/mml:mo>\n                      <\/mml:msubsup>\n                      <mml:mo>&amp;#x2061;<\/mml:mo>\n                      <mml:mrow class=\"MJX-TeXAtom-ORD\">\n                        <mml:mi>n<\/mml:mi>\n                      <\/mml:mrow>\n                    <\/mml:math>\n                    clean ancillae.(d) unary iteration over\n                    <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                      <mml:mo stretchy=\"false\">[<\/mml:mo>\n                      <mml:mn>0<\/mml:mn>\n                      <mml:mo>,<\/mml:mo>\n                      <mml:mi>N<\/mml:mi>\n                      <mml:mo stretchy=\"false\">)<\/mml:mo>\n                    <\/mml:math>\n                    using\n                    <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                      <mml:mn>2.5<\/mml:mn>\n                      <mml:mi>N<\/mml:mi>\n                    <\/mml:math>\n                    Toffolis given\n                    <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                      <mml:msubsup>\n                        <mml:mi>log<\/mml:mi>\n                        <mml:mn>2<\/mml:mn>\n                        <mml:mo>&amp;#x2217;<\/mml:mo>\n                      <\/mml:msubsup>\n                      <mml:mo>&amp;#x2061;<\/mml:mo>\n                      <mml:mrow class=\"MJX-TeXAtom-ORD\">\n                        <mml:mi>n<\/mml:mi>\n                      <\/mml:mrow>\n                    <\/mml:math>\n                    clean ancillae.(e) unary iteration via skew tree over\n                    <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                      <mml:mo stretchy=\"false\">[<\/mml:mo>\n                      <mml:mn>0<\/mml:mn>\n                      <mml:mo>,<\/mml:mo>\n                      <mml:mi>N<\/mml:mi>\n                      <mml:mo stretchy=\"false\">)<\/mml:mo>\n                    <\/mml:math>\n                    using\n                    <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                      <mml:mn>1.25<\/mml:mn>\n                      <mml:mi>N<\/mml:mi>\n                    <\/mml:math>\n                    Toffolis given\n                    <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                      <mml:mi>n<\/mml:mi>\n                    <\/mml:math>\n                    dirty ancillae.We also introduce\n                    <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                      <mml:mrow class=\"MJX-TeXAtom-ORD\">\n                        <mml:mtext class=\"MJX-tex-mathit\" mathvariant=\"italic\">laddered toggle detection<\/mml:mtext>\n                      <\/mml:mrow>\n                    <\/mml:math>\n                    , a technique to replace clean ancillae with dirty ancillae in all our constructions, incurring a 2x Toffoli gate overhead. Our results demonstrate that conditionally clean ancillae are a valuable tool for quantum circuit design, especially in the resource-constrained early fault-tolerant era.\n                  <\/jats:p>","DOI":"10.22331\/q-2025-05-21-1752","type":"journal-article","created":{"date-parts":[[2025,5,21]],"date-time":"2025-05-21T06:10:49Z","timestamp":1747807849000},"page":"1752","update-policy":"https:\/\/doi.org\/10.22331\/q-crossmark-policy-page","source":"Crossref","is-referenced-by-count":18,"title":["Rise of conditionally clean ancillae for efficient quantum circuit constructions"],"prefix":"10.22331","volume":"9","author":[{"given":"Tanuj","family":"Khattar","sequence":"first","affiliation":[{"name":"Google Quantum AI, Santa Barbara, California 93117, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Craig","family":"Gidney","sequence":"additional","affiliation":[{"name":"Google Quantum AI, Santa Barbara, California 93117, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"9598","published-online":{"date-parts":[[2025,5,21]]},"reference":[{"key":"0","doi-asserted-by":"publisher","unstructured":"Anjali A. Agrawal, Joshua Job, Tyler L. Wilson, S. N. Saadatmand, Mark J. Hodson, Josh Y. Mutus, Athena Caesura, Peter D. Johnson, Justin E. Elenewski, Kaitlyn J. Morrell, and Alexander F. Kemper, ``Quantifying fault tolerant simulation of strongly correlated systems using the Fermi-Hubbard model&apos;&apos; (2024).","DOI":"10.48550\/ARXIV.2406.06511"},{"key":"1","doi-asserted-by":"publisher","unstructured":"Ryan Babbush, Craig Gidney, Dominic W. Berry, Nathan Wiebe, Jarrod McClean, Alexandru Paler, Austin Fowler, and Hartmut Neven, ``Encoding Electronic Spectra in Quantum Circuits with Linear T Complexity&apos;&apos; Physical Review X 8 (2018).","DOI":"10.1103\/physrevx.8.041015"},{"key":"2","unstructured":"Cl\u00e9mence Chevignard, Pierre-Alain Fouque, and Andr\u00e9 Schrottenloher, ``Reducing the Number of Qubits in Quantum Factoring&apos;&apos; Cryptology ePrint Archive, Paper 2024\/222 (2024) https:\/\/eprint.iacr.org\/2024\/222."},{"key":"3","doi-asserted-by":"publisher","unstructured":"Andrew M. Childs, Dmitri Maslov, Yunseong Nam, Neil J. Ross, and Yuan Su, ``Toward the first quantum simulation with quantum speedup&apos;&apos; Proceedings of the National Academy of Sciences 115, 9456\u20139461 (2018).","DOI":"10.1073\/pnas.1801723115"},{"key":"4","doi-asserted-by":"publisher","unstructured":"Baptiste Claudon, Julien Zylberman, C\u00e9sar Feniou, Fabrice Debbasch, Alberto Peruzzo, and Jean-Philip Piquemal, ``Polylogarithmic-depth controlled-NOT gates without ancilla qubits&apos;&apos; Nature Communications 15 (2024).","DOI":"10.1038\/s41467-024-50065-x"},{"key":"5","doi-asserted-by":"publisher","unstructured":"Austin G. Fowler, Matteo Mariantoni, John M. Martinis, and Andrew N. Cleland, ``Surface codes: Towards practical large-scale quantum computation&apos;&apos; Physical Review A 86 (2012).","DOI":"10.1103\/physreva.86.032324"},{"key":"6","unstructured":"Craig Gidney ``Constructing Large Controlled Nots&apos;&apos; https:\/\/algassert.com (2015)."},{"key":"7","unstructured":"Craig Gidney ``Constructing Large Increment Gates&apos;&apos; https:\/\/algassert.com (2015)."},{"key":"8","doi-asserted-by":"publisher","unstructured":"Craig Gidney ``Factoring with n+2 clean qubits and n-1 dirty qubits&apos;&apos; (2017).","DOI":"10.48550\/ARXIV.1706.07884"},{"key":"9","doi-asserted-by":"publisher","unstructured":"Craig Gidney ``Halving the cost of quantum addition&apos;&apos; Quantum 2, 74 (2018).","DOI":"10.22331\/q-2018-06-18-74"},{"key":"10","doi-asserted-by":"publisher","unstructured":"Matthew P. Harrigan, Tanuj Khattar, Charles Yuan, Anurudh Peduri, Noureldin Yosri, Fionn D. Malone, Ryan Babbush, and Nicholas C. Rubin, ``Expressing and Analyzing Quantum Algorithms with Qualtran&apos;&apos; (2024).","DOI":"10.48550\/ARXIV.2409.04643"},{"key":"11","doi-asserted-by":"publisher","unstructured":"Cody Jones ``Low-overhead constructions for the fault-tolerant Toffoli gate&apos;&apos; Physical Review A 87 (2013).","DOI":"10.1103\/physreva.87.022328"},{"key":"12","doi-asserted-by":"publisher","unstructured":"Isaac H. Kim, Ye-Hua Liu, Sam Pallister, William Pol, Sam Roberts, and Eunseok Lee, ``Fault-tolerant resource estimate for quantum chemical simulations: Case study on Li-ion battery electrolyte molecules&apos;&apos; Physical Review Research 4 (2022).","DOI":"10.1103\/physrevresearch.4.023019"},{"key":"13","doi-asserted-by":"publisher","unstructured":"Joonho Lee, Dominic W. Berry, Craig Gidney, William J. Huggins, Jarrod R. McClean, Nathan Wiebe, and Ryan Babbush, ``Even More Efficient Quantum Computations of Chemistry Through Tensor Hypercontraction&apos;&apos; PRX Quantum 2 (2021).","DOI":"10.1103\/prxquantum.2.030305"},{"key":"14","doi-asserted-by":"publisher","unstructured":"Daniel Litinski ``A Game of Surface Codes: Large-Scale Quantum Computing with Lattice Surgery&apos;&apos; Quantum 3, 128 (2019).","DOI":"10.22331\/q-2019-03-05-128"},{"key":"15","doi-asserted-by":"publisher","unstructured":"Daniel Litinski ``How to compute a 256-bit elliptic curve private key with only 50 million Toffoli gates&apos;&apos; (2023).","DOI":"10.48550\/ARXIV.2306.08585"},{"key":"16","doi-asserted-by":"publisher","unstructured":"Junhong Nie, Wei Zi, and Xiaoming Sun, ``Quantum circuit for multi-qubit Toffoli gate with optimal resource&apos;&apos; (2024).","DOI":"10.48550\/ARXIV.2402.05053"},{"key":"17","doi-asserted-by":"publisher","unstructured":"Nicholas C. Rubin, Dominic W. Berry, Fionn D. Malone, Alec F. White, Tanuj Khattar, A. Eugene DePrince, Sabrina Sicolo, Michael K\u00fcehn, Michael Kaicher, Joonho Lee, and Ryan Babbush, ``Fault-Tolerant Quantum Simulation of Materials Using Bloch Orbitals&apos;&apos; PRX Quantum 4 (2023).","DOI":"10.1103\/prxquantum.4.040303"},{"key":"18","doi-asserted-by":"publisher","unstructured":"Nicholas C. Rubin, Dominic W. Berry, Alina Kononov, Fionn D. Malone, Tanuj Khattar, Alec White, Joonho Lee, Hartmut Neven, Ryan Babbush, and Andrew D. Baczewski, ``Quantum computation of stopping power for inertial fusion target design&apos;&apos; Proceedings of the National Academy of Sciences 121 (2024).","DOI":"10.1073\/pnas.2317772121"},{"key":"19","doi-asserted-by":"publisher","unstructured":"Yuval R. Sanders, Dominic W. Berry, Pedro C.S. Costa, Louis W. Tessler, Nathan Wiebe, Craig Gidney, Hartmut Neven, and Ryan Babbush, ``Compilation of Fault-Tolerant Quantum Heuristics for Combinatorial Optimization&apos;&apos; PRX Quantum 1 (2020).","DOI":"10.1103\/prxquantum.1.020312"},{"key":"20","doi-asserted-by":"publisher","unstructured":"Yewei Yuan, Chao Wang, Bei Wang, Zhao-Yun Chen, Meng-Han Dou, Yu-Chun Wu, and Guo-Ping Guo, ``An improved QFT-based quantum comparator and extended modular arithmetic using one ancilla qubit&apos;&apos; New Journal of Physics 25, 103011 (2023).","DOI":"10.1088\/1367-2630\/acfd52"},{"key":"21","doi-asserted-by":"publisher","unstructured":"Ben Zindorfand Sougato Bose ``Efficient Implementation of Multi-Controlled Quantum Gates&apos;&apos; (2024).","DOI":"10.48550\/ARXIV.2404.02279"},{"key":"22","doi-asserted-by":"publisher","unstructured":"Shuchen Zhu, Aarthi Sundaram, and Guang Hao Low, ``Unified Architecture for a Quantum Lookup Table&apos;&apos; (2024).","DOI":"10.48550\/ARXIV.2406.18030"}],"container-title":["Quantum"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/quantum-journal.org\/papers\/q-2025-05-21-1752\/pdf\/","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"}],"deposited":{"date-parts":[[2025,5,21]],"date-time":"2025-05-21T06:10:53Z","timestamp":1747807853000},"score":1,"resource":{"primary":{"URL":"https:\/\/quantum-journal.org\/papers\/q-2025-05-21-1752\/"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,5,21]]},"references-count":23,"URL":"https:\/\/doi.org\/10.22331\/q-2025-05-21-1752","archive":["CLOCKSS"],"relation":{},"ISSN":["2521-327X"],"issn-type":[{"value":"2521-327X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,5,21]]},"article-number":"1752"}}