arXiv:2608.27430quant-phAug 2026

Manuscript Offprint

arXiv:2608.27430

Factorized Boolean representations for efficient quantum synthesis

Mehul Shah, Robert Fiszer, Marek Perkowski

Mehul Shah 1∗^{1*}, Robert Fiszer 1^{1}, and Marek Perkowski 1^{1}

1^{1}Department of Electrical and Computer Engineering, Portland State University, Portland, OR, USA

*Corresponding author: mehul@pdx.edu. R.F.: fizzmaister@gmail.com. M.P.: h8mp@pdx.edu

Quantum algorithms promise advantages beyond classical reach, but running them on error-corrected hardware requires translating Boolean specifications into reversible circuits, and the resources that translation demands determine what is executable. Established methods minimize a Boolean expression and map it to a circuit, assuming the minimized form is best. Here we show that minimized expressions retain algebraic structure minimization cannot reach, arising from containment and complementary-polarity relationships among their terms, and that extracting it yields circuits cheaper to execute despite having more operations. The decisive quantity is not a circuit's operation count but the control count of its widest operation, a superlinear cost; extracting shared factors trades a few wide operations for many narrow ones and reduces qubit count. Across benchmarks and oracles from quantum search and factoring algorithms, at the representation level the transformation never increases either cost measure, a guarantee from its construction. Translation to an executable circuit returns part of that advantage, since auxiliary lines must be uncomputed, yet the factorized circuit still left a leading circuit-level optimizer reaching lower final counts, and faster, than unaided. The representation of a computation is therefore itself a resource, optimizable before compilation and distinct from both logic minimization and circuit-level optimization.

Quantum computing offers computational paradigms for problems intractable on classical architectures, with algorithms such as Grover search and Shor factorization demonstrating advantages arising from interference and superposition 1,2^{1,2}. Realizing those advantages on fault-tolerant hardware, however, requires transforming Boolean descriptions into reversible circuits, and the scalability of the resulting machines depends not only on algorithmic development but on the complexity of the circuit representations underneath.

The dominant cost in fault-tolerant computation is that of non-Clifford operations, particularly T gates. Each T gate consumes a distilled magic state, and magic-state distillation occupies a large fraction of both the physical qubits and the execution time of projected surface-code machines. The number of T gates a synthesis produces therefore determines whether a computation is executable at all, not merely how efficiently it runs. The scale involved is substantial: state-of-the-art estimates for factoring a 2,048-bit RSA modulus require on the order of 2.6 billion Toffoli gates³, so reducing the resource cost of the arithmetic primitives from which such circuits are assembled is a problem of direct practical consequence.

Synthesis of Boolean transformations into reversible circuits has consequently become a central component of quantum compilation. Compact Boolean representations of this kind also underpin applications beyond circuit synthesis, including machine learning and knowledge discovery⁴, oracle construction for search and constraint satisfaction⁵,⁶, Hamiltonian formulations of Boolean optimization⁷,⁸, and quantum state machine synthesis⁹,¹⁰. Existing approaches have investigated reversible logic synthesis, Toffoli network optimization, and quantum cost reduction through improved decomposition¹¹⁻¹⁴. These methods optimize the reversible circuit after a Boolean representation has already been chosen, leaving an underexplored question: whether the logical representation itself contains structure that can be exploited before quantum realization.

Boolean minimization has traditionally focused on reducing expression size, through sum-of-products, exclusive-sum-of-products and Reed-Muller forms, by eliminating redundant terms and literals¹⁵⁻¹⁹, with efficient heuristics developed for both binary and multiple-valued inputs²⁰⁻²². Minimizing the number of terms or literals, however, does not minimize implementation complexity. A compact representation may still conceal hierarchical relationships among its product terms, and those relationships determine what the reversible mapping can achieve. Existing minimization therefore captures only part of the available computational structure.

Gate arity governs implementation cost

A Toffoli gate with n controls cannot be executed directly and must be decomposed into elementary operations, the number of which grows superlinearly with n. Under the Maslov cost model an n-control gate is charged 2n+1−32^{n+1} - 3 elementary operations, so a five-control gate costs an order of magnitude more than a two-control gate, and total circuit cost is dominated by the few widest gates rather than by how many gates are present.

Conventional synthesis maps each product term independently onto one multi-controlled gate. The arity of the widest gate is therefore fixed by the widest cube in the minimized expression, and no reduction in term count or literal count can lower it. This is the coupling that limits conventional synthesis: minimization operates on expression size, while cost is governed by expression width, and the two are not the same quantity.

Factorization breaks this coupling. Computing a shared factor once onto an auxiliary line and using that line as a control replaces one wide cube with several narrow ones. The circuit acquires more gates, but every gate is cheaper, and because cost increases superlinearly in arity the exchange is strongly favourable. The consequence is counterintuitive and central to this work: the factorized circuit is larger by every conventional structural measure and cheaper to execute.

References (30)