Past exam of the mathematics course of the University of Cambridge 2022 ii Paper 3 11I a Solution Created 2026-09-24 Updated 2026-09-25
An integer is a primitive root modulo when it is coprime to and its residue class generates the multiplicative group of integers modulo n. Equivalently,
Choose and prepare . The circuit from part (iii) returnsso a quantum measurement in the computational basis of the first register reveals the discrete logarithm exactly. More generally, any that is invertible modulo returns , from which follows by multiplication by the modular inverse of .