Generalized Deutsch-Jozsa algorithm for applications in data classification, logistic regression, and quantum key distribution
Phys. Rev. A 113, 012609 – Published 8 January, 2026
DOI: https://doi.org/10.1103/b5d4-m3qc
Abstract
We present a generalized Deutsch-Jozsa (DJ) quantum algorithm that determines not only the global type of an unknown Boolean function (constant or balanced) but also explicit output values of the function in a single oracle query. Unlike the original DJ algorithm, which identifies only whether a function is constant or balanced, our generalization retrieves actual function output values while at the same time using a Bell state as an ancilla. This makes a richer function characterization with minimal queries to have practical quantum advantages, e.g., data classification, logistic regression, and quantum cryptography.