Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 67 2 c Solution Created 2026-10-03 Updated 2026-10-06
Part (a) shows that is invariant throughout the interpolation. As the Hamiltonians are Hermitian, is invariant as well: evolution starting in has no leakage into other sectors. The quantum adiabatic theorem may therefore be applied using the restricted spectral gap, even if other sectors of the full Hamiltonian have different low-energy levels.
Combining (b)(iv) with the supplied bound for gives for a constant . The matrix has diagonal entries and off-diagonal entries . Its Gershgorin discs all lie in , so . Thus the runtime criterion for adiabatic preparation of a computational history state is satisfied bywith a sufficiently large constant.
Starting from the supplied initial ground state , the resulting state obeysHere the trace norm follows the question's convention; the conventional trace distance is half this norm. The Hamiltonian has explicitly specified terms, each acting on at most five qubits, so its description and the runtime are polynomial in circuit size. If is polynomially bounded, the whole preparation has polynomial cost. The initial computational input is assumed to have been prepared, as in the premise of the quantum adiabatic theorem.
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 2015 iii Paper 67 3 c Solution Created 2026-10-03 Updated 2026-10-06
The local Hamiltonian problem is a promise problem specified by a sum on qubits, where is polynomial in , each Hermitian term acts on at most a fixed number of qubits, and the terms and two thresholds are described with polynomially many bits. The promise gap satisfies . In a convenient normalization, . The task is to distinguishThere is no required answer when the minimum energy lies between the thresholds. A formulation with Hermitian terms of polynomially bounded norm is equivalent: shift each term by a known scalar lower bound and rescale all terms by a polynomial bound to obtain positive semidefinite terms of norm at most one, while shifting and rescaling in parallel. The promise gap remains inverse-polynomial.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 67 3 d Solution Created 2026-10-03 Updated 2026-10-06
Use an -qubit state as the witness. Uniformly choose a term and perform the two-outcome positive operator-valued measure . Regard the second outcome as an energy flag. For witness , its probability isThis is an efficient local-energy measurement verification: a unitary operator on the relevant qubits and one ancilla qubit can implement the measurement using the isometryThe local dimension is constant; the term matrices and the measurement can be approximated to inverse-polynomial accuracy. Uniform choice of and the classical threshold comparison also have polynomial overhead.
SetIn the nontrivial case , is inverse-polynomial. Cases outside this energy range are decided directly from .
Ask for witness registers, measure an independently sampled local term on each, and accept if the mean number of energy flags is at most . An honest product ground state on a YES instance has flag probability at most . The Hoeffding inequality gives failure at most . For completeness, the required Bernoulli concentration estimate follows by bounding the centered log moment-generating function : and is a tilted Bernoulli variance, at most . Hence ; exponential Markov's inequality optimized at yields , and the lower-tail version follows in the same way.
Soundness must also cover entangled witness registers. The averaged flag effect is . All its eigenvalues are at least on a NO instance. The repeated verifier's acceptance effect is a polynomial in the commuting tensor-factor operators and . In their product eigenbasis its eigenvalues are lower-tail probabilities of independent Bernoulli variables whose parameters are each at least . Their lower tail is bounded by the identical-parameter tail at , using the same uniform-variable coupling as in QMA parallel repetition with entangled witnesses. Therefore its operator norm is at most , which bounds acceptance for any entangled witness.
Choosinggives completeness at least and soundness at most . A slightly larger constant absorbs implementation errors; for example, approximate each flag effect in norm to at most , retain a gap at least , and increase by a constant factor. The total witness length and circuit size are polynomial. Thus
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 67 4 d Solution Created 2026-10-03 Updated 2026-10-06
The filtered decomposition is not necessarily frustration-free. Commuting with makes an eigenvector of each term; it does not make that eigenvector a lowest-energy state of each term. This is the distinction expressed by commuting with a ground projector does not imply frustration freeness.
For an explicit positive, two-local counterexample on three qubits, let and , and use the two distinct interaction sets and :Both are positive semidefinite and commute with their sum. The total energy on a computational basis vector isThus has unique ground state , energy , and spectral gap . Since , spectral filtering of Hamiltonian terms leaves both terms unchanged for every normalized filter:But , whereas . The global ground state therefore does not minimize , proving that the resulting decomposition is not a frustration-free Hamiltonian.
There is a useful positive result if the original decomposition already is a frustration-free Hamiltonian. If and , then . Averaging its unitary conjugates with nonnegative gives , while . Thus filtering preserves existing frustration freeness; it does not create it for an arbitrary gapped Hamiltonian.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 324 1 ii Solution Created 2026-10-03 Updated 2026-10-06
Let . In the Shor algorithm, first use classical arithmetic to deal with even and perfect powers, and to reject prime inputs. Perfect-power recognition and primality testing have polynomial-time classical algorithms. Factoring a perfect power , with , already gives a nontrivial factor . We may therefore consider an odd composite with at least two distinct prime factors.
Choose uniformly from and compute its greatest common divisor with using the Euclidean algorithm. A proper nontrivial divisor ends the computation. Otherwise is a unit, and the remaining task is quantum order finding. SetPrepare a uniform quantum superposition in a -qubit register and use quantum modular exponentiation in a second register to obtainRepeated squaring and reversible modular multiplication implement this step with polynomially many quantum gates in . Apply the inverse quantum Fourier transform to the first register and perform a quantum measurement in the computational basis, obtaining . Measuring the second register first, and Fourier-transforming the resulting periodic coset, gives the same distribution of .
Here is a quantitative quantum Fourier sampling bound for order finding. If , multiplication by cycles its orbit states. The Fourier eigenstates of that cycle have eigenvalues , and the initial state has squared overlap with each, for . ThereforeConditioned on a particular eigenphase , its nearest integer outcome obeys and has probability at least . Indeed the absolute amplitude is , where . For , the numerator is at least and the denominator at most ; the limiting value at is one.
If , the fraction is reduced, and givesUse continued-fraction recovery in quantum order finding. The relevant approximation theorem says that reduced fractions satisfying are continued fraction convergents of . For an input rational of digits, their candidates can be enumerated classically in time, and their denominators are at most the reduced input denominator. This is the supplied continued-fraction result; discard candidate denominators exceeding . A zero measurement is treated as a failed order-finding sample.
For each remaining even candidate denominator , compute by repeated squaring, and try and . Return only a divisor with ; otherwise repeat the quantum sample or choose another . This candidate-denominator gcd post-processing cannot return an incorrect factor, since its output is checked directly. When the recovered denominator is the true even multiplicative order and the square root of one is nontrivial, part (i) guarantees success. Checking before trying the gcds is also a valid, more restrictive convention; the single-run distinction matters in part (iii).
Two further standard quantitative facts explain why repetitions remain efficient. First, for a uniformly chosen unit modulo an odd integer with at least two distinct prime divisors, the probability of a useful unit in Shor factorization is at least : its true multiplicative order is even and . To see the source of this bound, the Chinese remainder theorem for unit groups makes the prime-power components independent. Each odd-prime-power unit group is cyclic. If its 2-primary order is , the probability of the largest possible value of is , and the probability of any specified smaller value is at most . Failure requires all components to have the same : either all zero, making odd, or all the same positive value, making the halfway power in every component. Conditioning on one component, the chance another component matches it is at most , so total failure is at most .
Second, the fraction of phase numerators coprime to is , where is the Euler totient function. The elementary totient-ratio lower bound suffices: if the distinct prime divisors are , then and . The totient product formula therefore givesThus for a good , the probability of sampling a coprime phase numerator with the required accuracy is at least . This is inverse-polynomial in the input length, so polynomially many repetitions achieve any fixed success probability. The quantum Fourier transform uses elementary rotations and Hadamard gates in the ideal gate description, and the other quantum and classical stages are polynomial in .
The reduction is therefore polynomial in the bit length:A small denominator need not itself be the true multiplicative order; verification of the final factor is essential, and no guarantee is claimed for every individual sample.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 324 2 b Solution Created 2026-10-03 Updated 2026-10-06
Prepare an ancillary qubit inIt can be prepared from by an operation followed by a Hadamard gate, independently of . One call to the Boolean quantum oracle then gives quantum phase kickback:The data state receives a minus sign precisely on the basis vectors spanning , while the ancilla remains unchanged and unentangled. One oracle call realizes the reflection. By linearity it is the marked-state phase oraclewith one oracle call. The ancillary preparation and its optional inverse use only fixed operations, so no additional knowledge of is needed.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 324 3 iii Solution Created 2026-10-03 Updated 2026-10-06
Write . Instead of storing the output vector, use Heisenberg propagation of a Pauli observable through a Clifford circuit:Initialize the compact Pauli group representation at and conjugate successively by , in that order, using . This giveswith local-update work and storage. The resulting Pauli operator is Hermitian, so we can express it as , where and each is or . Any factors in the representation from part (i) are converted using , with their phases absorbed into .
The product state input now makes the expectation factorize:Each factor is a two-by-two matrix calculation. More explicitly, for , the three nontrivial expectations are , , and for , respectively.
Thus this single-output process has a strong classical simulation in polynomial time, even when the individual input states are not stabilizer states. As usual, the given state identities must provide efficiently computable amplitudes. With finite-precision inputs, each factor can be evaluated to error and its approximation clipped to to obtain the final expectation to error at most , because all factors lie in . The required extra precision is only bits. Exact evaluation applies when the input descriptions support exact arithmetic. This avoids silently assigning a finite exact-computation cost to arbitrary unspecified real numbers.
Once the probabilities are known, a classical randomized computation can reproduce this measured bit. The argument concerns the specified one-qubit output; it does not assert that every joint measurement distribution for arbitrary product inputs can be simulated by this same single-observable calculation.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 324 3 ii Solution Created 2026-10-03 Updated 2026-10-06
The computational-basis projectors on the first qubit areThe Pauli Z gate acts as on the first subspace and on the second, so . By the Born rule, . Therefore the expectation determines the output probabilities:The normalization supplies ; no product-state assumption is needed for this identity.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 324 3 i Solution Created 2026-10-03 Updated 2026-10-06
Store a tensor-product element of the Pauli group asThe phases of the original single-qubit factors can all be accumulated into . This binary phase representation of a Pauli string uses bits. It retains phases, which must not be dropped when computing probabilities later.
For the conjugation convention in the question, direct multiplication of the two-by-two matrices givesandThese backward Pauli updates for Hadamard and phase gates use , not . On the affected line , the updates areAll phases are reduced modulo four and the updates use the old bits.
For a Controlled-Z gate on lines , its diagonal action givesFor the controlled-Z update in the binary phase representation, conjugation respects products, so these determine the rule for every Pauli operator on those lines. In the chosen ordered convention it isThe phase arises when a newly introduced is moved past . For instance becomes , so this sign matters.
The untouched factors are unchanged. Each Clifford operation therefore needs only a fixed number of local bit updates; reconstructing the requested full list takes time. Put the final phase into the first factor, which is permitted because the single-qubit Pauli group includes all multiples by . The classical cost is polynomial, despite the exponentially large matrix of the operation on the full state space.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 324 3 iv Solution Created 2026-10-03 Updated 2026-10-06
Use GHZ preparation with Hadamard and controlled-Z gates for . Apply a Hadamard gate to the first qubit, then a controlled-NOT gate from that qubit to each of the other qubits. Every controlled-NOT can be written in the allowed gate set asIndeed conjugating the target by makes the controlled phase into a controlled . The rightmost gate acts first. Consequently the Clifford circuit uses allowed gates and givesFor every chosen qubit , tracing out the other qubits yields . Equivalently, across that qubit versus the rest, the displayed state is a Schmidt decomposition with two nonzero coefficients . It is therefore entangled across every such bipartition.
Entanglement does not prevent the polynomial single-output simulation from part (iii). The simulation follows the measured observable rather than claiming that the intermediate states remain product states. When , there is no remaining subsystem and the requested entanglement is impossible; the construction and claim require .
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.