Program-Synthesis-Driven Autodesign of Universal Unitary Operators
Organizations: Key Laboratory of Nuclear Physics and Ion-beam Application (MOE), Institute of Modern Physics, Fudan University, Shanghai 200433, China · Huawei Technologies Co., Ltd, Beijing 100095, China · Department of Industrial Engineering and Decision Analytics, Hong Kong University of Science and Technology, HongKong, China · Hunan Key Laboratory of Mechanism and Technology of Quantum Information, Changsha 410073, China · School of Information Science and Technology, Fudan University, Shanghai 200433, China · Research Institute of Intelligent Complex Systems, Fudan University, Shanghai 200433, China · Institute of Atomic and Molecular Physics, Jilin University, Changchun 130012, China · Research Center for Theoretical Nuclear Physics, NSFC and Fudan University, Shanghai 200438, China · School of Physics, East China Normal University, Shanghai 200062, China
Abstract
We demonstrate that AI-driven program synthesis can autonomously discover fundamental strategies for decomposing unitary matrices in photonic networks. By extending DreamCoder to complex-valued linear algebra, the system generates decomposition programs achieving the minimal Mach-Zehnder interferometers, distinct from both Reck and Clements architectures. Learned programs encode dimension-agnostic invariants: strategies discovered for matrices generalize to higher dimensions such as . The discovered programs encode interpretable, dimension-agnostic construction rules. These rules generalize across matrix sizes without retraining, demonstrating that autonomous program synthesis can serve as a scalable paradigm for algorithm discovery and the automated design of universal unitary operators. Beyond universal decompositions, the system automatically exploits matrix structure to reduce the interferometer count below the universal theoretical bound. For instance, for Householder matrices, it discovers a dimension-independent rule that requires only MZIs. This achieves linear, rather than quadratic, scaling and generalizes to arbitrary without retraining. For matrices obtained from the singular value decomposition of sparse matrices, reductions generally increase with sparsity, reaching up to 38% fewer MZIs than the universal theoretical bound at 95% sparsity. These MZI reductions translate directly into practical hardware benefits for scalable photonic implementations. Taken together, the system functions as a single unified engine that discovers both universal decomposition rules and matrix-specific optimizations, without being provided with the structural or analytical properties of the input matrices.