{"id":209306,"date":"2025-03-20T16:27:06","date_gmt":"2025-03-20T21:27:06","guid":{"rendered":"https:\/\/lifeboat.com\/blog\/2025\/03\/quantum-circuit-optimization-with-alphatensor"},"modified":"2025-03-20T16:27:06","modified_gmt":"2025-03-20T21:27:06","slug":"quantum-circuit-optimization-with-alphatensor","status":"publish","type":"post","link":"https:\/\/lifeboat.com\/blog\/2025\/03\/quantum-circuit-optimization-with-alphatensor","title":{"rendered":"Quantum circuit optimization with AlphaTensor"},"content":{"rendered":"<p><a class=\"aligncenter blog-photo\" href=\"https:\/\/lifeboat.com\/blog.images\/quantum-circuit-optimization-with-alphatensor.jpg\"><\/a><\/p>\n<p>AlphaTensor\u2013<i>Quantum<\/i> addresses three main challenges that go beyond the capabilities of AlphaTensor<sup><a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 25\" title=\"Fawzi, A. et al. Discovering faster matrix multiplication algorithms with reinforcement learning. Nature 610, 47&ndash;53 (2022).\" href=\"https:\/\/www.nature.com\/articles\/s42256-025-01001-1#ref-CR25\" id=\"ref-link-section-d46101211e560\">25<\/a><\/sup> when applied to this problem. First, it optimizes the symmetric (rather than the standard) tensor rank; this is achieved by modifying the RL environment and actions to provide symmetric (Waring) decompositions of the tensor, which has the beneficial side effect of reducing the action search space. Second, AlphaTensor\u2013<i>Quantum<\/i> scales up to large tensor sizes, which is a requirement as the size of the tensor corresponds directly to the number of qubits in the circuit to be optimized; this is achieved by a neural network architecture featuring symmetrization layers. Third, AlphaTensor\u2013<i>Quantum<\/i> leverages domain knowledge that falls outside of the tensor decomposition framework; this is achieved by incorporating gadgets (constructions that can save T gates by using auxiliary ancilla qubits) through an efficient procedure embedded in the RL environment.<\/p>\n<p>We demonstrate that AlphaTensor\u2013<i>Quantum<\/i> is a powerful method for finding efficient quantum circuits. On a benchmark of arithmetic primitives, it outperforms all existing methods for T-count optimization, especially when allowed to leverage domain knowledge. For multiplication in finite fields, an operation with application in cryptography<sup><a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 34\" title=\"Cheung, D., Maslov, D., Mathew, J. & Pradhan, D. K. On the design and optimization of a quantum polynomial-time attack on elliptic curve cryptography. In Theory of Quantum Computation, Communication, and Cryptography (eds Kawano, Y. & Mosca, M.) 96&ndash;104 (Springer, 2008).\" href=\"https:\/\/www.nature.com\/articles\/s42256-025-01001-1#ref-CR34\" id=\"ref-link-section-d46101211e568\">34<\/a><\/sup>, AlphaTensor\u2013<i>Quantum<\/i> finds an efficient quantum algorithm with the same complexity as the classical Karatsuba method<sup><a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 35\" title=\"Karatsuba, A. & Ofman, Y. Multiplication of many-digital numbers by automatic computers. Proc. USSR Acad. Sci. 145293&ndash;294 (1962).\" href=\"https:\/\/www.nature.com\/articles\/s42256-025-01001-1#ref-CR35\" id=\"ref-link-section-d46101211e572\">35<\/a><\/sup>. This is the most efficient quantum algorithm for multiplication on finite fields reported so far (naive translations of classical algorithms introduce overhead<sup><a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 36\" title=\"Bennett, C. H. Time\/space trade-offs for reversible computation. SIAM J. Comput. 18766&ndash;776 (1989).\" href=\"https:\/\/www.nature.com\/articles\/s42256-025-01001-1#ref-CR36\" id=\"ref-link-section-d46101211e576\">36<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 37\" title=\"Gidney, C. Asymptotically efficient quantum Karatsuba multiplication. (2019).\" href=\"https:\/\/www.nature.com\/articles\/s42256-025-01001-1#ref-CR37\" id=\"ref-link-section-d46101211e579\">37<\/a><\/sup> due to the reversible nature of quantum computations). We also optimize quantum primitives for other relevant problems, ranging from arithmetic computations used, for example, in Shor\u2019s algorithm<sup><a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 38\" title=\"Gidney, C. Halving the cost of quantum addition. Quantum 2, 74 (2018).\" href=\"https:\/\/www.nature.com\/articles\/s42256-025-01001-1#ref-CR38\" id=\"ref-link-section-d46101211e583\">38<\/a><\/sup>, to Hamiltonian simulation in quantum chemistry, for example, iron\u2013molybdenum cofactor (FeMoco) simulation<sup><a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 39\" title=\"Reiher, M., Wiebe, N., Svore, K. M., Wecker, D. & Troyer, M. Elucidating reaction mechanisms on quantum computers. Proc. Natl Acad. Sci. USA 114, 7555&ndash;7560 (2017).\" href=\"https:\/\/www.nature.com\/articles\/s42256-025-01001-1#ref-CR39\" id=\"ref-link-section-d46101211e587\">39<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 40\" title=\"Babbush, R. et al. Encoding electronic spectra in quantum circuits with linear T complexity. Phys. Rev. X 8, 041015 (2018).\" href=\"https:\/\/www.nature.com\/articles\/s42256-025-01001-1#ref-CR40\" id=\"ref-link-section-d46101211e590\">40<\/a><\/sup>. AlphaTensor\u2013<i>Quantum<\/i> recovers the best-known hand-designed solutions, demonstrating that it can effectively optimize circuits of interest in a fully automated way. We envision that this approach can accelerate discoveries in quantum computation as it saves the numerous hours of research invested in the design of optimized circuits.<\/p>\n<p>AlphaTensor\u2013<i>Quantum<\/i> can effectively exploit the domain knowledge (provided in the form of gadgets with state-of-the-art magic-state factories<sup><a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 12\" title=\"Gidney, C. & Fowler, A. G. Efficient magic state factories with a catalyzed $$\\left\\vert CCZightangle$$ C C Z to $$\\left\\vert CCZightangle$$ C C Z transformation. Quantum 3,135 (2019).\" href=\"https:\/\/www.nature.com\/articles\/s42256-025-01001-1#ref-CR12\" id=\"ref-link-section-d46101211e597\">12<\/a><\/sup>), finding constructions with lower T-count. Because of its flexibility, AlphaTensor\u2013<i>Quantum<\/i> can be readily extended in multiple ways, for example, by considering complexity metrics other than the T-count such as the cost of two-qubit Clifford gates or the qubit topology, by allowing circuit approximations, or by incorporating new domain knowledge. We expect that AlphaTensor\u2013<i>Quantum<\/i> will become instrumental in automatic circuit optimization with new advancements in quantum computing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AlphaTensor\u2013Quantum addresses three main challenges that go beyond the capabilities of AlphaTensor25 when applied to this problem. First, it optimizes the symmetric (rather than the standard) tensor rank; this is achieved by modifying the RL environment and actions to provide symmetric (Waring) decompositions of the tensor, which has the beneficial side effect of reducing the [\u2026]<\/p>\n","protected":false},"author":709,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,41,1617,6,8],"tags":[],"class_list":["post-209306","post","type-post","status-publish","format-standard","hentry","category-chemistry","category-information-science","category-quantum-physics","category-robotics-ai","category-space"],"_links":{"self":[{"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/posts\/209306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/users\/709"}],"replies":[{"embeddable":true,"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/comments?post=209306"}],"version-history":[{"count":0,"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/posts\/209306\/revisions"}],"wp:attachment":[{"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/media?parent=209306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/categories?post=209306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/tags?post=209306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}