Scaling quantum computing toward practical quantum advantage depends critically on the efficiency of circuits that operate on information encoded by quantum error-correcting codes. Yet, these circuits are largely designed by hand for individual cases, with some recent works incorporating machine learning for certain aspects. We formulate this problem as agentic evolutionary program synthesis, wherein a large language model, leveraging its pretraining knowledge and tool-use proficiency, evolves programs that define Clifford circuits. Crucially, the agent tests and refines its proposals by freely running Python code of its own, alongside a verifier that exhaustively checks fault tolerance. Our approach consistently finds fault-tolerant circuits for a wide range of curated tasks spanning the primary requirements of a quantum computer: logical state preparation, logical gate design, and logical routines such as code-switching and code-growth. The resulting programs are interpretable, exposing the design logic behind each circuit.
翻译:暂无翻译