Representation of Boolean functions in terms of quantum computation
Abstract: The relationship between quantum physics and discrete mathematics is reviewed in this article. The Boolean functions unitary representation is considered. The relationship between Zhegalkin polynomial, which defines the algebraic normal form of Boolean function, and quantum logic circuits is described. It is shown that quantum information approach provides simple algorithm to construct Zhegalkin polynomial using truth table. Developed methods and algorithms have arbitrary Boolean function generalization with multibit input and multibit output. Such generalization allows us to use many-valued logic (k-valued logic, where k is a prime number). Developed methods and algorithms can significantly improve quantum technology realization. The presented approach is the baseline for transition from classical machine logic to quantum hardware.
- Practical block encodings of matrix polynomials that can also be trivially controlled (2026)
- Quantum Advantage in Decision Trees: A Weighted Graph and $L_1$ Norm Approach (2026)
- Natural Qubit Algebra: clarification of the Clifford boundary and new non-embeddability theorem (2026)
- Hamiltonian Simulation and Linear Combination of Unitary Decomposition of Structured Matrices (2026)
- Quantum-Accelerated Gowers $U_2$ Norm for Bent Boolean Functions (2026)
- Exploiting all ancilla outcomes in linear combinations of unitaries: low-rank recovery and quantum trapdoor functions (2026)
- Quantum circuit design via dynamic Pauli constraints (2026)
- An efficient quantum Hadamard product algorithm for functions (2026)
- Graphical and algebraic methods for Boolean factoring (2026)
- Quantum element-wise transforms (2026)
Summary
- The paper develops a unified representation of Boolean and prime-valued logical functions through reversible quantum transformations using Zhegalkin polynomials and controlled-NOT-type circuit constructions.
- The method introduces a reversible embedding of classical functions $f$, where an input register $|x angle$ is preserved and the function value is accumulated in an output register $|yoplus f(x) angle$, providing an interface between truth tables and quantum circuits.
- The algebraic normal form of a Boolean function extends into polynomial representations that yield scalable circuit constructions, for single and multiple outputs, across prime-coded domains, leading to compact circuit configurations for reversible functions.
The paper develops a unified representation of Boolean and prime-valued logical functions through reversible quantum transformations, Zhegalkin polynomials, and controlled-NOT-type circuit constructions. Its central premise is that a classical function f should not be represented as the generally noninvertible map ∣x⟩↦∣f(x)⟩, but through the reversible embedding
∣x,y⟩↦∣x,y⊕f(x)⟩,
where the input register is preserved and the function value is accumulated into an output register. This construction yields a unitary operator and provides the formal interface between truth tables, algebraic normal forms, and quantum circuits (1906.06374).
Reversible representation of Boolean functions
For an n-bit input and one-bit output, the unitary matrix associated with f is block diagonal with 2n blocks. The block corresponding to an input string x is the identity matrix I if f(x)=0 and the Pauli-X matrix if ∣x⟩↦∣f(x)⟩0. Consequently, the matrix dimension is ∣x⟩↦∣f(x)⟩1, while the number of distinct functions is ∣x⟩↦∣f(x)⟩2.
This correspondence is elementary but structurally useful. For one input bit, the four Boolean functions are represented by the identity, controlled-NOT, an ∣x⟩↦∣f(x)⟩3 gate combined with controlled-NOT, and an unconditional ∣x⟩↦∣f(x)⟩4 gate. The block-matrix construction makes the reversible character explicit: function evaluation changes the target register while retaining sufficient information in the source register to make the transformation invertible.
The paper correctly emphasizes that the reversible embedding is more general than the conventional classical notation ∣x⟩↦∣f(x)⟩5. The latter discards the input and is not generally injective, whereas the transformation ∣x⟩↦∣f(x)⟩6 is a permutation of computational-basis states and therefore unitary. The construction is consequently suitable for quantum-oracle implementations, although the paper does not analyze oracle-query complexity, ancilla requirements, or gate synthesis cost beyond the direct circuit correspondence.
A minor typographical problem occurs in the statement that the number of block-diagonal matrices is ∣x⟩↦∣f(x)⟩7; the intended expression is evidently ∣x⟩↦∣f(x)⟩8. The subsequent examples use the correct values: ∣x⟩↦∣f(x)⟩9 functions for ∣x,y⟩↦∣x,y⊕f(x)⟩,0, ∣x,y⟩↦∣x,y⊕f(x)⟩,1 for ∣x,y⟩↦∣x,y⊕f(x)⟩,2, and ∣x,y⟩↦∣x,y⊕f(x)⟩,3 for ∣x,y⟩↦∣x,y⊕f(x)⟩,4.
Zhegalkin polynomials and circuit synthesis
The principal technical contribution is the use of tensor-product basis vectors to derive the Zhegalkin, or algebraic normal form, directly from a truth table. Over ∣x,y⟩↦∣x,y⊕f(x)⟩,5, every Boolean function has a unique expansion
∣x,y⟩↦∣x,y⊕f(x)⟩,6
The paper constructs basis functions indexed by computational-basis strings. For two variables, the indicator functions are
∣x,y⟩↦∣x,y⊕f(x)⟩,7
∣x,y⟩↦∣x,y⊕f(x)⟩,8
These basis functions are mutually exclusive on computational-basis inputs and form a basis for the vector space of Boolean functions. Each basis function is associated with a coefficient vector obtained through tensor products of the one-variable vectors
∣x,y⟩↦∣x,y⊕f(x)⟩,9
The truth-table vector is decomposed as a mod-n0 sum of those basis functions whose corresponding truth-table entries are one. The same decomposition can be performed on their coefficient vectors. In this way, the method transforms a truth table into the coefficient vector of the Zhegalkin polynomial using tensor products and binary addition rather than repeated symbolic interpolation.
The resulting circuit synthesis rule is direct. The constant monomial n1 gives an n2 gate on the target. A linear monomial n3 gives a CNOT controlled by input qubit n4. A monomial involving n5 variables,
n6
gives an n7-controlled NOT gate targeting the output qubit. Since there are n8 possible monomials, the complete unoptimized basis contains n9 possible controlled operations, and selecting an arbitrary subset produces the f0 Boolean functions.
This establishes a one-to-one correspondence between algebraic-normal-form terms and a restricted family of reversible circuits. The correspondence is conceptually clean, but it should not be interpreted as an efficient synthesis result in the complexity-theoretic sense. A generic function may contain exponentially many nonzero Zhegalkin coefficients, and the direct circuit can require high-control gates that themselves must be decomposed into a native gate set. The paper provides a representation and construction procedure, not an optimized compilation algorithm.
Multiple-output functions
The framework is extended to functions with an f1-bit output,
f2
through the reversible map
f3
For each input f4, the output string f5 selects the block
f6
where f7 and f8. The full unitary therefore has dimension f9.
The half-adder illustrates the construction. Its two output bits are
2n0
The sum output is generated by two CNOT gates, while the carry output is generated by a Toffoli gate. The corresponding reversible operator acts on four qubits and has dimension 2n1. The three-input adder is expressed as
2n2
2n3
and acts on five qubits, producing a 2n4 unitary matrix.
These examples demonstrate that the method handles vector-valued functions componentwise: each output column of the truth table is converted into its own algebraic normal form and then implemented on the corresponding target qubit. The paper does not address output-register initialization, garbage management, ancilla uncomputation, or the distinction between in-place arithmetic and general reversible embeddings. Those issues are essential for practical arithmetic circuit synthesis but are outside the presented formal construction.
Extension to prime-valued logic
A substantial part of the paper generalizes the binary method to 2n5-valued logic, with particular attention to prime 2n6. For three-valued logic, the binary shifts 2n7 and 2n8 are replaced by cyclic shift operators
2n9
They satisfy
x0
A ternary truth-table value x1, x2, or x3 consequently selects x4, x5, or x6 as the corresponding block of the unitary transformation. This is the direct analogue of the binary x7 construction.
The polynomial representation is built from the evaluation vectors
x8
over x9. These vectors form a matrix I0, and the inverse matrix I1 supplies the coefficient vectors of the indicator functions. For three-valued logic,
I2
For an I3-argument function, the transformation is obtained by tensor products of these matrices. If I4 is the truth-table column and I5 is the coefficient column, then
I6
All arithmetic is performed modulo I7. The appendix verifies this procedure on a two-variable ternary example and obtains the coefficient vector through both explicit indicator-polynomial expansion and tensor-product matrix multiplication.
The same construction is illustrated for five-valued logic. For a one-variable function with values I8, multiplication by the displayed I9 matrix gives the coefficient vector
f(x)=00
For a two-variable function over f(x)=01 with f(x)=02 truth-table entries, the coefficient vector has length f(x)=03. The paper reports an explicit example with only two nonzero truth-table values and gives the resulting coefficient vector. These examples support the algebraic procedure, but they do not constitute performance benchmarks: no runtime, memory, circuit-depth, or gate-count comparisons are reported.
The restriction to prime f(x)=04 is mathematically important. The construction relies on inversion of a Vandermonde-like evaluation matrix over a field. For prime f(x)=05, the integers modulo f(x)=06 form f(x)=07, ensuring that every nonzero element is invertible. The paper states that composite values require a different treatment and that the presented completeness argument applies only to prime f(x)=08. This qualification limits the claimed generality of the phrase “f(x)=09-valued logic”: the fully established algebraic framework is for prime cardinalities, while the composite case is only described by analogy.
Quantum interpretation of ternary shifts
The ternary shift operators are also expressed as exponentials of a Hermitian generator. The paper gives a Hermitian matrix X0 such that a rotation by X1 produces X2, while a rotation by X3 produces X4. The eigenvalues of X5 are identified with the spin-1 projections X6, with logical labels obtained by the shift X7.
This section connects discrete cyclic permutations with continuous unitary evolution. For intermediate rotation angles, the operator need not preserve the computational basis. It instead creates superpositions. The paper gives the example that a X8 transformation applied to X9 produces
∣x⟩↦∣f(x)⟩00
The amplitudes are consistent with normalization because the squared magnitudes sum to one. The example shows that the discrete logical shifts are embedded in a larger continuous unitary family. However, the physical interpretation in terms of spin-1 systems should be distinguished from the abstract qutrit construction: the existence of a three-dimensional Hilbert space does not by itself require a physical spin-1 implementation, and the paper does not specify a hardware Hamiltonian or experimental realization.
Quantitative scope and claims
The paper makes several combinatorial claims that clarify the scale of the representation:
- A one-bit Boolean function has ∣x⟩↦∣f(x)⟩01 possible truth tables.
- A two-bit Boolean function has ∣x⟩↦∣f(x)⟩02 possible truth tables.
- A three-bit Boolean function has ∣x⟩↦∣f(x)⟩03 possible truth tables.
- A three-valued one-input function has ∣x⟩↦∣f(x)⟩04 possibilities.
- A three-valued two-input function has ∣x⟩↦∣f(x)⟩05 possibilities.
- A three-valued three-input function has approximately ∣x⟩↦∣f(x)⟩06 possibilities.
The general count for ∣x⟩↦∣f(x)⟩07 inputs and ∣x⟩↦∣f(x)⟩08 possible output values is ∣x⟩↦∣f(x)⟩09, not a specifically quantum phenomenon. The quantum contribution is the reversible realization of each truth table as a controlled shift operator. Similarly, the number of Boolean circuits in the paper’s unrestricted monomial-selection construction equals the number of Boolean functions because each monomial is either included or omitted. This equality demonstrates representational completeness, but it does not imply that all functions have equally efficient circuits or that the proposed circuits are minimal.
The paper’s strongest claim is that the method can “significantly improve” the transition from classical logic to quantum hardware. The constructions substantiate a systematic translation from truth tables and algebraic normal forms to reversible circuits. They do not, however, provide evidence for an improvement in hardware metrics. No experimental implementation, synthesis benchmark, asymptotic gate-complexity analysis, noise analysis, or comparison with established reversible-circuit synthesis methods is given. The claim is therefore supported as a conceptual and algorithmic framework, but not as a demonstrated hardware-performance result.
Limitations and open questions
The main limitation is the absence of complexity analysis. Tensor-product construction is algebraically simple, but the vectors and matrices have dimensions that grow as ∣x⟩↦∣f(x)⟩10. For binary functions, the truth table itself already has ∣x⟩↦∣f(x)⟩11 entries, and the coefficient vector has the same dimension. Explicit tensor-product matrices can therefore become infeasible well before the corresponding Boolean function is physically synthesized. The paper does not establish whether its method can be implemented implicitly, sparsely, or through fast transforms.
The circuit correspondence also assumes access to multi-controlled NOT operations, or their ∣x⟩↦∣f(x)⟩12-valued analogues. In a realistic gate library, these operations require decomposition, often using ancillas and additional depth. Consequently, the number of polynomial terms is not a complete measure of implementation cost. The paper leaves open whether the polynomial representation can be combined with minimization, Reed–Muller optimization, ancilla reduction, or hardware-aware compilation.
For multiple-output functions, each output is treated independently, but the paper does not discuss shared subexpressions between output polynomials. Such sharing could substantially reduce gate counts for arithmetic functions. It also does not analyze whether the resulting transformations preserve clean ancilla states or how the circuits should be inverted and composed within larger quantum algorithms.
Finally, the prime-dimensional generalization is algebraically well motivated but physically underdeveloped. The shift operators define valid unitary qutrit or qudit transformations, yet the paper does not identify a universal native gate set, decomposition theorem, or implementation model for the resulting controlled shifts. The relationship between the polynomial basis over ∣x⟩↦∣f(x)⟩13 and experimentally relevant qudit architectures remains an open question within the paper’s framework.
Conclusion
The paper presents a coherent algebraic route from truth tables to reversible quantum transformations. Its key results are the block-diagonal representation of Boolean functions, the tensor-product method for computing Zhegalkin-polynomial coefficients, and the term-by-term mapping from polynomial monomials to controlled quantum gates (1906.06374). The extension to multiple outputs and prime-valued logic broadens the framework beyond binary single-output functions.
The contribution is primarily structural rather than performance-oriented. It establishes representational completeness and gives explicit constructive procedures, including numerical examples for binary, ternary, and five-valued logic. The unresolved issues concern scalability, gate decomposition, circuit optimization, ancilla management, and physical realization of higher-dimensional controlled shifts.
Paper to Video (Beta)
No one has generated a video about this paper yet.
Whiteboard
No one has generated a whiteboard explanation for this paper yet.
Paper Prompts
Sign up for free to create and run prompts on this paper.
Top Community Prompts
Open Problems
We haven't generated a list of open problems mentioned in this paper yet.
Continue Learning
- What practical applications do these reversible quantum transformations have in quantum computing?
- What computational or hardware advantages can be achieved with this unified representation over traditional methods?
- What methods are typically used to optimize CNOT gates in quantum circuits while interfacing the truth tables of complex logic functions?.
- How can the proposed reversible embedding of classical functions facilitate the development of complex quantum algorithms?.
- Find recent papers about reversible quantum circuits for Boolean functions.