Branch Sequentialization in Quantum Polytime
Emmanuel Hainry, Romain Péchoux, Mário Alberto Machado da Silva
TL;DR
This work addresses branch sequentialization in quantum programming, where automated compilation of quantum conditionals can blow up circuit size. It introduces a restricted language, pbp (Polynomially Branching Programs), with quantum case and first-order recursion, and a compilation method (compile) that uses anchoring and merging to avoid exponential growth. The main results show that for pbp programs, the generated circuit size is bounded by the program's time complexity, with depth $O( ext{Time_P}(n))$ scaled by a factor of $O( abla(n))$ leading to $O( ext{Time_P}(n))$-type behavior and, in the standard setting, depth $O( ext{Time_P}(n) imes ext{log} n)$ and size $O(n imes ext{Time_P}(n))$. Moreover, pbp is sound and complete for the class fbqp, establishing polytime quantum computability within this framework. The approach improves upon prior compilation strategies by achieving polynomial-size circuits for quantum control and enabling practical encoding of polytime quantum algorithms like QFT within polynomial resource bounds.
Abstract
Quantum algorithms leverage the use of quantumly-controlled data in order to achieve computational advantage. This implies that the programs use constructs depending on quantum data and not just classical data such as measurement outcomes. Current compilation strategies for quantum control flow involve compiling the branches of a quantum conditional, either in-depth or in-width, which in general leads to circuits of exponential size. This problem is coined as the branch sequentialization problem. We introduce and study a compilation technique for avoiding branch sequentialization on a language that is sound and complete for quantum polynomial time, thus, improving on existing polynomial-size-preserving compilation techniques.
