Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 324 2 c i Solution 2026-09-28
Use reversible quantum arithmetic on an ancillary work register. On each computational-basis branch, computewhereBecause the classical algorithms for and are efficient, they can be made reversible with polynomial overhead. Reversible division, square root, and inverse cosine to the retained binary precision likewise use gates under the question's precision convention. Uncompute the and work registers, leaving