Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 324 3 b Solution 2026-09-25
The operators act on different qubits and therefore commute, soSince ,The scalar is a global phase. Thus each factor uses two Hadamard gates and one phase gate, and applying the factors in parallel or sequentially gives an exact quantum circuit of elementary gates.
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 324 3 c Solution 2026-09-25
Each summand of acts on one qubit, while each summand of acts on two. Therefore is a 2-local Hamiltonian. We haveSplit into steps of length and use the second-order product formulaFor one step, in the stated estimate, so the spectral-norm error is . The error bound for a product of unitary operators makes the total errorIt is therefore enough to choosewith also large enough that the small-step estimate applies.
All terms commute. A factor uses a constant-size circuit of two controlled-NOT gates and one phase gate, up to a global phase, so one product-formula step costs gates. The complete Hamiltonian simulation consequently has size
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 324 4 a Solution 2026-09-25
First construct a controlled unitary gate from the uncontrolled oracle. Keep the supplied in a reference register. Controlled on an extra qubit, swap the data and reference registers, query on the register that contains in one branch, and swap back. Because , that branch is unchanged, while the other branch acquires on the data. Reversing the control convention with Pauli X gates gives controlled-. The reference state is returned unchanged, and each use costs one query to and controlled-SWAP gates.
Expand in an eigenbasis of . Exact quantum phase estimation with an -qubit phase register producesApply the available phase gates, controlled by the corresponding bits of , to multiply branch byThen reverse phase estimation. Although no oracle was supplied, every eigenvalue obeys , so . The inverse controlled powers can therefore be implemented with forward calls to . Since , phase estimation and its inverse use only queries. The phase register returns to , while the data register isAs a direct check, the same spectral promise implies .
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 324 3 a iii Solution Created 2026-09-24 Updated 2026-09-25
Write . Applying the phase gateto qubit contributes . The product of these gates is thereforeSimilarly, for and , apply a controlled phase gatebetween every pair . The accumulated phase isThe controlled phase gates implement