Skip to content

Quantum Algorithms for Modular Factorials

Yann Tal

quant-pharXiv:2607.29453

Abstract

We give a bounded-error quantum algorithm that, given a prime p, a divisor q(p-1), and an integer 0<n<p, computes n! p in expected time O(qc+p/q) for some absolute constant c 1. When p-1 has a divisor of size q≈ p1/(2c+1), this gives the exponent c/(2c+1)<1/2. To our knowledge, this is the first algorithm to break the exponent 1/2 barrier for modular factorials under such a divisor promise. The main technical ingredient is a quantum algorithm that reconstructs the relevant Jacobi sum exactly in compact algebraic form, with polynomial dependence on q and p. We further extend the same asymptotic bound to the computation of n! p2, uniformly over 0 n<p2. At n=p-1, this determines the Wilson quotient (p-1)!+1p p. We conjecture that the condition q(p-1) is a technical limitation of the present method rather than an inherent obstruction, and that a uniform quantum algorithm exists for all primes.

Create a lesson