Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 63 1 a Solution Created 2026-10-03 Updated 2026-10-06
Write the quantum circuit as , and let , . Use a nonlocal quantum clock with orthonormal states . Let the work space include the quantum witness and the ancilla qubits. The input penalty of a history Hamiltonian is built fromIt annihilates precisely the correctly initialized ancilla qubits, leaving the quantum witness unrestricted. The Feynman-Kitaev Hamiltonian without output penalty isEach propagation summand is positive: on vectors with adjacent clock components , its quadratic form is . The input penalty of a history Hamiltonian is also a positive semidefinite operator, so .
To verify that this is a stoquastic Hamiltonian, use the work computational basis and the clock basis. Every is a permutation matrix, so the propagation off-diagonal entries are nonpositive. The zero-ancilla projectors are diagonal, while also has nonpositive off-diagonal entries. No positive off-diagonal entry is introduced by summing these terms. Thus is positive semidefinite and stoquastic, with no output penalty.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 63 1 d Solution Created 2026-10-03 Updated 2026-10-06
For a normalized computational history state, the output projector sees only its final clock component. With the quantum circuit's acceptance probability,This proves the hint, including for a computational basis quantum witness. Moreover is a stoquastic Hamiltonian term, so adding it with positive coefficient preserves stoquasticity.
There are two substantive problems with the stated promise. First, for any basis quantum witness the initialized state has nonnegative amplitudes, and every permutation matrix preserves them. Write the output as , with both vectors entrywise nonnegative. ThenThe stoquastic acceptance floor rules out the printed one-third soundness condition. There are no NO instances of that literal promise. Second, the ground space includes histories of arbitrary quantum witnesses. It is the maximum over those quantum witnesses, not the maximum over basis quantum witnesses, that determines the lowest output energy. Even the identity quantum circuit accepts each basis input with probability , but accepts a quantum witness with probability one. Thus a basis-witness soundness bound would not control this Hamiltonian, even if its numerical threshold were repaired.
The requested nontrivial hardness statement therefore needs the standard quantum-witness StoqMA promise, with and inverse-polynomial gap . The intended reduction can be completed precisely under that corrected promise. Define the quantum witness embedding and the witness acceptance operatorIt is a positive contraction, and . The minimum expectation of on the history ground space is . This is also consistent with a nonnegative optimal StoqMA quantum witness: is entrywise nonnegative, so replacing amplitudes by their absolute values cannot decrease its quadratic form.
A uniform ground-space perturbation bound is needed because the gap shrinks with quantum circuit length. Put , and choose a positive inverse-polynomial coefficientFor the history ground projector and any unit vector with , the operator norm bound givesThe last inequality completes the square in and uses . Testing a ground space minimizing vector gives the upper bound . Since , we obtainYES instances of the corrected promise have energy at most ; NO instances have energy at leastThe separation is at least , an inverse polynomial. The quantum circuit and all these Hamiltonian terms have polynomial-size descriptions. This proves StoqMA hardness for the local Hamiltonian problem variant that permits the nonlocal clock, under the corrected quantum witness and acceptance promise.
The printed perturbation formula also has where a general perturbation belongs. Its unspecified cannot be treated as uniform in a closing gap. Likewise a circuit-length-independent constant cannot in general satisfy the stated small-perturbation requirement for an arbitrary long quantum circuit. The explicit bound above avoids both issues; it does not claim the defective literal promise defines standard StoqMA.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 63 2 a Solution Created 2026-10-03 Updated 2026-10-06
BQP consists of promise problems decided by a uniform family of polynomial-size quantum circuits. On input , with polynomially many zero-initialized ancilla qubits, a designated output measurement accepts with probability at least on YES inputs and at most on NO inputs. Uniformity means a classical polynomial-time procedure produces the quantum circuit description from the input length, or equivalently produces the verifier quantum circuit with supplied as input.
For BQP error reduction, run independent copies with freshly initialized registers. If the completeness and soundness thresholds are any constants , accept when the fraction of accepting trials exceeds . A Hoeffding inequality bounds either error by , with repetitions. The threshold need not be a simple majority when both and lie on the same side of .
Choosing sufficiently large gives the usual thresholds, or any other fixed separated thresholds. Even an inverse-polynomial gap can be amplified using polynomially many repetitions. Classical threshold evaluation can be incorporated into the uniform computation. Thus fixed separated acceptance probabilities define the same BQP class. This argument concerns unrestricted BQP quantum circuits and does not assume such amplification is available for restricted stoquastic circuits.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 63 2 b Solution Created 2026-10-03 Updated 2026-10-06
The class uses polynomial-register real-arithmetic computation: its storage restriction counts real registers, without limiting their precision or the running time. Use the usual decision-model interpretation that computed real values may be compared with fixed thresholds, and that the fixed universal gate set's real constants are available. Without a way to test values, arithmetic instructions alone would not specify the intended decision model.
Let a BQP quantum circuit use qubits and gates. A matrix element can be evaluated by depth-first quantum circuit path summation:Enumerate the intermediate -bit strings recursively. Store the current strings and loop positions, a partial product, and the partial sum at each depth. There are at most active levels, using registers or bits of loop information, not an exponentially long state vector. Each fixed-locality gate matrix element is computed from its few affected bits. Represent a complex number by two real registers; complex multiplication and addition require only real addition, subtraction and multiplication.
Recompute this amplitude separately for every final string whose output bit is one, accumulating the Born rule probabilityThe outer enumeration needs only another bits and a real accumulator. Arbitrarily large running time is allowed, so repeated recomputation is harmless. Compare with to distinguish the promised BQP cases. This proves using polynomial storage.
The printed probability hint omits the squares of the amplitude moduli. Summing their absolute values alone is not the Born rule and can exceed one. The corrected sum above is necessary for the containment proof. The argument is about the stated real-register model, rather than a claim that exponential-precision numbers are free in an ordinary bit-cost model.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 63 2 c Solution Created 2026-10-03 Updated 2026-10-06
QMA is the class of promise problems for which a uniform polynomial-size quantum circuit checks a polynomial-size quantum witness. A YES instance has some quantum witness accepted with probability at least ; on a NO instance every quantum witness is accepted with probability at most . The verifier initializes its own ancilla qubits to zero. Mixed quantum witnesses do not improve the maximum because acceptance is linear in their density operator.
For a verifier and quantum witness embedding , define the witness acceptance operatorThe Rayleigh quotient gives . Every entry of can be recomputed by the polynomial-storage path summation of part (b); no full quantum witness matrix needs to be stored.
Let the quantum witness have qubits, so its dimension is . For this positive operator, trace-power witness optimization usesThis is the useful exponentiated form of the supplied logarithmic inequality. Positivity is required; such a logarithmic statement is not true for an arbitrary operator. No logarithms or roots need to be calculated.
Choose . On a NO instance,since . On a YES instance, . Thus comparison of with one distinguishes the cases using only multiplication and a final comparison.
Evaluate the trace byThere are active quantum witness indices, each requiring bits. Accumulate one product at a time and recompute its matrix entries as required. Together with the verifier path workspace, this uses polynomially many real registers. The potentially enormous time and the numerical precision are unrestricted in . Therefore , without solving an exponentially large eigenvalue problem by storing its matrix.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 67 2 b iii Solution Created 2026-10-03 Updated 2026-10-06
Because each term in the history-subspace propagation Hamiltonian is positive semidefinite, the uniform history vector has zero energy and is a ground state:Indeed every edge term annihilates the uniform coefficients. Conversely, a zero-energy vector must have equal coefficients across every edge of the connected path, so this computational history state is the unique ground state in . It coherently records every intermediate state of the quantum circuit.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 67 3 a Solution Created 2026-10-03 Updated 2026-10-06
A promise problem belongs to QMA if there are polynomials and a uniform family of quantum circuits of size at most , taking a -qubit witness and clean ancillas, with one output qubit interpreted as acceptance, such thatNo condition is imposed outside the promise. The witness may be an arbitrary density operator, and the verifier is efficient but need not know how to prepare an honest witness. Pure witnesses suffice for completeness because the acceptance probability is linear in the witness. QMA is quantum verification with polynomially many witness qubits and a constant completeness-soundness gap.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 324 4 ii Solution Created 2026-10-03 Updated 2026-10-06
For first-order two-local Hamiltonian simulation, regard each term as a Hermitian operator, as is standard for a local-Hamiltonian decomposition. The Lie-Trotter product formula for bounded operators statesin operator norm; the reversed factor ordering is just as valid as the displayed one. Take and use the circuitEach factor is a unitary operator on at most two qubits and hence is one allowed two-qubit gate, with a spectator identity for a one-qubit term. The factors in the rightmost part of each written product act first. Merely quoting the limit would not establish the requested rate, so we give a quantitative error bound.
For two Hermitian operators and , differentiatinggives . The commutator identity obtained by differentiating implies . Since the surrounding factors are unitary, integration yields the first-order unitary product-formula error boundSplitting the terms successively and using the triangle inequality therefore gives the one-step estimatefor . Here submultiplicativity of the operator norm gives . The ordering chosen for the products changes the sign of local commutators, not this norm bound. Applying part (i) to the steps givesChoose . For the error is strictly below ; is exact already with . The quantum circuit contains two-qubit gates. A sufficient gate count isThus the worst-case polynomial degree in this first-order bound is six. Terms with disjoint supports commute and may improve the count in particular decompositions, but the stated assumptions alone suffice for this bound, without a further sparsity or bounded-degree condition. The requested gate model allows arbitrary two-qubit unitaries, so no additional compilation error is incurred here.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 324 1 b i Solution Created 2026-10-03 Updated 2026-10-06
First require . A discrete logarithm to a generator of a group of exists only for nonzero ; the printed membership inadvertently also permits zero, for which is undefined. Zero can be rejected before any quantum circuit.
Put and write . Since is a generator of a group of order , the map is a bijection from to the multiplicative group of a finite field. Hence every nonzero has a unique with . Equality of powers of is equality of their exponents modulo , givingThe fiber over is an affine coset of the subgroup , and contains exactly pairs. This identifies the hidden subgroup problem underlying discrete-logarithm Fourier sampling; knowing numerically is not needed to construct the coset state.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 324 3 a Solution Created 2026-10-03 Updated 2026-10-06
Use exact quantum phase estimation with control qubits initially and one target quantum register prepared in the given eigenvector . Apply Hadamard gates to the control qubits. If control bit has significance , apply a controlled unitary gate from that qubit to the target. The target stays in , while quantum phase kickback producesSince , this is . The inverse quantum Fourier transform on the control quantum register therefore gives . The quantum measurement in the computational basis returns with certainty, soThe quantum circuit below reads left to right. The upper wires are control qubits, with least significant; the vertical ellipsis represents the intervening control wires and powers. The inverse quantum Fourier transform acts on the entire control quantum register, including any bit-order permutations.
Quantum phase estimation and spectral filtering
. A supplied controlled- can implement controlled- by repetitions with the same control. Hence this exact quantum circuit uses calls to the supplied controlled-, unless controlled powers are additionally available cheaply. The cost of exact phase estimation on a dyadic spectrum is not automatically polynomial in ; the question asks for an exact algorithm, not that stronger complexity guarantee. Exactness also uses the promised dyadic eigenphase, ideal gates, and the supplied inverse quantum Fourier transform.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 324 3 b i Solution Created 2026-10-03 Updated 2026-10-05
Use a clean quantum ancilla and apply the quantum circuit , then the Pauli Z gate on the ancilla, then the inverse quantum circuit :This compute-phase-uncompute construction implements on every input with the ancilla initially , and by linearity on any superposition of those inputs. The action on ancilla- inputs need not coincide with ; the question only requires the clean-ancilla subspace.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 324 4 b Solution Created 2026-10-03 Updated 2026-10-05
Use a reversible circuit to compute an -bit representation of the angle into a workspace register, with all additional work bits retained:Write that representation as , with known binary place values (including the fixed scale and any integer bit). On the target, apply a controlled unitary gate controlled by each angle bit . Rotations about the same axis add their angles, so their product isFinally apply to perform uncomputation. The workspace returns to zero while the control register and rotated target remain unchanged; the construction works coherently on every superposition of .
A polynomial time classical calculation has a polynomial-size reversible circuit with Toffoli gates, and each Toffoli gate has a constant-size decomposition into one-qubit and two-qubit gates. The controlled rotations are themselves two-qubit gates. Thus the total quantum circuit size is . This is the binary-angle implementation of a quantum variable rotation; the stipulated angle precision is understood.
